Skip to content

Commit 0037141

Browse files
Set block_hash in the latest bid during Gloas state upgrade (#4739)
When processing the first Gloas block, we check if `is_parent_block_full` in order to process withdrawals. This will be false for the first block and lead to failed withdrawals root checking during payload processing. This PR implements the simplest solution by setting the `block_hash` in the bid during the state upgrade.
1 parent 797e865 commit 0037141

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

specs/gloas/fork.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ def upgrade_to_gloas(pre: fulu.BeaconState) -> BeaconState:
7474
# [Modified in Gloas:EIP7732]
7575
# Removed `latest_execution_payload_header`
7676
# [New in Gloas:EIP7732]
77-
latest_execution_payload_bid=ExecutionPayloadBid(),
77+
latest_execution_payload_bid=ExecutionPayloadBid(
78+
block_hash=pre.latest_execution_payload_header.block_hash,
79+
),
7880
next_withdrawal_index=pre.next_withdrawal_index,
7981
next_withdrawal_validator_index=pre.next_withdrawal_validator_index,
8082
historical_summaries=pre.historical_summaries,

0 commit comments

Comments
 (0)