mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
stop requiring channel and direction on sendonion since they're not used.
Changelog-Changed: `sendonion` no longer requires the gratuitous `direction` and `channel` fields in the `firsthop` parameter.
This commit is contained in:
@@ -1505,8 +1505,6 @@ static struct command_result *payment_createonion_success(struct command *cmd,
|
||||
json_add_hex_talarr(req->js, "onion", p->createonion_response->onion);
|
||||
|
||||
json_object_start(req->js, "first_hop");
|
||||
json_add_short_channel_id(req->js, "channel", &first->scid);
|
||||
json_add_num(req->js, "direction", first->direction);
|
||||
json_add_amount_msat_only(req->js, "amount_msat", first->amount);
|
||||
json_add_num(req->js, "delay", first->delay);
|
||||
json_add_node_id(req->js, "id", &first->node_id);
|
||||
|
||||
Reference in New Issue
Block a user