File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,9 @@ pub trait Confirm {
176
176
/// Returns transactions that must be monitored for reorganization out of the chain along
177
177
/// with the hash of the block as part of which it had been previously confirmed.
178
178
///
179
+ /// Note that the returned `Option<BlockHash>` might be `None` for channels created with LDK
180
+ /// 0.0.112 and prior, in which case you need to manually track previous confirmations.
181
+ ///
179
182
/// Will include any transactions passed to [`transactions_confirmed`] that have insufficient
180
183
/// confirmations to be safe from a chain reorganization. Will not include any transactions
181
184
/// passed to [`transaction_unconfirmed`], unless later reconfirmed.
Original file line number Diff line number Diff line change @@ -5786,8 +5786,8 @@ where
5786
5786
let mut peer_state_lock = peer_state_mutex. lock ( ) . unwrap ( ) ;
5787
5787
let peer_state = & mut * peer_state_lock;
5788
5788
for chan in peer_state. channel_by_id . values ( ) {
5789
- if let ( Some ( funding_txo) , block_hash) = ( chan. get_funding_txo ( ) , chan. get_funding_tx_confirmed_in ( ) ) {
5790
- res. push ( ( funding_txo. txid , block_hash) ) ;
5789
+ if let ( Some ( funding_txo) , Some ( block_hash) ) = ( chan. get_funding_txo ( ) , chan. get_funding_tx_confirmed_in ( ) ) {
5790
+ res. push ( ( funding_txo. txid , Some ( block_hash) ) ) ;
5791
5791
}
5792
5792
}
5793
5793
}
You can’t perform that action at this time.
0 commit comments