What is the recommended maximum number of bytes to store within a BoundedVec
?
I am currently having the following struct:
#[derive(
parity_scale_codec::Decode,
parity_scale_codec::Encode,
parity_scale_codec::MaxEncodedLen,
scale_info::TypeInfo,
Clone,
Debug,
PartialEq,
Eq,
)]
pub struct JurorPoolItem<AccountId, Balance> {
pub(crate) stake: Balance,
pub(crate) juror: AccountId,
pub(crate) consumed_stake: Balance,
}
And a BoundedVec
:
pub(crate) type JurorPoolItemOf<T> = JurorPoolItem<AccountIdOf<T>, BalanceOf<T>>;
pub(crate) type JurorPoolOf<T> = BoundedVec<JurorPoolItemOf<T>, <T as Config>::MaxJurors>;
With the config parameter:
pub const MaxJurors: u32 = 10_000;
Is that too much for a block to handle if I iterate through this for example three times?