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

Commit

Permalink
update query cursors
Browse files Browse the repository at this point in the history
Signed-off-by: Pranay Valson <[email protected]>
  • Loading branch information
noslav committed Jul 12, 2023
1 parent a3156d4 commit 1e16763
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/dbmanresult.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def __main_loop(self):
# we are catching up. So we only need to grab what we need to attempt for finalizing
if self.chain_table == "chain_moonbeam_moonbase_alpha":
cur.execute(
r'SELECT * FROM chain_moonbeam_moonbase_alpha."_proof_chain_result_events" WHERE observer_chain_session_start_block_id > %s AND observer_chain_finalization_tx_hash IS NULL AND origin_chain_block_height > 17635725;',
r'SELECT * FROM chain_moonbeam_moonbase_alpha."_proof_chain_result_events" WHERE observer_chain_session_start_block_id > %s AND observer_chain_finalization_tx_hash IS NULL AND origin_chain_block_height > 17643990;',
(self.last_block_id,),
)
else:
Expand All @@ -103,7 +103,7 @@ def __main_loop(self):
# we need everything after last max block number
if self.chain_table == "chain_moonbeam_moonbase_alpha":
cur.execute(
r'SELECT * FROM chain_moonbeam_moonbase_alpha."_proof_chain_result_events" WHERE observer_chain_session_start_block_id > %s AND origin_chain_block_height > 17635725;',
r'SELECT * FROM chain_moonbeam_moonbase_alpha."_proof_chain_result_events" WHERE observer_chain_session_start_block_id > %s AND origin_chain_block_height > 17643990;',
(self.last_block_id,),
)
else:
Expand Down
4 changes: 2 additions & 2 deletions src/dbmanspecimen.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def __main_loop(self):
# we are catching up. So we only need to grab what we need to attempt for finalizing
if self.chain_table == "chain_moonbeam_moonbase_alpha":
cur.execute(
r'SELECT * FROM chain_moonbeam_moonbase_alpha."_proof_chain_specimen_events" WHERE observer_chain_session_start_block_id > %s AND observer_chain_finalization_tx_hash IS NULL AND origin_chain_block_height > 17388735;',
r'SELECT * FROM chain_moonbeam_moonbase_alpha."_proof_chain_specimen_events" WHERE observer_chain_session_start_block_id > %s AND observer_chain_finalization_tx_hash IS NULL AND origin_chain_block_height > 17679865;',
(self.last_block_id,),
)
else:
Expand All @@ -103,7 +103,7 @@ def __main_loop(self):
# we need everything after last max block number
if self.chain_table == "chain_moonbeam_moonbase_alpha":
cur.execute(
r'SELECT * FROM chain_moonbeam_moonbase_alpha."_proof_chain_specimen_events" WHERE observer_chain_session_start_block_id > %s AND origin_chain_block_height > 17388735;',
r'SELECT * FROM chain_moonbeam_moonbase_alpha."_proof_chain_specimen_events" WHERE observer_chain_session_start_block_id > %s AND origin_chain_block_height > 17679865;',
(self.last_block_id,),
)
else:
Expand Down

0 comments on commit 1e16763

Please sign in to comment.