Skip to content

Commit 6db57f4

Browse files
committed
splice: Add verbose log messages for new reestablish TLV
1 parent b127784 commit 6db57f4

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

channeld/channeld.c

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5406,6 +5406,10 @@ static void peer_reconnect(struct peer *peer,
54065406
send_tlvs->your_last_funding_locked_txid = &peer->channel->funding.txid;
54075407

54085408
send_tlvs->my_current_funding_locked_txid = &peer->channel->funding.txid;
5409+
status_debug("Setting send_tlvs->my_current_funding_locked_txid"
5410+
" to %s",
5411+
fmt_bitcoin_txid(tmpctx,
5412+
&peer->channel->funding.txid));
54095413

54105414
for (size_t i = 0; i < tal_count(peer->splice_state->inflights); i++) {
54115415
struct inflight *itr = peer->splice_state->inflights[i];
@@ -5422,6 +5426,25 @@ static void peer_reconnect(struct peer *peer,
54225426
}
54235427
}
54245428

5429+
status_debug("Sending channel_reestablish with"
5430+
" next_funding_tx_id: %s,"
5431+
" your_last_funding_locked: %s,"
5432+
" my_current_funding_locked: %s,"
5433+
" next_local_commit_number: %"PRIu64",",
5434+
send_tlvs && send_tlvs->next_funding
5435+
? fmt_bitcoin_txid(tmpctx,
5436+
send_tlvs->next_funding)
5437+
: "NULL",
5438+
send_tlvs && send_tlvs->your_last_funding_locked_txid
5439+
? fmt_bitcoin_txid(tmpctx,
5440+
send_tlvs->your_last_funding_locked_txid)
5441+
: "NULL",
5442+
send_tlvs && send_tlvs->my_current_funding_locked_txid
5443+
? fmt_bitcoin_txid(tmpctx,
5444+
send_tlvs->my_current_funding_locked_txid)
5445+
: "NULL",
5446+
send_next_commitment_number);
5447+
54255448
/* BOLT #2:
54265449
*
54275450
* - upon reconnection:

0 commit comments

Comments
 (0)