mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 17:01:34 +00:00
fix test_lnpeer
This commit is contained in:
parent
7f3542f080
commit
cb14bde422
1 changed files with 2 additions and 2 deletions
|
@ -1205,7 +1205,7 @@ class LNWallet(LNWorker):
|
||||||
if f and not f.cancelled():
|
if f and not f.cancelled():
|
||||||
f.set_result((False, None, reason))
|
f.set_result((False, None, reason))
|
||||||
else:
|
else:
|
||||||
self.logger.info('received unexpected payment_failed, probably from previous session')
|
chan.logger.info('received unexpected payment_failed, probably from previous session')
|
||||||
self.network.trigger_callback('invoice_status', payment_hash.hex())
|
self.network.trigger_callback('invoice_status', payment_hash.hex())
|
||||||
|
|
||||||
def payment_sent(self, chan, payment_hash: bytes):
|
def payment_sent(self, chan, payment_hash: bytes):
|
||||||
|
@ -1215,7 +1215,7 @@ class LNWallet(LNWorker):
|
||||||
if f and not f.cancelled():
|
if f and not f.cancelled():
|
||||||
f.set_result((True, preimage, None))
|
f.set_result((True, preimage, None))
|
||||||
else:
|
else:
|
||||||
self.logger.info('received unexpected payment_sent, probably from previous session')
|
chan.logger.info('received unexpected payment_sent, probably from previous session')
|
||||||
self.network.trigger_callback('invoice_status', payment_hash.hex())
|
self.network.trigger_callback('invoice_status', payment_hash.hex())
|
||||||
self.network.trigger_callback('ln_payment_completed', payment_hash, chan.channel_id)
|
self.network.trigger_callback('ln_payment_completed', payment_hash, chan.channel_id)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue