From 43a8aeb122f4ee87810d992f9d6be20a661a1a4a Mon Sep 17 00:00:00 2001 From: Maciej Kulawik Date: Tue, 30 Jan 2024 21:32:30 +0000 Subject: [PATCH] improve recovery test --- system_tests/staterecovery_test.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/system_tests/staterecovery_test.go b/system_tests/staterecovery_test.go index 561e889153..33608bc8aa 100644 --- a/system_tests/staterecovery_test.go +++ b/system_tests/staterecovery_test.go @@ -72,13 +72,7 @@ func TestRectreateMissingStates(t *testing.T) { Require(t, err) bc := testClient.ExecNode.Backend.ArbInterface().BlockChain() triedb := bc.StateCache().TrieDB() - var start uint64 - if currentBlock+1 >= builder.execConfig.Caching.BlockCount { - start = currentBlock + 1 - builder.execConfig.Caching.BlockCount - } else { - start = 0 - } - for i := start; i <= currentBlock; i++ { + for i := uint64(0); i <= currentBlock; i++ { header := bc.GetHeaderByNumber(i) _, err := bc.StateAt(header.Root) Require(t, err)