From 0526592fe8ed47caf7a523278452b8a9b2631a3d Mon Sep 17 00:00:00 2001 From: Mikhail Kalinin Date: Tue, 27 Aug 2024 17:46:43 +0600 Subject: [PATCH] Do state.pending_deposits update in a single line --- specs/electra/beacon-chain.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/specs/electra/beacon-chain.md b/specs/electra/beacon-chain.md index caa1ec42a..570dcfcc9 100644 --- a/specs/electra/beacon-chain.md +++ b/specs/electra/beacon-chain.md @@ -955,15 +955,13 @@ def process_pending_deposits(state: BeaconState) -> None: # Regardless of how the deposit was handled, we move on in the queue. next_deposit_index += 1 - state.pending_deposits = state.pending_deposits[next_deposit_index:] + state.pending_deposits = state.pending_deposits[next_deposit_index:] + deposits_to_postpone # Accumulate churn only if the churn limit has been hit. if is_churn_limit_reached: state.deposit_balance_to_consume = available_for_processing - processed_amount else: state.deposit_balance_to_consume = Gwei(0) - - state.pending_deposits += deposits_to_postpone ``` #### New `process_pending_consolidations`