Skip to content

Commit 7d43091

Browse files
fixup! Utils for forwarding intercepted payments + getting intercept scids
1 parent 90c4d75 commit 7d43091

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/channelmanager.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5863,7 +5863,7 @@ impl<M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelManager<M, T, K, F
58635863
loop {
58645864
let scid_candidate = fake_scid::Namespace::Intercept.get_fake_scid(best_block.height(), &self.genesis_hash, &self.fake_scid_rand_bytes, &self.keys_manager);
58655865
// Ensure the generated scid doesn't conflict with a real channel.
5866-
if short_to_chan_info.get(&scid_candidate).is_some() { continue; }
5866+
if short_to_chan_info.contains_key(&scid_candidate) { continue }
58675867
return scid_candidate
58685868
}
58695869
}

0 commit comments

Comments
 (0)