Replace underflow check with respective comment

This commit is contained in:
Mikhail Kalinin 2021-07-30 16:18:05 +06:00
parent d58ffc7dfc
commit f1982d4fc3
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ def compute_base_fee_per_gas(payload: ExecutionPayload, parent: ExecutionPayload
base_fee_per_gas_delta = ( base_fee_per_gas_delta = (
parent_base_fee_per_gas * gas_used_delta // parent_gas_target // BASE_FEE_MAX_CHANGE_DENOMINATOR parent_base_fee_per_gas * gas_used_delta // parent_gas_target // BASE_FEE_MAX_CHANGE_DENOMINATOR
) )
return max(parent_base_fee_per_gas - base_fee_per_gas_delta, 0) return parent_base_fee_per_gas - base_fee_per_gas_delta # This subtraction can't underflow
``` ```
#### `process_execution_payload` #### `process_execution_payload`