Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
retain older specimen contract event log
Browse files Browse the repository at this point in the history
Signed-off-by: Pranay Valson <[email protected]>
  • Loading branch information
noslav committed Aug 15, 2023
1 parent e65082a commit 41990ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dbmanspecimen.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def __main_loop(self):
)
else:
cur.execute(
r'SELECT * FROM chain_moonbeam_mainnet."_proof_chain_specimen_events" WHERE observer_chain_session_start_block_id > %s AND observer_chain_finalization_tx_hash IS NULL;',
r'SELECT * FROM chain_moonbeam_mainnet."_proof_chain_events" WHERE observer_chain_session_start_block_id > %s AND observer_chain_finalization_tx_hash IS NULL;',
(self.last_block_id,),
)
outputs = cur.fetchall()
Expand All @@ -108,7 +108,7 @@ def __main_loop(self):
)
else:
cur.execute(
r'SELECT * FROM chain_moonbeam_mainnet."_proof_chain_specimen_events" WHERE observer_chain_session_start_block_id > %s;',
r'SELECT * FROM chain_moonbeam_mainnet."_proof_chain_events" WHERE observer_chain_session_start_block_id > %s;',
(self.last_block_id,),
)

Expand Down Expand Up @@ -148,7 +148,7 @@ def __fetch_last_block(self):
)
else:
cur.execute(
r'SELECT observer_chain_session_start_block_id FROM chain_moonbeam_mainnet."_proof_chain_specimen_events" WHERE observer_chain_finalization_tx_hash IS NULL LIMIT 1'
r'SELECT observer_chain_session_start_block_id FROM chain_moonbeam_mainnet."_proof_chain_events" WHERE observer_chain_finalization_tx_hash IS NULL LIMIT 1'
)
block_id = cur.fetchone()
if block_id is not None:
Expand Down

0 comments on commit 41990ab

Please sign in to comment.