X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Fln%2Fmod.rs;h=44704ae5040f44ee58e21b853be05a41252a1e2e;hb=010c34f351f4ae37c419fc5d1c55c60b637bf241;hp=d265888e4659c7c9034ff3e4cb0e7164f4bc7bad;hpb=6f16453275638e2753dbb0791e852f096a633b9d;p=rust-lightning diff --git a/lightning/src/ln/mod.rs b/lightning/src/ln/mod.rs index d265888e..44704ae5 100644 --- a/lightning/src/ln/mod.rs +++ b/lightning/src/ln/mod.rs @@ -29,18 +29,18 @@ pub mod chan_utils; pub mod features; pub mod script; -#[cfg(feature = "fuzztarget")] +#[cfg(fuzzing)] pub mod peer_channel_encryptor; -#[cfg(not(feature = "fuzztarget"))] +#[cfg(not(fuzzing))] pub(crate) mod peer_channel_encryptor; -#[cfg(feature = "fuzztarget")] +#[cfg(fuzzing)] pub mod channel; -#[cfg(not(feature = "fuzztarget"))] -mod channel; +#[cfg(not(fuzzing))] +pub(crate) mod channel; mod onion_utils; -mod wire; +pub mod wire; // Older rustc (which we support) refuses to let us call the get_payment_preimage_hash!() macro // without the node parameter being mut. This is incorrect, and thus newer rustcs will complain @@ -51,6 +51,9 @@ mod wire; mod functional_tests; #[cfg(test)] #[allow(unused_mut)] +mod payment_tests; +#[cfg(test)] +#[allow(unused_mut)] mod chanmon_update_fail_tests; #[cfg(test)] #[allow(unused_mut)]