impl InitFeatures {
/// Create a Features with the features we support
- #[cfg(not(feature = "fuzztarget"))]
- pub(crate) fn supported() -> InitFeatures {
- InitFeatures {
- flags: vec![2 | 1 << 5],
- mark: PhantomData,
- }
- }
- #[cfg(feature = "fuzztarget")]
pub fn supported() -> InitFeatures {
InitFeatures {
flags: vec![2 | 1 << 5],
pub mod router;
pub mod peer_handler;
pub mod chan_utils;
+pub mod features;
#[cfg(feature = "fuzztarget")]
pub mod peer_channel_encryptor;
#[cfg(not(feature = "fuzztarget"))]
pub(crate) mod peer_channel_encryptor;
-#[cfg(feature = "fuzztarget")]
-pub mod features;
-#[cfg(not(feature = "fuzztarget"))]
-pub(crate) mod features;
-
mod channel;
mod onion_utils;
/// A funding_locked message to be sent or received from a peer
#[derive(Clone, PartialEq)]
+#[allow(missing_docs)]
pub struct FundingLocked {
- pub(crate) channel_id: [u8; 32],
- pub(crate) next_per_commitment_point: PublicKey,
+ pub channel_id: [u8; 32],
+ pub next_per_commitment_point: PublicKey,
}
/// A shutdown message to be sent or received from a peer