We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecaf93c commit dc8d356Copy full SHA for dc8d356
lightning-types/src/features.rs
@@ -709,8 +709,8 @@ const ANY_OPTIONAL_FEATURES_MASK: u8 = 0b10_10_10_10;
709
// space-wise, but we only get the remaining 2 usizes in length available for our own stuff (as any
710
// other value is interpreted as the `Heap` variant).
711
//
712
-// Thus, as long as we never use more than 15 bytes for our Held variant `FeatureFlags` is the same
713
-// length as a `Vec` in memory.
+// Thus, as long as we never use more than 16 bytes (15 bytes for the data and one byte for the
+// length) for our Held variant `FeatureFlags` is the same length as a `Vec` in memory.
714
const DIRECT_ALLOC_BYTES: usize = if sealed::MIN_FEATURES_ALLOCATION_BYTES > 8 * 2 - 1 {
715
sealed::MIN_FEATURES_ALLOCATION_BYTES
716
} else {
0 commit comments