Skip to content

Commit 38a165d

Browse files
authored
Run process_builder_pending_payments before effective balance updates (#4737)
Long form reasoning on this change in the discord [chat](https://discord.com/channels/595666850260713488/874767108809031740/1436395151655305389) TLDR: Move `process_builder_pending_payments` to run before `process_effective_balance_updates` in `process_epoch`. This makes `compute_exit_epoch_and_update_churn` use the current epoch effective balances, matching `process_execution_payload` behavior and avoiding inconsistent updates to `state.exit_balance_to_consume` and `state.earliest_exit_epoch`
1 parent 0037141 commit 38a165d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

specs/gloas/beacon-chain.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -684,15 +684,15 @@ def process_epoch(state: BeaconState) -> None:
684684
process_eth1_data_reset(state)
685685
process_pending_deposits(state)
686686
process_pending_consolidations(state)
687+
# [New in Gloas:EIP7732]
688+
process_builder_pending_payments(state)
687689
process_effective_balance_updates(state)
688690
process_slashings_reset(state)
689691
process_randao_mixes_reset(state)
690692
process_historical_summaries_update(state)
691693
process_participation_flag_updates(state)
692694
process_sync_committee_updates(state)
693695
process_proposer_lookahead(state)
694-
# [New in Gloas:EIP7732]
695-
process_builder_pending_payments(state)
696696
```
697697

698698
#### New `process_builder_pending_payments`

0 commit comments

Comments
 (0)