Skip to content

Commit

Permalink
Remove min(..., ...) in get_evm_beacon_block_roots
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalinin committed Mar 17, 2021
1 parent a368f5d commit b8e16c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions specs/merge/beacon-chain.md
Expand Up @@ -183,8 +183,8 @@ def get_recent_beacon_block_roots(state: BeaconState, qty: uint64) -> Sequence[B

```python
def get_evm_beacon_block_roots(state: BeaconState) -> Sequence[Bytes32]:
num_block_roots = min(EVM_BLOCK_ROOTS_SIZE, SLOTS_PER_HISTORICAL_ROOT)
return get_recent_beacon_block_roots(state, num_block_roots)
# EVM_BLOCK_ROOTS_SIZE must be less or equal to SLOTS_PER_HISTORICAL_ROOT
return get_recent_beacon_block_roots(state, EVM_BLOCK_ROOTS_SIZE)
```

### Block processing
Expand Down

0 comments on commit b8e16c1

Please sign in to comment.