mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-26 01:05:15 +00:00
Remove unnecessary eth1_deposit_index bump
This commit is contained in:
parent
13f3654296
commit
00557c5649
@ -221,10 +221,6 @@ def process_deposit_receipt(state: BeaconState, deposit_receipt: DepositReceipt)
|
||||
if state.deposit_receipts_start_index == UNSET_DEPOSIT_RECEIPTS_START_INDEX:
|
||||
state.deposit_receipts_start_index = deposit_receipt.index
|
||||
|
||||
# Signify the end of transition to in-protocol deposit logic
|
||||
if state.eth1_deposit_index >= state.deposit_receipts_start_index:
|
||||
state.eth1_deposit_index = deposit_receipt.index + 1
|
||||
|
||||
apply_deposit(
|
||||
state=state,
|
||||
pubkey=deposit_receipt.pubkey,
|
||||
|
Loading…
x
Reference in New Issue
Block a user