mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +00:00
Fix tests (#6278)
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro-2.local>
This commit is contained in:
parent
0f0d0de783
commit
556a81ce6f
@ -225,7 +225,7 @@ func (test *snapshotTest) run() bool {
|
||||
}
|
||||
defer tx.Rollback()
|
||||
var (
|
||||
ds = NewPlainState(tx, 1)
|
||||
ds = NewPlainState(tx, 1, nil)
|
||||
state = New(ds)
|
||||
snapshotRevs = make([]int, len(test.snapshots))
|
||||
sindex = 0
|
||||
@ -240,7 +240,7 @@ func (test *snapshotTest) run() bool {
|
||||
// Revert all snapshots in reverse order. Each revert must yield a state
|
||||
// that is equivalent to fresh state with all actions up the snapshot applied.
|
||||
for sindex--; sindex >= 0; sindex-- {
|
||||
checkds := NewPlainState(tx, 1)
|
||||
checkds := NewPlainState(tx, 1, nil)
|
||||
checkstate := New(checkds)
|
||||
for _, action := range test.actions[:test.snapshots[sindex]] {
|
||||
action.fn(action, checkstate)
|
||||
|
Loading…
Reference in New Issue
Block a user