fix order of MEV signed block root assignment/checking (#4360)

This commit is contained in:
tersec 2022-11-25 13:47:52 +00:00 committed by GitHub
parent b7cd0fe4a1
commit 806b4fd649
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)