Skip to content

Commit

Permalink
synchronizer: fix request_missing_txs(..allow_server_not_finding_tx=T…
Browse files Browse the repository at this point in the history
…rue)

fixes #6686
  • Loading branch information
SomberNight committed Oct 26, 2020
1 parent 5481fd8 commit 2232955
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions electrum/synchronizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
from .transaction import Transaction, PartialTransaction
from .util import bh2u, make_aiohttp_session, NetworkJobOnDefaultServer, random_shuffled_copy
from .bitcoin import address_to_scripthash, is_address
from .network import UntrustedServerReturnedError
from .logging import Logger
from .interface import GracefulDisconnect

Expand Down Expand Up @@ -212,7 +211,7 @@ async def _get_transaction(self, tx_hash, *, allow_server_not_finding_tx=False):
self._requests_sent += 1
try:
raw_tx = await self.interface.get_transaction(tx_hash)
except UntrustedServerReturnedError as e:
except RPCError as e:
# most likely, "No such mempool or blockchain transaction"
if allow_server_not_finding_tx:
self.requested_tx.pop(tx_hash)
Expand Down

0 comments on commit 2232955

Please sign in to comment.