mirror of
https://github.com/aljazceru/plugins.git
synced 2026-01-19 04:54:26 +01:00
probe: use 'listsendpays' instead of 'listpayments'
'listpayments' is not part our lives anymore
This commit is contained in:
committed by
Christian Decker
parent
0c217383e8
commit
779e0dce5a
@@ -212,7 +212,7 @@ def poll_payments(plugin):
|
||||
"""Iterate through all probes and complete the finalized ones.
|
||||
"""
|
||||
for probe in plugin.pending_probes:
|
||||
p = plugin.rpc.listpayments(None, payment_hash=probe['payment_hash'])
|
||||
p = plugin.rpc.listsendpays(None, payment_hash=probe['payment_hash'])
|
||||
if p['payments'][0]['status'] == 'pending':
|
||||
continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user