Skip to content

Commit 44bec16

Browse files
committed
export create_onion_message and peel_onion_message from ln::onion_message
1 parent 5f1d66d commit 44bec16

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lightning/src/ln/msgs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1674,10 +1674,10 @@ pub use self::fuzzy_internal_msgs::*;
16741674
#[cfg(not(fuzzing))]
16751675
pub(crate) use self::fuzzy_internal_msgs::*;
16761676

1677-
/// Bolt 4 onion packet including hop data for the next peer.
1677+
/// BOLT 4 onion packet including hop data for the next peer.
16781678
#[derive(Clone)]
16791679
pub struct OnionPacket {
1680-
/// Bolt 4 version number.
1680+
/// BOLT 4 version number.
16811681
pub version: u8,
16821682
/// In order to ensure we always return an error on onion decode in compliance with [BOLT
16831683
/// #4](https://github.com/lightning/bolts/blob/master/04-onion-routing.md), we have to

lightning/src/onion_message/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ mod functional_tests;
2828

2929
// Re-export structs so they can be imported with just the `onion_message::` module prefix.
3030
pub use self::messenger::{CustomOnionMessageHandler, DefaultMessageRouter, Destination, MessageRouter, OnionMessageContents, OnionMessagePath, OnionMessenger, PeeledOnion, PendingOnionMessage, SendError};
31+
pub use self::messenger::{create_onion_message, peel_onion_message};
3132
#[cfg(not(c_bindings))]
3233
pub use self::messenger::{SimpleArcOnionMessenger, SimpleRefOnionMessenger};
3334
pub use self::offers::{OffersMessage, OffersMessageHandler};

0 commit comments

Comments
 (0)