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);
5597
5607
// Ensure the generated scid doesn't conflict with a real channel.
5598
5608
match short_to_chan_info.get(&scid_candidate){
5599
-
Some((_cp_id, _chan_id)) => continue,
5609
+
Some(_) => continue,
5600
5610
None => return scid_candidate
5601
5611
}
5602
5612
}
@@ -5830,7 +5840,7 @@ where
5830
5840
5831
5841
fnget_relevant_txids(&self) -> Vec<Txid>{
5832
5842
let channel_state = self.channel_state.lock().unwrap();
5833
-
letmut res = Vec::with_capacity(self.short_to_chan_info.read().unwrap().len());
5843
+
letmut res = Vec::with_capacity(channel_state.by_id.len());
0 commit comments