Skip to content

Commit 3d2a0c2

Browse files
committed
pub(crate) visibility for routing/test_utils.rs
Give pub(crate) visibility to some routing test utilities to facilitate testing DefaultMessageRouter in functional tests.
1 parent f2b84e0 commit 3d2a0c2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lightning/src/routing/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ pub mod gossip;
1414
pub mod router;
1515
pub mod scoring;
1616
#[cfg(test)]
17-
mod test_utils;
17+
pub(crate) mod test_utils;

lightning/src/routing/test_utils.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use crate::sync::{self, Arc};
2727
use crate::routing::gossip::NodeId;
2828

2929
// Using the same keys for LN and BTC ids
30-
pub(super) fn add_channel(
30+
pub(crate) fn add_channel(
3131
gossip_sync: &P2PGossipSync<Arc<NetworkGraph<Arc<test_utils::TestLogger>>>, Arc<test_utils::TestChainSource>, Arc<test_utils::TestLogger>>,
3232
secp_ctx: &Secp256k1<All>, node_1_privkey: &SecretKey, node_2_privkey: &SecretKey, features: ChannelFeatures, short_channel_id: u64
3333
) {
@@ -59,7 +59,7 @@ pub(super) fn add_channel(
5959
};
6060
}
6161

62-
pub(super) fn add_or_update_node(
62+
pub(crate) fn add_or_update_node(
6363
gossip_sync: &P2PGossipSync<Arc<NetworkGraph<Arc<test_utils::TestLogger>>>, Arc<test_utils::TestChainSource>, Arc<test_utils::TestLogger>>,
6464
secp_ctx: &Secp256k1<All>, node_privkey: &SecretKey, features: NodeFeatures, timestamp: u32
6565
) {
@@ -86,7 +86,7 @@ pub(super) fn add_or_update_node(
8686
};
8787
}
8888

89-
pub(super) fn update_channel(
89+
pub(crate) fn update_channel(
9090
gossip_sync: &P2PGossipSync<Arc<NetworkGraph<Arc<test_utils::TestLogger>>>, Arc<test_utils::TestChainSource>, Arc<test_utils::TestLogger>>,
9191
secp_ctx: &Secp256k1<All>, node_privkey: &SecretKey, update: UnsignedChannelUpdate
9292
) {

0 commit comments

Comments
 (0)