From 3103ee0283b2a102fedec78704ead7068de8ae48 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Tue, 26 Nov 2024 10:07:11 +1100 Subject: [PATCH] Bump smallvec len --- src/bitfield.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/bitfield.rs b/src/bitfield.rs index dedaf7a..bae83cd 100644 --- a/src/bitfield.rs +++ b/src/bitfield.rs @@ -12,9 +12,10 @@ use typenum::Unsigned; /// Maximum number of bytes to store on the stack in a bitfield's `SmallVec`. /// -/// The default of 32 bytes is enough to take us through to ~500K validators, as the byte length of -/// attestation bitfields is roughly `N // 32 slots // 64 committes // 8 bits`. -pub const SMALLVEC_LEN: usize = 32; +/// The default of 32 bytes is enough to take us through to ~1.31M validators, +/// as the byte length of attestation bitfields is roughly `N // 32 slots // 64 +/// committes // 8 bits`. +pub const SMALLVEC_LEN: usize = 80; /// A marker trait applied to `Variable` and `Fixed` that defines the behaviour of a `Bitfield`. pub trait BitfieldBehaviour: Clone {}