Browse Source

synchronizer: fix request_missing_txs(..allow_server_not_finding_tx=True)

fixes #6686
patch-4
SomberNight 4 years ago
parent
commit
2232955a23
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 3
      electrum/synchronizer.py

3
electrum/synchronizer.py

@ -34,7 +34,6 @@ from . import util
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
@ -212,7 +211,7 @@ class Synchronizer(SynchronizerBase):
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)

Loading…
Cancel
Save