mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 13:25:43 +01:00
xpay: created_at response from pay compatibility is a number, not integer.
Reported-by: @hMsats Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
3e9a4fc750
commit
d7adf06dfe
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user