mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
fix #5681
This commit is contained in:
parent
a51a2a7f8f
commit
b08cfac643
1 changed files with 3 additions and 2 deletions
|
@ -1358,14 +1358,15 @@ class Abstract_Wallet(AddressSynchronizer):
|
||||||
if not req:
|
if not req:
|
||||||
return
|
return
|
||||||
req = copy.copy(req)
|
req = copy.copy(req)
|
||||||
if req['type'] == PR_TYPE_ONCHAIN:
|
_type = req.get('type')
|
||||||
|
if _type == PR_TYPE_ONCHAIN:
|
||||||
addr = req['address']
|
addr = req['address']
|
||||||
req['URI'] = self.get_request_URI(addr)
|
req['URI'] = self.get_request_URI(addr)
|
||||||
status, conf = self.get_request_status(addr)
|
status, conf = self.get_request_status(addr)
|
||||||
req['status'] = status
|
req['status'] = status
|
||||||
if conf is not None:
|
if conf is not None:
|
||||||
req['confirmations'] = conf
|
req['confirmations'] = conf
|
||||||
elif self.lnworker and req['type'] == PR_TYPE_LN:
|
elif self.lnworker and _type == PR_TYPE_LN:
|
||||||
req['status'] = self.lnworker.get_invoice_status(bfh(key))
|
req['status'] = self.lnworker.get_invoice_status(bfh(key))
|
||||||
else:
|
else:
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Reference in a new issue