Skip to content

Commit dd8215d

Browse files
committed
f accept 0conf
1 parent 363d848 commit dd8215d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4275,7 +4275,7 @@ where
42754275
let mut unfunded_channels = 0;
42764276
let best_block_height = self.best_block.read().unwrap().height();
42774277
for (_, chan) in peer_state.channel_by_id.iter() {
4278-
if chan.get_funding_tx_confirmations(best_block_height) == 0 {
4278+
if chan.get_funding_tx_confirmations(best_block_height) == 0 && chan.minimum_depth() != 0 {
42794279
unfunded_channels += 1;
42804280
}
42814281
}
@@ -6247,7 +6247,7 @@ where
62476247
for (_, peer) in peer_state_lock.iter() {
62486248
let mut has_funded_channels = false;
62496249
for (_, chan) in peer.lock().unwrap().channel_by_id.iter() {
6250-
if chan.get_funding_tx_confirmations(best_block_height) != 0 {
6250+
if chan.get_funding_tx_confirmations(best_block_height) != 0 || chan.minimum_depth() == 0 {
62516251
has_funded_channels = true;
62526252
}
62536253
}

0 commit comments

Comments
 (0)