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 @@ -8538,8 +8538,8 @@ where
8538
8538
fn get_relevant_txids(&self) -> Vec<(Txid, u32, Option<BlockHash>)> {
8539
8539
let mut res = Vec::with_capacity(self.short_to_chan_info.read().unwrap().len());
8540
8540
for (_cp_id, peer_state_rwlock) in self.per_peer_state.read().unwrap().iter() {
8541
- let mut peer_state_lock = peer_state_rwlock.write ().unwrap();
8542
- let peer_state = &mut *peer_state_lock;
8541
+ let peer_state_lock = peer_state_rwlock.read ().unwrap();
8542
+ let peer_state = &*peer_state_lock;
8543
8543
for chan in peer_state.channel_by_id.values().filter_map(|phase| if let ChannelPhase::Funded(chan) = phase { Some(chan) } else { None }) {
8544
8544
let txid_opt = chan.context.get_funding_txo();
8545
8545
let height_opt = chan.context.get_funding_tx_confirmation_height();
You can’t perform that action at this time.
0 commit comments