mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-23 18:49:57 +00:00
Fix engine_sim compilation issue (#2594)
This commit is contained in:
parent
0a80a3bb25
commit
a70bb78d27
@ -81,7 +81,7 @@ proc getVmState(c: ChainRef, header: BlockHeader):
|
||||
return ok(c.vmState)
|
||||
|
||||
let vmState = BaseVMState()
|
||||
if not vmState.init(header, c.com, storeSlotHash = storeSlotHash):
|
||||
if not vmState.init(header, c.com, storeSlotHash = false):
|
||||
debug "Cannot initialise VmState",
|
||||
number = header.number
|
||||
return err()
|
||||
@ -131,7 +131,8 @@ proc setBlock*(c: ChainRef; blk: EthBlock): Result[void, string] =
|
||||
# the parent state of the first block (as registered in `headers[0]`) was
|
||||
# the canonical state before updating. So this state will be saved with
|
||||
# `persistent()` together with the respective block number.
|
||||
c.db.persistent(header.number - 1)
|
||||
c.db.persistent(header.number - 1).isOkOr:
|
||||
return err($error)
|
||||
|
||||
ok()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user