Skip to content

Commit

Permalink
plugins/pay: hand bolt11 arg to sendonion if we have one (i.e. for `p…
Browse files Browse the repository at this point in the history
…ay`)

[ Extracted into standalone patch and comment added by RR ]
  • Loading branch information
vincenzopalazzo authored and ZmnSCPxj committed Jul 26, 2020
1 parent 48b8fca commit 9de3035
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions plugins/libplugin-pay.c
Original file line number Diff line number Diff line change
Expand Up @@ -1040,6 +1040,9 @@ static struct command_result *payment_createonion_success(struct command *cmd,
if (p->label)
json_add_string(req->js, "label", p->label);

if (p->bolt11)
json_add_string(req->js, "bolt11", p->bolt11);

send_outreq(p->plugin, req);
return command_still_pending(cmd);
}
Expand Down
1 change: 0 additions & 1 deletion tests/test_pay.py
Original file line number Diff line number Diff line change
Expand Up @@ -3195,7 +3195,6 @@ def test_pay_fail_unconfirmed_channel(node_factory, bitcoind):
l1.rpc.pay(invl2)


@pytest.mark.xfail(strict=True)
def test_bolt11_null_after_pay(node_factory, bitcoind):
l1, l2 = node_factory.get_nodes(2)

Expand Down

0 comments on commit 9de3035

Please sign in to comment.