core/state/snapshot: fix benchmarks (#23804)

pull/23816/head
Martin Holst Swende 3 years ago committed by GitHub
parent 53f81574e3
commit 526c3f6b9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      core/state/snapshot/difflayer_test.go

@ -388,7 +388,7 @@ func BenchmarkJournal(b *testing.B) {
}
return newDiffLayer(parent, common.Hash{}, destructs, accounts, storage)
}
layer := snapshot(new(diskLayer))
layer := snapshot(emptyLayer())
for i := 1; i < 128; i++ {
layer = fill(layer)
}

Loading…
Cancel
Save