Skip to content

Commit 11dec5c

Browse files
committed
Unset the optional bit for a feature when setting the required bit
There is no reason to set both, and this currently makes testing the new BOLT invoice tests slightly harder, so we just unset it.
1 parent 952697f commit 11dec5c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lightning/src/ln/features.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ mod sealed {
267267
}
268268

269269
flags[Self::BYTE_OFFSET] |= Self::REQUIRED_MASK;
270+
flags[Self::BYTE_OFFSET] &= !Self::OPTIONAL_MASK;
270271
}
271272

272273
/// Sets the feature's optional (odd) bit in the given flags.

0 commit comments

Comments
 (0)