tests: test payreq status after getting paid via LN
The test failures corresponding to single-part (non-MPP) payments expose a bug.
see 196b4c00a3/electrum/lnpeer.py (L1538-L1539)
`lnworker.add_received_htlc` is not called for single-part payments...
This commit is contained in:
@@ -577,9 +577,9 @@ class LNWallet(LNWorker):
|
||||
lnwatcher: Optional['LNWalletWatcher']
|
||||
|
||||
def __init__(self, wallet: 'Abstract_Wallet', xprv):
|
||||
Logger.__init__(self)
|
||||
self.wallet = wallet
|
||||
self.db = wallet.db
|
||||
Logger.__init__(self)
|
||||
LNWorker.__init__(self, xprv, LNWALLET_FEATURES)
|
||||
self.config = wallet.config
|
||||
self.lnwatcher = None
|
||||
@@ -621,6 +621,9 @@ class LNWallet(LNWorker):
|
||||
def get_channel_by_id(self, channel_id: bytes) -> Optional[Channel]:
|
||||
return self._channels.get(channel_id, None)
|
||||
|
||||
def diagnostic_name(self):
|
||||
return self.wallet.diagnostic_name()
|
||||
|
||||
@ignore_exceptions
|
||||
@log_exceptions
|
||||
async def sync_with_local_watchtower(self):
|
||||
|
||||
Reference in New Issue
Block a user