Browse Source

rm dupe code

3.3.3.1
SomberNight 6 years ago
parent
commit
32528d6aa6
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 13
      electrum/synchronizer.py

13
electrum/synchronizer.py

@ -100,18 +100,7 @@ class Synchronizer(PrintError):
# Store received history
self.wallet.receive_history_callback(addr, hist, tx_fees)
# Request transactions we don't have
# "hist" is a list of [tx_hash, tx_height] lists
transaction_hashes = []
for tx_hash, tx_height in hist:
if tx_hash in self.requested_tx:
continue
if tx_hash in self.wallet.transactions:
continue
transaction_hashes.append(tx_hash)
self.requested_tx[tx_hash] = tx_height
for tx_hash in transaction_hashes:
await self.get_transaction(tx_hash)
await self.request_missing_txs(hist)
# Remove request; this allows up_to_date to be True
self.requested_histories.pop(addr)

Loading…
Cancel
Save