fix assertion in beacon block creation rollback/restore (#2655)

This commit is contained in:
tersec 2021-06-17 07:22:39 +00:00 committed by Jacek Sieka
parent f2588be9ab
commit 9d48097de0
No known key found for this signature in database
GPG Key ID: A1B09461ABB656B8
1 changed files with 1 additions and 1 deletions

View File

@ -313,7 +313,7 @@ proc makeBeaconBlockForHeadAndSlot*(node: BeaconNode,
# TODO address this ugly workaround - there should probably be a
# `state_transition` that takes a `StateData` instead and updates
# the block as well
doAssert v.addr == addr proposalStateAddr.data
doAssert v.addr == addr proposalStateAddr.data.hbsPhase0
assign(proposalStateAddr[], poolPtr.headState)
return makeBeaconBlock(