From 45aee14f68cedc752642221910ee932260ebb613 Mon Sep 17 00:00:00 2001 From: mmsqe Date: Fri, 6 Dec 2024 09:15:27 +0800 Subject: [PATCH 1/2] test(systemtests): fix query block-results in TestStakeUnstake for v2 --- tests/systemtests/staking_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/systemtests/staking_test.go b/tests/systemtests/staking_test.go index ba734d6e8d9..b1b3829a9d1 100644 --- a/tests/systemtests/staking_test.go +++ b/tests/systemtests/staking_test.go @@ -42,7 +42,11 @@ func TestStakeUnstake(t *testing.T) { assert.Equal(t, int64(8999999), cli.QueryBalance(account1Addr, "stake")) // check validator has been updated - rsp = cli.CustomQuery("q", "block-results", gjson.Get(rsp, "height").String()) + if systest.IsV2() { + rsp = cli.CustomQuery("q", "comet", "block-results", gjson.Get(rsp, "height").String()) + } else { + rsp = cli.CustomQuery("q", "block-results", gjson.Get(rsp, "height").String()) + } validatorUpdates := gjson.Get(rsp, "validator_updates").Array() assert.NotEmpty(t, validatorUpdates) vpk := gjson.Get(validatorUpdates[0].String(), "pub_key_bytes").String() From 345eee1ee528209c0d45d93468bd19b12d803618 Mon Sep 17 00:00:00 2001 From: mmsqe Date: Fri, 6 Dec 2024 09:16:16 +0800 Subject: [PATCH 2/2] cleanup ss cfg --- server/v2/testdata/app.toml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/server/v2/testdata/app.toml b/server/v2/testdata/app.toml index 3f0e640a8c3..be2f8256669 100644 --- a/server/v2/testdata/app.toml +++ b/server/v2/testdata/app.toml @@ -30,13 +30,6 @@ ss-type = 'pebble' # State commitment database type. Currently we support: "iavl" and "iavl-v2" sc-type = 'iavl' -# Pruning options for state storage -[store.options.ss-pruning-option] -# Number of recent heights to keep on disk. -keep-recent = 2 -# Height interval at which pruned heights are removed from disk. -interval = 100 - # Pruning options for state commitment [store.options.sc-pruning-option] # Number of recent heights to keep on disk.