From 32528d6aa64bee26cf2560c6ce1fad34c80715c6 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Sat, 8 Sep 2018 01:10:41 +0200 Subject: [PATCH] rm dupe code --- electrum/synchronizer.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/electrum/synchronizer.py b/electrum/synchronizer.py index 841303124..f03b18cf3 100644 --- a/electrum/synchronizer.py +++ b/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)