channeld: log more information about restoring HTLCs.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2022-03-30 14:13:12 +10:30
parent 0b7f789291
commit 861922fb1c
1 changed files with 4 additions and 2 deletions

View File

@ -1498,14 +1498,16 @@ bool channel_force_htlcs(struct channel *channel,
status_debug("Restoring HTLC %zu/%zu:" status_debug("Restoring HTLC %zu/%zu:"
" id=%"PRIu64" amount=%s cltv=%u" " id=%"PRIu64" amount=%s cltv=%u"
" payment_hash=%s", " payment_hash=%s %s",
i, tal_count(htlcs), i, tal_count(htlcs),
htlcs[i]->id, htlcs[i]->id,
type_to_string(tmpctx, struct amount_msat, type_to_string(tmpctx, struct amount_msat,
&htlcs[i]->amount), &htlcs[i]->amount),
htlcs[i]->cltv_expiry, htlcs[i]->cltv_expiry,
type_to_string(tmpctx, struct sha256, 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, e = add_htlc(channel, htlcs[i]->state,
htlcs[i]->id, htlcs[i]->amount, htlcs[i]->id, htlcs[i]->amount,