bkpr: add more data to listaccountevents printout

This commit is contained in:
niftynei 2022-07-19 17:04:39 +09:30 committed by Rusty Russell
parent d72033882f
commit 0c2b43b6b2
1 changed files with 3 additions and 1 deletions

View File

@ -42,8 +42,10 @@ void json_add_channel_event(struct json_stream *out,
if (!amount_msat_zero(ev->fees))
json_add_amount_msat_only(out, "fees_msat", ev->fees);
json_add_string(out, "currency", ev->currency);
if (ev->payment_id)
if (ev->payment_id) {
json_add_sha256(out, "payment_id", ev->payment_id);
json_add_u32(out, "part_id", ev->part_id);
}
json_add_u64(out, "timestamp", ev->timestamp);
json_object_end(out);
}