Skip to content

Commit

Permalink
Add block_number to ethereum logs
Browse files Browse the repository at this point in the history
  • Loading branch information
yukonet committed Mar 18, 2024
1 parent 86769b5 commit 6a690c6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,9 @@ def events_listener():
except Exception as e:
sleep_sec = 60
logger.exception(f"Exception in main block scanner loop: {e}")
logger.warning(f"Waiting {sleep_sec} seconds before retry.")
logger.warning(f'Last block in blockchain is {w3.eth.block_number}.
If this is the current block in the blockchain -
add the environment variable LAST_BLOCK_LOCKED = "False" to the deployment')
current_block_number = w3.eth.block_number
logger.warning(f'Last block in blockchain is {current_block_number}.If this is the current block in the blockchain - add the environment variable LAST_BLOCK_LOCKED = "False" to the deployment')
logger.warning(f"Waiting {sleep_sec} seconds before retry.")
time.sleep(sleep_sec)


0 comments on commit 6a690c6

Please sign in to comment.