pay: Move notify_sendpay_* calls out of the waiter loop

Changelog-Changed: plugin: `notify_sendpay_success` and `notify_sendpay_failure` are now always called, even if there is no command waiting on the result.
This commit is contained in:
Christian Decker
2020-01-07 17:05:07 +01:00
parent 51ee5cc28d
commit b800904409
2 changed files with 31 additions and 28 deletions

View File

@@ -758,7 +758,6 @@ def test_sendpay_notifications(node_factory, bitcoind):
assert results['sendpay_failure'][0] == err.value.error
@pytest.mark.xfail(strict=True)
def test_sendpay_notifications_nowaiter(node_factory):
opts = [{'plugin': os.path.join(os.getcwd(), 'tests/plugins/sendpay_notifications.py')},
{},