Skip to content

Commit

Permalink
improve recovery test
Browse files Browse the repository at this point in the history
  • Loading branch information
magicxyyz committed Jan 30, 2024
1 parent aa304a9 commit 43a8aeb
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions system_tests/staterecovery_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 43a8aeb

Please sign in to comment.