mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 18:57:06 +01:00
pay, payalgo: Show erring_node as compressed DER pubkey.
For consistency with other node pubkeys.
This commit is contained in:
parent
66fc0a047b
commit
5a267eb831
2 changed files with 3 additions and 9 deletions
|
@ -866,9 +866,7 @@ static void json_waitsendpay_on_resolve(const struct sendpay_result *r,
|
|||
fail->erring_index);
|
||||
json_add_num(data, "failcode",
|
||||
(unsigned) fail->failcode);
|
||||
json_add_hex(data, "erring_node",
|
||||
&fail->erring_node,
|
||||
sizeof(fail->erring_node));
|
||||
json_add_pubkey(data, "erring_node", &fail->erring_node);
|
||||
json_add_short_channel_id(data, "erring_channel",
|
||||
&fail->erring_channel);
|
||||
if (fail->channel_update)
|
||||
|
|
|
@ -61,9 +61,7 @@ json_add_failure(struct json_result *r, char const *n,
|
|||
json_add_string(r, "type", "FAIL_PAYMENT_REPLY");
|
||||
json_add_num(r, "erring_index", rf->erring_index);
|
||||
json_add_num(r, "failcode", (unsigned) rf->failcode);
|
||||
json_add_hex(r, "erring_node",
|
||||
&rf->erring_node,
|
||||
sizeof(rf->erring_node));
|
||||
json_add_pubkey(r, "erring_node", &rf->erring_node);
|
||||
json_add_short_channel_id(r, "erring_channel",
|
||||
&rf->erring_channel);
|
||||
if (rf->channel_update)
|
||||
|
@ -244,9 +242,7 @@ static void json_pay_failure(struct pay *pay,
|
|||
fail->erring_index);
|
||||
json_add_num(data, "failcode",
|
||||
(unsigned) fail->failcode);
|
||||
json_add_hex(data, "erring_node",
|
||||
&fail->erring_node,
|
||||
sizeof(fail->erring_node));
|
||||
json_add_pubkey(data, "erring_node", &fail->erring_node);
|
||||
json_add_short_channel_id(data, "erring_channel",
|
||||
&fail->erring_channel);
|
||||
if (fail->channel_update)
|
||||
|
|
Loading…
Add table
Reference in a new issue