pay-plugin: direct_pay only destination channels
The direct_pay payment modifier would query all peer channels, while only the channels of the given peer suffices. Changelog-None
This commit is contained in:
committed by
Christian Decker
parent
6bd5933a50
commit
281c639b57
@@ -3517,6 +3517,7 @@ static void direct_pay_cb(struct direct_pay_data *d, struct payment *p)
|
||||
direct_pay_listpeerchannels,
|
||||
direct_pay_listpeerchannels,
|
||||
p);
|
||||
json_add_node_id(req->js, "id", p->route_destination);
|
||||
send_outreq(p->plugin, req);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user