From 0c2b43b6b2a5a27785108bf7519de53b6306261e Mon Sep 17 00:00:00 2001 From: niftynei Date: Tue, 19 Jul 2022 17:04:39 +0930 Subject: [PATCH] bkpr: add more data to listaccountevents printout --- plugins/bkpr/channel_event.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/bkpr/channel_event.c b/plugins/bkpr/channel_event.c index ca71f9f67..f127c6b7c 100644 --- a/plugins/bkpr/channel_event.c +++ b/plugins/bkpr/channel_event.c @@ -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); }