From 2232955a237f8fc1d6fa63696018961dece8c9c3 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Mon, 26 Oct 2020 14:29:10 +0100 Subject: [PATCH] synchronizer: fix request_missing_txs(..allow_server_not_finding_tx=True) fixes #6686 --- electrum/synchronizer.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/electrum/synchronizer.py b/electrum/synchronizer.py index fea8ac2cd..3c9435754 100644 --- 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)