You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let scid_candidate = fake_scid::Namespace::Phantom.get_fake_scid(best_block.height(),&self.genesis_hash,&self.fake_scid_rand_bytes,&self.keys_manager);
5615
5625
// Ensure the generated scid doesn't conflict with a real channel.
5616
5626
match short_to_chan_info.get(&scid_candidate){
5617
-
Some((_cp_id, _chan_id)) => continue,
5627
+
Some(_) => continue,
5618
5628
None => return scid_candidate
5619
5629
}
5620
5630
}
@@ -5848,7 +5858,7 @@ where
5848
5858
5849
5859
fnget_relevant_txids(&self) -> Vec<Txid>{
5850
5860
let channel_state = self.channel_state.lock().unwrap();
5851
-
letmut res = Vec::with_capacity(self.short_to_chan_info.read().unwrap().len());
5861
+
letmut res = Vec::with_capacity(channel_state.by_id.len());
0 commit comments