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. 6
      jmclient/jmclient/wallet_service.py

6
jmclient/jmclient/wallet_service.py

@ -406,8 +406,10 @@ class WalletService(Service):
self.callbacks["unconfirmed"][txid] = callbacks self.callbacks["unconfirmed"][txid] = callbacks
else: else:
self.callbacks["unconfirmed"].pop(txos, None) self.callbacks["unconfirmed"].pop(txos, None)
if self.callbacks["confirmed"].get(txid): # we always add into active_txs, even if the caller
# keep monitoring for conf > 0: # 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 self.active_txs[txid] = txd
elif confs > 0: elif confs > 0:
callbacks = [f for f in callbacks = [f for f in

Loading…
Cancel
Save