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:
fiatjaf
2021-06-03 22:18:10 -03:00
committed by GitHub
parent fab1ed6fca
commit 28953256d0
4 changed files with 3 additions and 8 deletions

View File

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