Skip to content

Commit 98f6370

Browse files
committed
splice: Improve log message for handle_peer_commit_sig
1 parent ededb7c commit 98f6370

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

channeld/channeld.c

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1942,8 +1942,9 @@ static struct commitsig_info *handle_peer_commit_sig(struct peer *peer,
19421942
remote_funding };
19431943

19441944
status_debug("handle_peer_commit_sig(splice: %d, remote_splice: %d,"
1945-
" index: %"PRIu64")",
1946-
(int)splice_amnt, (int)remote_splice_amnt, local_index);
1945+
" commit_index: %"PRIu32", local_index: %"PRIu64", msg: %p)",
1946+
(int)splice_amnt, (int)remote_splice_amnt, commit_index,
1947+
local_index, msg);
19471948

19481949
struct tlv_commitment_signed_tlvs *cs_tlv
19491950
= tlv_commitment_signed_tlvs_new(tmpctx);
@@ -2057,16 +2058,18 @@ static struct commitsig_info *handle_peer_commit_sig(struct peer *peer,
20572058
dump_htlcs(peer->channel, "receiving commit_sig");
20582059
peer_failed_warn(peer->pps, &peer->channel_id,
20592060
"Bad commit_sig signature %"PRIu64" %s for tx"
2060-
" %s wscript %s key %s feerate %u. Cur funding"
2061-
" %s, splice_info: %s, race_await_commit: %s,"
2061+
" %s wscript %s key %s feerate %u. Outpoint"
2062+
" %s, funding_sats: %s, splice_info: %s,"
2063+
" race_await_commit: %s,"
20622064
" inflight splice count: %zu",
20632065
local_index,
20642066
fmt_bitcoin_signature(msg, &commit_sig),
20652067
fmt_bitcoin_tx(msg, txs[0]),
20662068
tal_hex(msg, funding_wscript),
20672069
fmt_pubkey(msg, &remote_funding),
20682070
channel_feerate(peer->channel, LOCAL),
2069-
fmt_channel_id(tmpctx, &active_id),
2071+
fmt_bitcoin_outpoint(tmpctx, &outpoint),
2072+
fmt_amount_sat(tmpctx, funding_sats),
20702073
cs_tlv && cs_tlv->splice_info
20712074
? fmt_channel_id(tmpctx,
20722075
&cs_tlv->splice_info->funding_txid)

0 commit comments

Comments
 (0)