From fc25bc2013bd43534e0dab31117aa2aecd93d8ce Mon Sep 17 00:00:00 2001 From: j75689 Date: Thu, 7 Mar 2024 15:05:08 +0800 Subject: [PATCH 1/3] fix: sync failed from genesis --- x/upgrade/keeper/keeper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/upgrade/keeper/keeper.go b/x/upgrade/keeper/keeper.go index ed2c7cdf79..90ee30a888 100644 --- a/x/upgrade/keeper/keeper.go +++ b/x/upgrade/keeper/keeper.go @@ -434,7 +434,7 @@ func (k Keeper) IsUpgraded(ctx sdk.Context, name string) bool { // InitUpgraded execute the upgrade initializer that the upgrade is already applied. func (k Keeper) InitUpgraded(ctx sdk.Context) error { - iter := storetypes.KVStorePrefixIterator(ctx.KVStore(k.storeKey), []byte{types.DoneByte}) + iter := storetypes.KVStorePrefixIterator(ctx.KVStoreWithZeroRead(k.storeKey), []byte{types.DoneByte}) defer iter.Close() for ; iter.Valid(); iter.Next() { From 63dcefe56d623d1fe1018f266a70f4f468f23284 Mon Sep 17 00:00:00 2001 From: j75689 Date: Thu, 7 Mar 2024 16:27:42 +0800 Subject: [PATCH 2/3] ci: add failfast to go test --- tests/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index 95df468c77..3f837cd5bf 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -1,11 +1,11 @@ test-integration: - go test ./integration/... -timeout 30m + go test -failfast ./integration/... -timeout 30m test-integration-cov: - go test ./integration/... -timeout 30m -coverpkg=../... -coverprofile=integration-profile.out -covermode=atomic + go test -failfast ./integration/... -timeout 30m -coverpkg=../... -coverprofile=integration-profile.out -covermode=atomic test-e2e: - go test ./e2e/... -mod=readonly -timeout 30m -race -tags='e2e' + go test ./e2e/... -failfast -mod=readonly -timeout 30m -race -tags='e2e' test-e2e-cov: - go test ./e2e/... -mod=readonly -timeout 30m -race -tags='e2e' -coverpkg=../... -coverprofile=e2e-profile.out -covermode=atomic \ No newline at end of file + go test ./e2e/... -failfast -mod=readonly -timeout 30m -race -tags='e2e' -coverpkg=../... -coverprofile=e2e-profile.out -covermode=atomic \ No newline at end of file From bc07b42d26acd7adef533a920e966d4984bcdffe Mon Sep 17 00:00:00 2001 From: Alexgao001 Date: Wed, 13 Mar 2024 11:16:16 +0800 Subject: [PATCH 3/3] set Pawnee upgrade time --- x/upgrade/types/upgrade_config.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/x/upgrade/types/upgrade_config.go b/x/upgrade/types/upgrade_config.go index 10a4a95125..f280ab4c05 100644 --- a/x/upgrade/types/upgrade_config.go +++ b/x/upgrade/types/upgrade_config.go @@ -58,6 +58,10 @@ var ( Name: Ural, Height: 5347231, Info: "Ural hardfork", + }).SetPlan(&Plan{ + Name: Pawnee, + Height: 6239520, + Info: "Pawnee hardfork", }) TestnetChainID = "greenfield_5600-1" @@ -85,6 +89,10 @@ var ( Name: Ural, Height: 5761391, Info: "Ural hardfork", + }).SetPlan(&Plan{ + Name: Pawnee, + Height: 6623127, + Info: "Pawnee hardfork", }) )