File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments