Skip to content
Prev Previous commit
Next Next commit
#409 returnself.last_slot to IndexerBase class
  • Loading branch information
otselnik committed Dec 26, 2021
commit 84d2f8ad5090cd4ae194864d662b6d033842d2f6
6 changes: 5 additions & 1 deletion proxy/indexer/indexer_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(self,

self.evm_loader_id = evm_loader_id
self.client = Client(solana_url)
self.transaction_receipts = SQLDictBinKey(tablename="known_transactions")
self.last_slot = start_slot
self.current_slot = 0
self.counter_ = 0

Expand Down Expand Up @@ -103,6 +103,10 @@ def gather_unknown_transactions(self):
slot = tx["slot"]
slot_sig = (slot, solana_signature)

if slot < self.last_slot:
continue_flag = False
break

if solana_signature in HISTORY_START:
logger.debug(solana_signature)
continue_flag = False
Expand Down