Skip to content

Commit

Permalink
clean missing tx
Browse files Browse the repository at this point in the history
  • Loading branch information
Ouziel committed Dec 13, 2024
1 parent bb2448a commit b4467bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions counterparty-core/counterpartycore/lib/mempool.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ def parse_raw_mempool(db):
txhash_list.append(txid)
timestamps[txid] = tx_info["time"]

logger.debug(f"Getting {len(raw_tx_list)} raw transactions by batch from the mempool...")
logger.debug(f"Getting {len(txhash_list)} raw transactions by batch from the mempool...")
raw_transactions_by_hash = backend.addrindexrs.getrawtransaction_batch(
txhash_list, skip_missing=True
)
raw_tx_list = raw_transactions_by_hash.values()
raw_tx_list = [raw_hex for raw_hex in raw_transactions_by_hash.values() if raw_hex is not None]

logger.debug(f"Parsing {len(raw_tx_list)} transaction(s) from the mempool...")
parse_mempool_transactions(db, raw_tx_list, timestamps)
Expand Down

0 comments on commit b4467bb

Please sign in to comment.