Skip to content

Commit

Permalink
Hotfix index_spl_token_backfill.py (#4320)
Browse files Browse the repository at this point in the history
  • Loading branch information
dharit-tan committed Nov 8, 2022
1 parent 3e3d882 commit 1c078bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -505,9 +505,7 @@ def process_transaction_signatures(
last_tx_sig = transaction_signatures[-1][0]

for tx_sig_batch in transaction_signatures:
logger.info(
f"index_rewards_manager_backfill.py | considering for processing: past {tx_sig_batch}"
)
logger.info(f"index_rewards_manager_backfill.py | processing {tx_sig_batch}")
batch_start_time = time.time()

transfer_instructions: List[RewardManagerTransactionInfo] = []
Expand Down
2 changes: 2 additions & 0 deletions discovery-provider/src/tasks/index_spl_token_backfill.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ def parse_spl_token_transaction(
tx_sig: ConfirmedSignatureForAddressResult,
) -> Optional[SplTokenTransactionInfo]:
try:
if tx_sig["err"]:
return None
tx_info = solana_client_manager.get_sol_tx_info(tx_sig["signature"])
result = tx_info["result"]
meta = result["meta"]
Expand Down

0 comments on commit 1c078bf

Please sign in to comment.