Skip to content

Commit d094f86

Browse files
authored
Get proposer index via get_beacon_proposer_index (#5368)
Related to: * #5364 * #5365 I merged these back-to-back without pulling in updates from master & didn't realize that they conflicted. The first removes block as a parameter which the second uses to get the proposer index. Thankfully, the fix is simple; we can use `get_beacon_proposer_index` for this. It's worth mentioning that `process_block_header` checks that these are the same, so this change is safe.
1 parent b7b3578 commit d094f86

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

specs/gloas/beacon-chain.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1483,7 +1483,7 @@ def process_execution_payload_bid(
14831483
amount=amount,
14841484
builder_index=builder_index,
14851485
),
1486-
proposer_index=block.proposer_index,
1486+
proposer_index=get_beacon_proposer_index(state),
14871487
)
14881488
state.builder_pending_payments[SLOTS_PER_EPOCH + bid.slot % SLOTS_PER_EPOCH] = (
14891489
pending_payment

0 commit comments

Comments
 (0)