fix blinded block conversion for Deneb and Electra (#6569)
`blob_gas_used` and `excess_blob_gas` were not copied on blinding signed beacon block.
This commit is contained in:
parent
20bb20f75d
commit
9df3d075de
|
@ -166,7 +166,9 @@ func toSignedBlindedBeaconBlock*(blck: deneb.SignedBeaconBlock):
|
|||
transactions_root:
|
||||
hash_tree_root(blck.message.body.execution_payload.transactions),
|
||||
withdrawals_root:
|
||||
hash_tree_root(blck.message.body.execution_payload.withdrawals)),
|
||||
hash_tree_root(blck.message.body.execution_payload.withdrawals),
|
||||
blob_gas_used: blck.message.body.execution_payload.blob_gas_used,
|
||||
excess_blob_gas: blck.message.body.execution_payload.excess_blob_gas),
|
||||
bls_to_execution_changes: blck.message.body.bls_to_execution_changes,
|
||||
blob_kzg_commitments: blck.message.body.blob_kzg_commitments)),
|
||||
signature: blck.signature)
|
||||
|
|
|
@ -141,6 +141,8 @@ func toSignedBlindedBeaconBlock*(blck: electra.SignedBeaconBlock):
|
|||
hash_tree_root(blck.message.body.execution_payload.transactions),
|
||||
withdrawals_root:
|
||||
hash_tree_root(blck.message.body.execution_payload.withdrawals),
|
||||
blob_gas_used: blck.message.body.execution_payload.blob_gas_used,
|
||||
excess_blob_gas: blck.message.body.execution_payload.excess_blob_gas,
|
||||
deposit_requests_root: hash_tree_root(
|
||||
blck.message.body.execution_payload.deposit_requests),
|
||||
withdrawal_requests_root: hash_tree_root(
|
||||
|
|
|
@ -112,6 +112,10 @@ template capella_steps() =
|
|||
do_check
|
||||
|
||||
template deneb_steps() =
|
||||
b.message.body.execution_payload.blob_gas_used = 8
|
||||
do_check
|
||||
b.message.body.execution_payload.excess_blob_gas = 9
|
||||
do_check
|
||||
check: b.message.body.blob_kzg_commitments.add(default(KzgCommitment))
|
||||
do_check
|
||||
|
||||
|
|
Loading…
Reference in New Issue