Skip to content

Commit

Permalink
fixup! Utils for forwarding intercepted payments + getting intercept …
Browse files Browse the repository at this point in the history
…scids
  • Loading branch information
valentinewallace committed Nov 7, 2022
1 parent 90c4d75 commit 7d43091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightning/src/ln/channelmanager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5863,7 +5863,7 @@ impl<M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelManager<M, T, K, F
loop {
let scid_candidate = fake_scid::Namespace::Intercept.get_fake_scid(best_block.height(), &self.genesis_hash, &self.fake_scid_rand_bytes, &self.keys_manager);
// Ensure the generated scid doesn't conflict with a real channel.
if short_to_chan_info.get(&scid_candidate).is_some() { continue; }
if short_to_chan_info.contains_key(&scid_candidate) { continue }
return scid_candidate
}
}
Expand Down

0 comments on commit 7d43091

Please sign in to comment.