mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 23:21:02 +00:00
Decrease number of GRANDPA authorities in Polkadot-like chains from 100_000 to 2_048 (#1852)
* decrease number of GRANDPA authorities in Polkadot-like chains from 100_000 to 2048 * spelling
This commit is contained in:
committed by
Bastian Köcher
parent
a091b8405e
commit
411150b7be
@@ -43,6 +43,16 @@ pub use sp_runtime::{traits::Convert, Perbill};
|
||||
|
||||
pub mod parachains;
|
||||
|
||||
/// Maximal number of GRANDPA authorities at Polkadot-like chains.
|
||||
///
|
||||
/// Ideally, we would set it to the value of `MaxAuthorities` constant from bridged runtime
|
||||
/// configurations. But right now it is set to the `100_000`, which makes PoV size for
|
||||
/// our bridge hub parachains huge. So let's stick to the real-world value here.
|
||||
///
|
||||
/// Right now both Kusama and Polkadot aim to have around 1000 validators. Let's be safe here and
|
||||
/// take twice as much here.
|
||||
pub const MAX_AUTHORITIES_COUNT: u32 = 2_048;
|
||||
|
||||
/// Number of extra bytes (excluding size of storage value itself) of storage proof, built at
|
||||
/// Polkadot-like chain. This mostly depends on number of entries in the storage trie.
|
||||
/// Some reserve is reserved to account future chain growth.
|
||||
|
||||
Reference in New Issue
Block a user