Skip to content

Commit f7c8d0d

Browse files
committed
dont make fake_scid pub
1 parent 6522b64 commit f7c8d0d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/util/scid_utils.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ pub fn scid_from_parts(block: u64, tx_index: u64, vout_index: u64) -> Result<u64
7070
/// 2) phantom node payments, to get an scid for the phantom node's phantom channel
7171
/// 3) payments intended to be intercepted will route using a fake scid (this is typically used so
7272
/// the forwarding node can open a JIT channel to the next hop)
73-
pub mod fake_scid {
73+
pub(crate) mod fake_scid {
7474
use bitcoin::blockdata::constants::ChainHash;
7575
use bitcoin::network::constants::Network;
7676
use crate::sign::EntropySource;
@@ -95,7 +95,7 @@ pub mod fake_scid {
9595
/// receipt, and handle the HTLC accordingly. The namespace identifier is encrypted when encoded
9696
/// into the fake scid.
9797
#[derive(Copy, Clone)]
98-
pub enum Namespace {
98+
pub(crate) enum Namespace {
9999
/// Phantom nodes namespace
100100
Phantom,
101101
/// SCID aliases for outbound private channels
@@ -109,7 +109,7 @@ pub mod fake_scid {
109109
/// between segwit activation and the current best known height, and the tx index and output
110110
/// index are also selected from a "reasonable" range. We add this logic because it makes it
111111
/// non-obvious at a glance that the scid is fake, e.g. if it appears in invoice route hints.
112-
pub fn get_fake_scid<ES: Deref>(&self, highest_seen_blockheight: u32, chain_hash: &ChainHash, fake_scid_rand_bytes: &[u8; 32], entropy_source: &ES) -> u64
112+
pub(crate) fn get_fake_scid<ES: Deref>(&self, highest_seen_blockheight: u32, chain_hash: &ChainHash, fake_scid_rand_bytes: &[u8; 32], entropy_source: &ES) -> u64
113113
where ES::Target: EntropySource,
114114
{
115115
// Ensure we haven't created a namespace that doesn't fit into the 3 bits we've allocated for

0 commit comments

Comments
 (0)