Skip to content

Commit

Permalink
get start block from cache
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlanglen committed May 3, 2024
1 parent c8583c1 commit 03559c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions indexer_app/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def listen_to_near_events():

try:
# Update below with desired network & block height
# start_block = get_block_height('current_block_height')
start_block = 104_858_762 # manually setting for debugging TODO: remove this
start_block = get_block_height("current_block_height")
# start_block = 104_858_762 # manually setting for debugging TODO: remove this
logger.info(f"what's the start block, pray tell? {start_block-1}")
loop.run_until_complete(indexer("mainnet", start_block - 1, None))
finally:
Expand Down

0 comments on commit 03559c7

Please sign in to comment.