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:
Jesse de Wit
2024-09-30 14:41:05 +02:00
committed by Christian Decker
parent 6bd5933a50
commit 281c639b57

View File

@@ -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);
}