Skip to content

Commit b250790

Browse files
committed
splice: Add verbose log messages for new reestablish TLV
1 parent 9d9d6bc commit b250790

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
@@ -5408,6 +5408,10 @@ static void peer_reconnect(struct peer *peer,
54085408
send_tlvs->your_last_funding_locked_txid = &peer->channel->funding.txid;
54095409

54105410
send_tlvs->my_current_funding_locked_txid = &peer->channel->funding.txid;
5411+
status_debug("Setting send_tlvs->my_current_funding_locked_txid"
5412+
" to %s",
5413+
fmt_bitcoin_txid(tmpctx,
5414+
&peer->channel->funding.txid));
54115415

54125416
for (size_t i = 0; i < tal_count(peer->splice_state->inflights); i++) {
54135417
struct inflight *itr = peer->splice_state->inflights[i];
@@ -5424,6 +5428,25 @@ static void peer_reconnect(struct peer *peer,
54245428
}
54255429
}
54265430

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

0 commit comments

Comments
 (0)