File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4275,7 +4275,7 @@ where
4275
4275
let mut unfunded_channels = 0 ;
4276
4276
let best_block_height = self . best_block . read ( ) . unwrap ( ) . height ( ) ;
4277
4277
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 {
4279
4279
unfunded_channels += 1 ;
4280
4280
}
4281
4281
}
@@ -6247,7 +6247,7 @@ where
6247
6247
for ( _, peer) in peer_state_lock. iter ( ) {
6248
6248
let mut has_funded_channels = false ;
6249
6249
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 {
6251
6251
has_funded_channels = true ;
6252
6252
}
6253
6253
}
You can’t perform that action at this time.
0 commit comments