Skip to content

Commit

Permalink
Hotfix for testnets
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytrotkk committed Jul 8, 2024
1 parent b28b571 commit ccf2b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metrics/src/gas.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def calc_avg_gas_price():
logger.info(f'Getting historic block gas prices...')
for index in range(GAS_ESTIMATION_ITERATIONS):
block_number = block_number - BLOCK_SAMPLING * index
if (block_number < 0):
if block_number < 0:
break
logger.info(f'Getting block {block_number}...')
block = w3.eth.get_block(block_number)
Expand Down

0 comments on commit ccf2b33

Please sign in to comment.