mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-11 06:46:10 +00:00
fix order of MEV signed block root assignment/checking (#4360)
This commit is contained in:
parent
b7cd0fe4a1
commit
806b4fd649
@ -83,11 +83,10 @@ proc unblindAndRouteBlockMEV*(
|
||||
getFieldNames(typeof(signedBlock.message.body)))
|
||||
signedBlock.message.body.execution_payload = unblindedPayload.data.data
|
||||
|
||||
if signedBlock.root != hash_tree_root(blindedBlock.message):
|
||||
return err("Unblinded block doesn't match blinded block SSZ root")
|
||||
|
||||
signedBlock.root = hash_tree_root(signedBlock.message)
|
||||
|
||||
doAssert signedBlock.root == hash_tree_root(blindedBlock.message)
|
||||
|
||||
debug "unblindAndRouteBlockMEV: proposing unblinded block",
|
||||
blck = shortLog(signedBlock)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user