From 861922fb1c15e4145ef6dd0eea0c5a02db7bd572 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 30 Mar 2022 14:13:12 +1030 Subject: [PATCH] channeld: log more information about restoring HTLCs. Signed-off-by: Rusty Russell --- channeld/full_channel.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/channeld/full_channel.c b/channeld/full_channel.c index 70ddc15df..ee7140e2b 100644 --- a/channeld/full_channel.c +++ b/channeld/full_channel.c @@ -1498,14 +1498,16 @@ bool channel_force_htlcs(struct channel *channel, status_debug("Restoring HTLC %zu/%zu:" " id=%"PRIu64" amount=%s cltv=%u" - " payment_hash=%s", + " payment_hash=%s %s", i, tal_count(htlcs), htlcs[i]->id, type_to_string(tmpctx, struct amount_msat, &htlcs[i]->amount), htlcs[i]->cltv_expiry, type_to_string(tmpctx, struct sha256, - &htlcs[i]->payment_hash)); + &htlcs[i]->payment_hash), + htlcs[i]->payment_preimage ? "(have preimage)" + : htlcs[i]->failed ? "(failed)" : ""); e = add_htlc(channel, htlcs[i]->state, htlcs[i]->id, htlcs[i]->amount,