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 @@ -4276,7 +4276,7 @@ where
4276
4276
let mut unfunded_channels = 0 ;
4277
4277
let best_block_height = self . best_block . read ( ) . unwrap ( ) . height ( ) ;
4278
4278
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 {
4280
4280
unfunded_channels += 1 ;
4281
4281
}
4282
4282
}
@@ -6250,7 +6250,7 @@ where
6250
6250
for ( _, peer) in peer_state_lock. iter ( ) {
6251
6251
let mut has_funded_channels = false ;
6252
6252
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 {
6254
6254
has_funded_channels = true ;
6255
6255
}
6256
6256
}
You can’t perform that action at this time.
0 commit comments