Skip to content

Commit b8f27c4

Browse files
committed
Add Features::clear_route_blinding for testing
1 parent d8d0bc5 commit b8f27c4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lightning/src/ln/features.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -932,6 +932,13 @@ impl<T: sealed::AnchorsZeroFeeHtlcTx> Features<T> {
932932
}
933933
}
934934

935+
impl<T: sealed::RouteBlinding> Features<T> {
936+
#[cfg(test)]
937+
pub(crate) fn clear_route_blinding(&mut self) {
938+
<T as sealed::RouteBlinding>::clear_bits(&mut self.flags);
939+
}
940+
}
941+
935942
#[cfg(test)]
936943
impl<T: sealed::UnknownFeature> Features<T> {
937944
pub(crate) fn unknown() -> Self {

0 commit comments

Comments
 (0)