From ed1405babe3b7d1526d66e91b67e1587dba50edb Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Thu, 5 Dec 2024 11:30:55 +1100 Subject: [PATCH] Bump smallvec len to 128 (#38) --- ssz/src/bitfield.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ssz/src/bitfield.rs b/ssz/src/bitfield.rs index c53ff9c..19d774f 100644 --- a/ssz/src/bitfield.rs +++ b/ssz/src/bitfield.rs @@ -26,9 +26,10 @@ pub enum Error { /// 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; +/// 128 bytes is enough to take us through to ~2M active validators, as the byte +/// length of attestation bitfields is roughly `N // 32 slots // 64 committes // +/// 8 bits`. +pub const SMALLVEC_LEN: usize = 128; /// A marker trait applied to `Variable` and `Fixed` that defines the behaviour of a `Bitfield`. pub trait BitfieldBehaviour: Clone {}