Browse Source

Merge #1240: Always track new transactions until confirmed

09b9747 Always track new transactions until confirmed (Adam Gibson)
master
Adam Gibson 4 years ago
parent
commit
7be0b6d719
No known key found for this signature in database
GPG Key ID: 141001A1AF77F20B
  1. 8
      jmclient/jmclient/wallet_service.py

8
jmclient/jmclient/wallet_service.py

@ -406,9 +406,11 @@ class WalletService(Service):
self.callbacks["unconfirmed"][txid] = callbacks
else:
self.callbacks["unconfirmed"].pop(txos, None)
if self.callbacks["confirmed"].get(txid):
# keep monitoring for conf > 0:
self.active_txs[txid] = txd
# we always add into active_txs, even if the caller
# didn't create any confirmed callbacks, because we
# need to trigger process_new_tx logic to update
# the height of the utxo in UtxoManager
self.active_txs[txid] = txd
elif confs > 0:
callbacks = [f for f in
self.callbacks["confirmed"].pop(txid, [])

Loading…
Cancel
Save