Questions tagged [limit]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4 votes
2 answers

What should be the maximum size of a `BoundedVec`?

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, ...
Chralt's user avatar
  • 543
4 votes
1 answer

How to increase the limit of pallet count in runtime?

I found that Substrate has a limit of 64 pallets that can be added to the runtime. Adding more causes the following (very unobvious) error: error[E0599]: the function or associated item `execute_block`...
Filk's user avatar
  • 115
0 votes
2 answers

Is there time limit or weight limit when calling "on_finalize()" hook?

I want to clear a StorageMap in on_finalize() hook function. The code like this: //clear current epoch data for the next cycle let mut mrr: MultiRemovalResults = <CurrentEpochData&...
kugool's user avatar
  • 161
6 votes
1 answer

What should be the maximum size of Call for a runtime

There are unit tests in Polkadot and Kusama runtimes that fail if the core::mem::size_of<Call> is greater than 230 bytes. Kusama, Polkadot, Substrate. What exactly is this size of and how was ...
Mokhtar Naamani's user avatar
9 votes
3 answers

How to limit the number of values by prefix in StorageDoubleMap?

Say I have a StorageDoubleMap that stores Data structs for each user and ContextId #[pallet::storage] pub type Info<T: Config> = StorageDoubleMap< _, Blake2_128Concat, ...
Angelo's user avatar
  • 501
5 votes
1 answer

How to limit libp2p traffic or set maximum number of peers

In running a polkadot node on the mainnet, i'd like to know how to limit the maximum number of peers, or if this functionality is already built into the protocol somehow. Since my network traffic is ...
jonaburg's user avatar