Verify transition block to be assembled correctly

This commit is contained in:
Mikhail Kalinin 2021-03-20 21:46:20 +06:00
parent 46fc8a196d
commit 3420e51a0f

View File

@ -211,5 +211,6 @@ def process_application_payload(state: BeaconState, body: BeaconBlockBody) -> No
state.application_block_hash = body.application_payload.block_hash
elif is_transition_block(state, body):
assert body.application_payload == ApplicationPayload(block_hash = body.application_payload.block_hash)
state.application_block_hash = body.application_payload.block_hash
```