projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use `impl<bounds>` instead of a `where` clause to help bindings
[rust-lightning]
/
lightning
/
src
/
ln
/
mod.rs
diff --git
a/lightning/src/ln/mod.rs
b/lightning/src/ln/mod.rs
index 3cf580a3681f008987a26829ed1e91fa7763fd54..44704ae5040f44ee58e21b853be05a41252a1e2e 100644
(file)
--- a/
lightning/src/ln/mod.rs
+++ b/
lightning/src/ln/mod.rs
@@
-27,17
+27,20
@@
pub mod msgs;
pub mod peer_handler;
pub mod chan_utils;
pub mod features;
pub mod peer_handler;
pub mod chan_utils;
pub mod features;
-pub(crate) mod onchaintx;
-pub(crate) mod package;
+pub mod script;
-#[cfg(f
eature = "fuzztarget"
)]
+#[cfg(f
uzzing
)]
pub mod peer_channel_encryptor;
pub mod peer_channel_encryptor;
-#[cfg(not(f
eature = "fuzztarget"
))]
+#[cfg(not(f
uzzing
))]
pub(crate) mod peer_channel_encryptor;
pub(crate) mod peer_channel_encryptor;
-mod channel;
+#[cfg(fuzzing)]
+pub mod channel;
+#[cfg(not(fuzzing))]
+pub(crate) mod channel;
+
mod onion_utils;
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
// 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
@@
-48,12
+51,22
@@
mod wire;
mod functional_tests;
#[cfg(test)]
#[allow(unused_mut)]
mod functional_tests;
#[cfg(test)]
#[allow(unused_mut)]
+mod payment_tests;
+#[cfg(test)]
+#[allow(unused_mut)]
mod chanmon_update_fail_tests;
#[cfg(test)]
mod chanmon_update_fail_tests;
#[cfg(test)]
+#[allow(unused_mut)]
mod reorg_tests;
#[cfg(test)]
#[allow(unused_mut)]
mod onion_route_tests;
mod reorg_tests;
#[cfg(test)]
#[allow(unused_mut)]
mod onion_route_tests;
+#[cfg(test)]
+#[allow(unused_mut)]
+mod monitor_tests;
+#[cfg(test)]
+#[allow(unused_mut)]
+mod shutdown_tests;
pub use self::peer_channel_encryptor::LN_MAX_MSG_LEN;
pub use self::peer_channel_encryptor::LN_MAX_MSG_LEN;
@@
-70,6
+83,7
@@
pub struct PaymentPreimage(pub [u8;32]);
#[derive(Hash, Copy, Clone, PartialEq, Eq, Debug)]
pub struct PaymentSecret(pub [u8;32]);
#[derive(Hash, Copy, Clone, PartialEq, Eq, Debug)]
pub struct PaymentSecret(pub [u8;32]);
+use prelude::*;
use bitcoin::bech32;
use bitcoin::bech32::{Base32Len, FromBase32, ToBase32, WriteBase32, u5};
use bitcoin::bech32;
use bitcoin::bech32::{Base32Len, FromBase32, ToBase32, WriteBase32, u5};