File tree Expand file tree Collapse file tree 4 files changed +10
-7
lines changed Expand file tree Collapse file tree 4 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ pub(super) enum HTLCForwardInfo {
248
248
/// variable at runtime (eg Channel::channel_reestablish needs to re-send messages in the order
249
249
/// they were originally sent). In those cases, this enum is also returned.
250
250
#[ derive( Clone , PartialEq ) ]
251
- pub ( super ) enum RAACommitmentOrder {
251
+ pub enum RAACommitmentOrder {
252
252
/// Send the CommitmentUpdate messages first
253
253
CommitmentFirst ,
254
254
/// Send the RevokeAndACK message first
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ pub type ChannelFeatures = Features<sealed::ChannelContext>;
68
68
impl InitFeatures {
69
69
/// Create a Features with the features we support
70
70
#[ cfg( not( feature = "fuzztarget" ) ) ]
71
- pub ( crate ) fn supported ( ) -> InitFeatures {
71
+ pub fn supported ( ) -> InitFeatures {
72
72
InitFeatures {
73
73
flags : vec ! [ 2 | 1 << 5 ] ,
74
74
mark : PhantomData ,
Original file line number Diff line number Diff line change @@ -15,17 +15,13 @@ pub mod msgs;
15
15
pub mod router;
16
16
pub mod peer_handler;
17
17
pub mod chan_utils;
18
+ pub mod features;
18
19
19
20
#[ cfg( feature = "fuzztarget" ) ]
20
21
pub mod peer_channel_encryptor;
21
22
#[ cfg( not( feature = "fuzztarget" ) ) ]
22
23
pub ( crate ) mod peer_channel_encryptor;
23
24
24
- #[ cfg( feature = "fuzztarget" ) ]
25
- pub mod features;
26
- #[ cfg( not( feature = "fuzztarget" ) ) ]
27
- pub ( crate ) mod features;
28
-
29
25
mod channel;
30
26
mod onion_utils;
31
27
Original file line number Diff line number Diff line change @@ -144,6 +144,13 @@ pub struct FundingLocked {
144
144
pub ( crate ) next_per_commitment_point : PublicKey ,
145
145
}
146
146
147
+ impl FundingLocked {
148
+ /// The channel ID
149
+ pub fn channel_id ( & self ) -> [ u8 ; 32 ] {
150
+ self . channel_id
151
+ }
152
+ }
153
+
147
154
/// A shutdown message to be sent or received from a peer
148
155
#[ derive( Clone , PartialEq ) ]
149
156
pub struct Shutdown {
You can’t perform that action at this time.
0 commit comments