electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 2232955a237f8fc1d6fa63696018961dece8c9c3
parent 5481fd8af692b7e24b4e904b115ea6a1f80e6a0b
Author: SomberNight <somber.night@protonmail.com>
Date:   Mon, 26 Oct 2020 14:29:10 +0100

synchronizer: fix request_missing_txs(..allow_server_not_finding_tx=True)

fixes #6686

Diffstat:
Melectrum/synchronizer.py | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/electrum/synchronizer.py b/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)