Skip to content

Commit 145fdf2

Browse files
committed
xpay: created_at response from pay compatibility is a number, not integer.
Reported-by: @hMsats Signed-off-by: Rusty Russell <[email protected]>
1 parent 3c4c309 commit 145fdf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/xpay/xpay.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ static void payment_succeeded(struct payment *payment,
387387
json_add_pubkey(js, "destination", &payment->destination);
388388
json_add_sha256(js, "payment_hash", &payment->payment_hash);
389389
json_add_string(js, "status", "complete");
390-
json_add_u64(js, "created_at", (u64)payment->start_time.ts.tv_sec);
390+
json_add_timeabs(js, "created_at", payment->start_time);
391391
} else {
392392
json_add_u64(js, "failed_parts", payment->num_failures);
393393
json_add_u64(js, "successful_parts",

0 commit comments

Comments
 (0)