Cosmetic fix

This commit is contained in:
Mikhail Kalinin
2023-02-28 17:18:07 +06:00
parent fae77eb53d
commit 7bb65f88d9

View File

@@ -192,8 +192,8 @@ def process_block(state: BeaconState, block: BeaconBlock) -> None:
```python
def process_operations(state: BeaconState, body: BeaconBlockBody) -> None:
# Prevent potential underflow introduced by mixing two deposit processing flows
# [New in EIP-6110]
# Prevent potential underflow introduced by mixing two deposit processing flows
if state.eth1_data.deposit_count > state.eth1_deposit_index:
assert len(body.deposits) == min(MAX_DEPOSITS, state.eth1_data.deposit_count - state.eth1_deposit_index)
else: