Skip to content

Commit 10f671a

Browse files
committed
f note that we cannot C-export the new util constructors
1 parent de856bd commit 10f671a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lightning/src/ln/peer_handler.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,8 @@ impl<Descriptor: SocketDescriptor, CM: Deref, L: Deref> PeerManager<Descriptor,
361361
///
362362
/// ephemeral_random_data is used to derive per-connection ephemeral keys and must be
363363
/// cryptographically secure random bytes.
364+
///
365+
/// (C-not exported) as we can't export a PeerManager with a dummy route handler
364366
pub fn new_channel_only(channel_message_handler: CM, our_node_secret: SecretKey, ephemeral_random_data: &[u8; 32], logger: L) -> Self {
365367
Self::new(MessageHandler {
366368
chan_handler: channel_message_handler,
@@ -379,6 +381,8 @@ impl<Descriptor: SocketDescriptor, RM: Deref, L: Deref> PeerManager<Descriptor,
379381
///
380382
/// ephemeral_random_data is used to derive per-connection ephemeral keys and must be
381383
/// cryptographically secure random bytes.
384+
///
385+
/// (C-not exported) as we can't export a PeerManager with a dummy channel handler
382386
pub fn new_routing_only(routing_message_handler: RM, our_node_secret: SecretKey, ephemeral_random_data: &[u8; 32], logger: L) -> Self {
383387
Self::new(MessageHandler {
384388
chan_handler: DummyChannelHandler::new(),

0 commit comments

Comments
 (0)