mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 09:37:31 +00:00
synchronizer: fix request_missing_txs(..allow_server_not_finding_tx=True)
fixes #6686
This commit is contained in:
parent
5481fd8af6
commit
2232955a23
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue