Skip to content

Commit

Permalink
xpay: created_at response from pay compatibility is a number, not int…
Browse files Browse the repository at this point in the history
…eger.

Reported-by: @hMsats
Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
rustyrussell committed Dec 17, 2024
1 parent 2060ddb commit 9da0ac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/xpay/xpay.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ static void payment_succeeded(struct payment *payment,
json_add_pubkey(js, "destination", &payment->destination);
json_add_sha256(js, "payment_hash", &payment->payment_hash);
json_add_string(js, "status", "complete");
json_add_u64(js, "created_at", (u64)payment->start_time.ts.tv_sec);
json_add_timeabs(js, "created_at", payment->start_time);
} else {
json_add_u64(js, "failed_parts", payment->num_failures);
json_add_u64(js, "successful_parts",
Expand Down

0 comments on commit 9da0ac3

Please sign in to comment.