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