projects
/
rust-lightning
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a7a90a
)
Add Features::clear_route_blinding for testing
author
Jeffrey Czyz
<jkczyz@gmail.com>
Wed, 20 Dec 2023 20:32:53 +0000
(14:32 -0600)
committer
Jeffrey Czyz
<jkczyz@gmail.com>
Tue, 16 Jan 2024 17:12:36 +0000
(11:12 -0600)
lightning/src/ln/features.rs
patch
|
blob
|
history
diff --git
a/lightning/src/ln/features.rs
b/lightning/src/ln/features.rs
index 2e732b17aa8bc8a88f923942ce8e47f0f3807b82..79f869a4c5864761f6b1438ce8e3d6613e9e0a0a 100644
(file)
--- a/
lightning/src/ln/features.rs
+++ b/
lightning/src/ln/features.rs
@@
-932,6
+932,13
@@
impl<T: sealed::AnchorsZeroFeeHtlcTx> Features<T> {
}
}
+impl<T: sealed::RouteBlinding> Features<T> {
+ #[cfg(test)]
+ pub(crate) fn clear_route_blinding(&mut self) {
+ <T as sealed::RouteBlinding>::clear_bits(&mut self.flags);
+ }
+}
+
#[cfg(test)]
impl<T: sealed::UnknownFeature> Features<T> {
pub(crate) fn unknown() -> Self {