Files
pallectrum/electrum
SomberNight 9439261e42 network: fix bug in best_effort_reliable
self.interface might get set to None after decorator checks it but before func gets scheduled:

125.04 | E | asyncio | Task exception was never retrieved
future: <Task finished name='Task-408' coro=<Transaction.add_info_from_network.<locals>.add_info_to_txin() done, defined at ...\electrum\electrum\transaction.py:976> exception=AttributeError("'NoneType' object has no attribute 'get_transaction'")>
Traceback (most recent call last):
  File "...\electrum\electrum\transaction.py", line 980, in add_info_to_txin
    await txin.add_info_from_network(network=network, ignore_network_issues=ignore_network_issues)
  File "...\electrum\electrum\transaction.py", line 375, in add_info_from_network
    self.utxo = await fetch_from_network(txid=self.prevout.txid.hex())
  File "...\electrum\electrum\transaction.py", line 362, in fetch_from_network
    raw_tx = await network.get_transaction(txid, timeout=10)
  File "...\electrum\electrum\network.py", line 866, in make_reliable_wrapper
    async with OldTaskGroup(wait=any) as group:
  File "...\aiorpcX\aiorpcx\curio.py", line 304, in __aexit__
    await self.join()
  File "...\electrum\electrum\util.py", line 1410, in join
    self.completed.result()
  File "...\electrum\electrum\network.py", line 889, in wrapper
    return await func(self, *args, **kwargs)
  File "...\electrum\electrum\network.py", line 1114, in get_transaction
    return await self.interface.get_transaction(tx_hash=tx_hash, timeout=timeout)
AttributeError: 'NoneType' object has no attribute 'get_transaction'
2023-03-12 00:20:52 +00:00
..
2023-02-17 11:43:11 +00:00
2023-02-17 11:43:11 +00:00
2023-02-17 11:43:11 +00:00
2023-02-17 11:43:11 +00:00
2023-02-17 11:43:11 +00:00
2023-02-17 11:43:11 +00:00
2023-02-17 11:43:11 +00:00
2023-02-17 11:43:11 +00:00
2023-02-17 11:43:11 +00:00
2023-02-17 11:43:11 +00:00
2023-02-17 11:43:11 +00:00
2023-02-17 11:43:11 +00:00
2023-02-17 11:43:11 +00:00
2023-02-17 11:43:11 +00:00
2023-01-26 17:11:49 +01:00
2023-02-17 11:43:11 +00:00