SomberNight
6 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
1 additions and
12 deletions
-
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) |
|
|
|