Skip to content

Commit 08ba0c2

Browse files
committed
f add comemnt
1 parent b14ca39 commit 08ba0c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lightning/src/ln/channel.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3509,6 +3509,8 @@ impl<Signer: Sign> Channel<Signer> {
35093509
let non_shutdown_state = self.channel_state & (!MULTI_STATE_FLAGS);
35103510
for &(index_in_block, tx) in txdata.iter() {
35113511
if let Some(funding_txo) = self.get_funding_txo() {
3512+
// If we haven't yet sent a funding_locked, but are in FundingSent (ignoring
3513+
// whether they've sent a funding_locked or not), check if we should send one.
35123514
if non_shutdown_state & !(ChannelState::TheirFundingLocked as u32) == ChannelState::FundingSent as u32 {
35133515
if tx.txid() == funding_txo.txid {
35143516
let txo_idx = funding_txo.index as usize;

0 commit comments

Comments
 (0)