pay, payalgo: Show erring_node as compressed DER pubkey.

For consistency with other node pubkeys.
This commit is contained in:
ZmnSCPxj 2018-04-04 00:19:42 +00:00 committed by Christian Decker
parent 66fc0a047b
commit 5a267eb831
2 changed files with 3 additions and 9 deletions

View file

@ -866,9 +866,7 @@ static void json_waitsendpay_on_resolve(const struct sendpay_result *r,
fail->erring_index); fail->erring_index);
json_add_num(data, "failcode", json_add_num(data, "failcode",
(unsigned) fail->failcode); (unsigned) fail->failcode);
json_add_hex(data, "erring_node", json_add_pubkey(data, "erring_node", &fail->erring_node);
&fail->erring_node,
sizeof(fail->erring_node));
json_add_short_channel_id(data, "erring_channel", json_add_short_channel_id(data, "erring_channel",
&fail->erring_channel); &fail->erring_channel);
if (fail->channel_update) if (fail->channel_update)

View file

@ -61,9 +61,7 @@ json_add_failure(struct json_result *r, char const *n,
json_add_string(r, "type", "FAIL_PAYMENT_REPLY"); json_add_string(r, "type", "FAIL_PAYMENT_REPLY");
json_add_num(r, "erring_index", rf->erring_index); json_add_num(r, "erring_index", rf->erring_index);
json_add_num(r, "failcode", (unsigned) rf->failcode); json_add_num(r, "failcode", (unsigned) rf->failcode);
json_add_hex(r, "erring_node", json_add_pubkey(r, "erring_node", &rf->erring_node);
&rf->erring_node,
sizeof(rf->erring_node));
json_add_short_channel_id(r, "erring_channel", json_add_short_channel_id(r, "erring_channel",
&rf->erring_channel); &rf->erring_channel);
if (rf->channel_update) if (rf->channel_update)
@ -244,9 +242,7 @@ static void json_pay_failure(struct pay *pay,
fail->erring_index); fail->erring_index);
json_add_num(data, "failcode", json_add_num(data, "failcode",
(unsigned) fail->failcode); (unsigned) fail->failcode);
json_add_hex(data, "erring_node", json_add_pubkey(data, "erring_node", &fail->erring_node);
&fail->erring_node,
sizeof(fail->erring_node));
json_add_short_channel_id(data, "erring_channel", json_add_short_channel_id(data, "erring_channel",
&fail->erring_channel); &fail->erring_channel);
if (fail->channel_update) if (fail->channel_update)