Skip to content

Commit f7ca462

Browse files
committed
f accept 0conf
1 parent 0906649 commit f7ca462

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
@@ -4276,7 +4276,7 @@ where
42764276
let mut unfunded_channels = 0;
42774277
let best_block_height = self.best_block.read().unwrap().height();
42784278
for (_, chan) in peer_state.channel_by_id.iter() {
4279-
if chan.get_funding_tx_confirmations(best_block_height) == 0 {
4279+
if chan.get_funding_tx_confirmations(best_block_height) == 0 && chan.minimum_depth() != 0 {
42804280
unfunded_channels += 1;
42814281
}
42824282
}
@@ -6250,7 +6250,7 @@ where
62506250
for (_, peer) in peer_state_lock.iter() {
62516251
let mut has_funded_channels = false;
62526252
for (_, chan) in peer.lock().unwrap().channel_by_id.iter() {
6253-
if chan.get_funding_tx_confirmations(best_block_height) != 0 {
6253+
if chan.get_funding_tx_confirmations(best_block_height) != 0 || chan.minimum_depth() == 0 {
62546254
has_funded_channels = true;
62556255
}
62566256
}

0 commit comments

Comments
 (0)