Skip to content

Commit 4a6e4e3

Browse files
fixup: doc that funding_seen_onchain is never reset
1 parent 8069305 commit 4a6e4e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,6 +1209,10 @@ pub(crate) struct ChannelMonitorImpl<Signer: EcdsaChannelSigner> {
12091209
/// assume this is `true` when absent during upgrade so holder broadcasts aren't gated unexpectedly.
12101210
/// In manual-broadcast channels we also use this to trigger deferred holder
12111211
/// broadcasts once the funding transaction finally appears on-chain.
1212+
///
1213+
/// Note: This tracks whether the funding transaction was ever broadcast, not whether it is
1214+
/// currently confirmed. It is never reset, even if the funding transaction is unconfirmed due
1215+
/// to a reorg.
12121216
funding_seen_onchain: bool,
12131217

12141218
latest_update_id: u64,

0 commit comments

Comments
 (0)