Skip to content

Commit 3c4c309

Browse files
committed
xpay: simplify printing of destination.
Signed-off-by: Rusty Russell <[email protected]>
1 parent da0507c commit 3c4c309

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

plugins/xpay/xpay.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,6 @@ static void payment_succeeded(struct payment *payment,
374374
const struct attempt *attempt)
375375
{
376376
struct json_stream *js;
377-
struct node_id dst;
378377

379378
/* Only succeed once */
380379
if (payment->cmd) {
@@ -385,8 +384,7 @@ static void payment_succeeded(struct payment *payment,
385384
/* Pay's schema expects these fields */
386385
if (payment->pay_compat) {
387386
json_add_u64(js, "parts", payment->total_num_attempts);
388-
node_id_from_pubkey(&dst, &payment->destination);
389-
json_add_node_id(js, "destination", &dst);
387+
json_add_pubkey(js, "destination", &payment->destination);
390388
json_add_sha256(js, "payment_hash", &payment->payment_hash);
391389
json_add_string(js, "status", "complete");
392390
json_add_u64(js, "created_at", (u64)payment->start_time.ts.tv_sec);

0 commit comments

Comments
 (0)