Skip to content

Commit a2b6e15

Browse files
committed
f explain our guessing on is-from-on-chain
1 parent 2aa66b8 commit a2b6e15

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8902,6 +8902,9 @@ where
89028902
}
89038903

89048904
for (source, preimage, downstream_value, downstream_closed, downstream_chan_id) in pending_claims_to_replay {
8905+
// We use `downstream_closed` in place of `from_onchain` here just as a guess - we
8906+
// don't remember in the `ChannelMonitor` where we got a preimage from, but if the
8907+
// channel is closed we just assume that it probably came from an on-chain claim.
89058908
channel_manager.claim_funds_internal(source, preimage, Some(downstream_value),
89068909
downstream_closed, downstream_chan_id, true);
89078910
}

0 commit comments

Comments
 (0)