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

Commit

Permalink
format and update call to finalize
Browse files Browse the repository at this point in the history
Signed-off-by: Pranay Valson <pranay.valson@gmail.com>
  • Loading branch information
noslav committed Dec 14, 2023
1 parent f37825f commit fbd83fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def _attempt_send_specimen_finalize(self, chainId, blockHeight, timeout):
self._refresh_nonce()
self.gasPrice = self.w3.eth.gasPrice
self.logger.info(f"TX dynamic gas price for specimen finalization is {self.gasPrice}")
transaction = self.bspContract.functions.finalizeAndRewardSpecimenSession(
transaction = self.bspContract.functions.finalizeResultSession(
chainId, blockHeight
).buildTransaction(
{
Expand Down
8 changes: 2 additions & 6 deletions src/dbmanspecimen.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ def __main_loop(self):
)
outputs = cur.fetchall()

self.logger.info(
f"Processing {len(outputs)} specimen proof-session records..."
)
self.logger.info(f"Processing {len(outputs)} specimen proof-session records...")
self._process_outputs(outputs)

self.caught_up = True
Expand All @@ -102,9 +100,7 @@ def __main_loop(self):
while True:
with self.__connect() as conn:
with conn.cursor() as cur:
self.logger.info(
f"Incremental scan block_id={self.last_block_id}"
)
self.logger.info(f"Incremental scan block_id={self.last_block_id}")
# we need everything after last max block number
if self.chain_table == "chain_moonbeam_moonbase_alpha":
cur.execute(
Expand Down

0 comments on commit fbd83fc

Please sign in to comment.