mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-03 12:30:07 +00:00
follow-up previous commit
This commit is contained in:
parent
c4ab1e6fad
commit
0557738a6b
2 changed files with 2 additions and 1 deletions
|
@ -574,7 +574,7 @@ class Channel(Logger):
|
|||
self.hm.send_settle(htlc_id)
|
||||
|
||||
def get_payment_hash(self, htlc_id):
|
||||
log = self.hm.log[REMOTE]
|
||||
log = self.hm.log[LOCAL]
|
||||
htlc = log['adds'][htlc_id]
|
||||
return htlc.payment_hash
|
||||
|
||||
|
|
|
@ -1029,6 +1029,7 @@ class LNWallet(LNWorker):
|
|||
|
||||
async def await_payment(self, payment_hash):
|
||||
success = await self.pending_payments[payment_hash]
|
||||
self.pending_payments.pop(payment_hash)
|
||||
preimage = self.get_preimage(payment_hash)
|
||||
return success, preimage
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue