Skip to content

Commit 520f281

Browse files
committed
increase visibility for external integration tests
1 parent a252f81 commit 520f281

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ pub(super) enum HTLCForwardInfo {
248248
/// variable at runtime (eg Channel::channel_reestablish needs to re-send messages in the order
249249
/// they were originally sent). In those cases, this enum is also returned.
250250
#[derive(Clone, PartialEq)]
251-
pub(super) enum RAACommitmentOrder {
251+
pub enum RAACommitmentOrder {
252252
/// Send the CommitmentUpdate messages first
253253
CommitmentFirst,
254254
/// Send the RevokeAndACK message first

lightning/src/ln/features.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pub type ChannelFeatures = Features<sealed::ChannelContext>;
6868
impl InitFeatures {
6969
/// Create a Features with the features we support
7070
#[cfg(not(feature = "fuzztarget"))]
71-
pub(crate) fn supported() -> InitFeatures {
71+
pub fn supported() -> InitFeatures {
7272
InitFeatures {
7373
flags: vec![2 | 1 << 5],
7474
mark: PhantomData,

lightning/src/ln/mod.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,13 @@ pub mod msgs;
1515
pub mod router;
1616
pub mod peer_handler;
1717
pub mod chan_utils;
18+
pub mod features;
1819

1920
#[cfg(feature = "fuzztarget")]
2021
pub mod peer_channel_encryptor;
2122
#[cfg(not(feature = "fuzztarget"))]
2223
pub(crate) mod peer_channel_encryptor;
2324

24-
#[cfg(feature = "fuzztarget")]
25-
pub mod features;
26-
#[cfg(not(feature = "fuzztarget"))]
27-
pub(crate) mod features;
28-
2925
mod channel;
3026
mod onion_utils;
3127

lightning/src/ln/msgs.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,13 @@ pub struct FundingLocked {
144144
pub(crate) next_per_commitment_point: PublicKey,
145145
}
146146

147+
impl FundingLocked {
148+
/// The channel ID
149+
pub fn channel_id(&self) -> [u8; 32] {
150+
self.channel_id
151+
}
152+
}
153+
147154
/// A shutdown message to be sent or received from a peer
148155
#[derive(Clone, PartialEq)]
149156
pub struct Shutdown {

0 commit comments

Comments
 (0)