mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-14 19:46:45 +00:00
updates to send maximum blob count
This commit is contained in:
parent
8c2a864d59
commit
87b5f1a969
@ -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]
|
||||
```
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user