Skip to content

Commit de52f41

Browse files
committed
Add Features::clear_route_blinding for testing
1 parent 7aac0be commit de52f41

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lightning/src/ln/features.rs

+7
Original file line numberDiff line numberDiff line change
@@ -920,6 +920,13 @@ impl<T: sealed::AnchorsZeroFeeHtlcTx> Features<T> {
920920
}
921921
}
922922

923+
impl<T: sealed::RouteBlinding> Features<T> {
924+
#[cfg(test)]
925+
pub(crate) fn clear_route_blinding(&mut self) {
926+
<T as sealed::RouteBlinding>::clear_bits(&mut self.flags);
927+
}
928+
}
929+
923930
#[cfg(test)]
924931
impl<T: sealed::UnknownFeature> Features<T> {
925932
pub(crate) fn unknown() -> Self {

0 commit comments

Comments
 (0)