mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-19 17:58:23 +00:00
fix assertion in beacon block creation rollback/restore (#2655)
This commit is contained in:
parent
f2588be9ab
commit
9d48097de0
@ -313,7 +313,7 @@ proc makeBeaconBlockForHeadAndSlot*(node: BeaconNode,
|
|||||||
# TODO address this ugly workaround - there should probably be a
|
# TODO address this ugly workaround - there should probably be a
|
||||||
# `state_transition` that takes a `StateData` instead and updates
|
# `state_transition` that takes a `StateData` instead and updates
|
||||||
# the block as well
|
# the block as well
|
||||||
doAssert v.addr == addr proposalStateAddr.data
|
doAssert v.addr == addr proposalStateAddr.data.hbsPhase0
|
||||||
assign(proposalStateAddr[], poolPtr.headState)
|
assign(proposalStateAddr[], poolPtr.headState)
|
||||||
|
|
||||||
return makeBeaconBlock(
|
return makeBeaconBlock(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user