updates to send maximum blob count

This commit is contained in:
Alex Stokes 2024-08-22 14:06:00 -06:00
parent 8c2a864d59
commit 87b5f1a969
No known key found for this signature in database
2 changed files with 4 additions and 2 deletions

View File

@ -33,5 +33,6 @@ class PayloadAttributes(object):
suggested_fee_recipient: ExecutionAddress
withdrawals: Sequence[Withdrawal]
parent_beacon_block_root: Root
target_blobs_per_block: uint64 # [New in Electra]
target_blob_count: uint64 # [New in Electra]
maximum_blob_count: uint64 # [New in Electra]
```

View File

@ -139,7 +139,8 @@ def prepare_execution_payload(state: BeaconState,
suggested_fee_recipient=suggested_fee_recipient,
withdrawals=withdrawals,
parent_beacon_block_root=hash_tree_root(state.latest_block_header),
target_blobs_per_block=MAX_BLOBS_PER_BLOCK // 2, # [New in Electra]
target_blob_count=MAX_BLOBS_PER_BLOCK // 2, # [New in Electra]
maximum_blob_count=MAX_BLOBS_PER_BLOCK, # [New in Electra]
)
return execution_engine.notify_forkchoice_updated(
head_block_hash=parent_hash,