From 9a03c003fe9ffa9b1c44e0055b25b063f3c4ef38 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Wed, 27 Jan 2021 13:05:14 -0800 Subject: [PATCH] fix sorted test --- chain/stmgr/forks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chain/stmgr/forks.go b/chain/stmgr/forks.go index 7a8473fc2..b143563c1 100644 --- a/chain/stmgr/forks.go +++ b/chain/stmgr/forks.go @@ -207,7 +207,7 @@ func (us UpgradeSchedule) Validate() error { } } if !sort.SliceIsSorted(u.PreMigrations, func(i, j int) bool { - return u.PreMigrations[i].When < u.PreMigrations[j].When + return u.PreMigrations[i].When > u.PreMigrations[j].When //nolint:scopelint,gosec }) { return xerrors.Errorf("pre-migrations must be sorted by start epoch") }