Remove min(..., ...) in get_evm_beacon_block_roots

This commit is contained in:
Mikhail Kalinin
2021-03-17 15:32:24 +06:00
parent a368f5d224
commit b8e16c1610

View File

@@ -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