Skip to content

Commit

Permalink
hardcode start block
Browse files Browse the repository at this point in the history
  • Loading branch information
harisang committed Aug 1, 2024
1 parent ab3450c commit 411b4d0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/daemon.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Running this daemon computes raw imbalances for finalized blocks by calling imbalances_script.py.
"""

import os
import time
from typing import List, Tuple
Expand Down Expand Up @@ -207,8 +208,10 @@ def process_transactions(chain_name: str) -> None:
solver_slippage_db_connection,
) = initialize_connections()
rt = RawTokenImbalances(web3, chain_name)
# start_block = get_start_block(web3, chain_name, solver_slippage_db_connection)
start_block = 20419429
start_block = get_start_block(web3, chain_name, solver_slippage_db_connection)
## this is just saying that the start block should be hardcoded in case the script restarts a few hours after that specific block
if start_block - 12000 < 20420000:
start_block = 20420000
previous_block = start_block
unprocessed_txs: List[Tuple[str, int, int]] = []

Expand Down

0 comments on commit 411b4d0

Please sign in to comment.