probe: use 'listsendpays' instead of 'listpayments'

'listpayments' is not part our lives anymore
This commit is contained in:
darosior
2019-09-10 21:12:43 +02:00
committed by Christian Decker
parent 0c217383e8
commit 779e0dce5a

View File

@@ -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