projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not panic on early tx broadcasts in fuzzing
[rust-lightning]
/
lightning
/
src
/
ln
/
features.rs
diff --git
a/lightning/src/ln/features.rs
b/lightning/src/ln/features.rs
index 57d1d427f1793450781f874f2c8786b12e8760c6..5c4a94dabfd59c367a91012719d5b5c82de609f8 100644
(file)
--- a/
lightning/src/ln/features.rs
+++ b/
lightning/src/ln/features.rs
@@
-19,7
+19,7
@@
//! supports a feature if it advertises the feature (as either required or optional) to its peers.
//! And the implementation can interpret a feature if the feature is known to it.
//!
//! supports a feature if it advertises the feature (as either required or optional) to its peers.
//! And the implementation can interpret a feature if the feature is known to it.
//!
-//! [BOLT #9]: https://github.com/lightning
network/lightning-rfc
/blob/master/09-features.md
+//! [BOLT #9]: https://github.com/lightning
/bolts
/blob/master/09-features.md
//! [messages]: crate::ln::msgs
use {io, io_extras};
//! [messages]: crate::ln::msgs
use {io, io_extras};
@@
-244,7
+244,7
@@
mod sealed {
///
/// See [BOLT #9] for details.
///
///
/// See [BOLT #9] for details.
///
- /// [BOLT #9]: https://github.com/lightning
network/lightning-rfc
/blob/master/09-features.md
+ /// [BOLT #9]: https://github.com/lightning
/bolts
/blob/master/09-features.md
pub trait $feature: Context {
/// The bit used to signify that the feature is required.
const EVEN_BIT: usize = $odd_bit - 1;
pub trait $feature: Context {
/// The bit used to signify that the feature is required.
const EVEN_BIT: usize = $odd_bit - 1;
@@
-743,6
+743,15
@@
impl<T: sealed::ShutdownAnySegwit> Features<T> {
self
}
}
self
}
}
+
+impl<T: sealed::Wumbo> Features<T> {
+ #[cfg(test)]
+ pub(crate) fn clear_wumbo(mut self) -> Self {
+ <T as sealed::Wumbo>::clear_bits(&mut self.flags);
+ self
+ }
+}
+
macro_rules! impl_feature_len_prefixed_write {
($features: ident) => {
impl Writeable for $features {
macro_rules! impl_feature_len_prefixed_write {
($features: ident) => {
impl Writeable for $features {