]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Add Features::clear_route_blinding for testing
authorJeffrey Czyz <jkczyz@gmail.com>
Wed, 20 Dec 2023 20:32:53 +0000 (14:32 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 16 Jan 2024 17:12:36 +0000 (11:12 -0600)
lightning/src/ln/features.rs

index 2e732b17aa8bc8a88f923942ce8e47f0f3807b82..79f869a4c5864761f6b1438ce8e3d6613e9e0a0a 100644 (file)
@@ -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 {