Companion for Generate storage info for pallet im_online #9654 (#3744)

* Adding `MaxKeys` `MaxPeerInHeartbeats` and
`MaxPeerDataEncodingSize` to paller `im_online` after substrate changes

* update Substrate

Co-authored-by: parity-processbot <>
This commit is contained in:
Georges
2021-09-20 12:58:09 +01:00
committed by GitHub
parent 7b39f096b8
commit d13d0d4f07
5 changed files with 178 additions and 154 deletions
+154 -154
View File
File diff suppressed because it is too large Load Diff
+6
View File
@@ -702,6 +702,9 @@ parameter_types! {
pub const BountyValueMinimum: Balance = 200 * CENTS; pub const BountyValueMinimum: Balance = 200 * CENTS;
pub const MaxApprovals: u32 = 100; pub const MaxApprovals: u32 = 100;
pub const MaxAuthorities: u32 = 100_000; pub const MaxAuthorities: u32 = 100_000;
pub const MaxKeys: u32 = 10_000;
pub const MaxPeerInHeartbeats: u32 = 10_000;
pub const MaxPeerDataEncodingSize: u32 = 1_000;
} }
type ApproveOrigin = EnsureOneOf< type ApproveOrigin = EnsureOneOf<
@@ -774,6 +777,9 @@ impl pallet_im_online::Config for Runtime {
type ReportUnresponsiveness = Offences; type ReportUnresponsiveness = Offences;
type UnsignedPriority = ImOnlineUnsignedPriority; type UnsignedPriority = ImOnlineUnsignedPriority;
type WeightInfo = weights::pallet_im_online::WeightInfo<Runtime>; type WeightInfo = weights::pallet_im_online::WeightInfo<Runtime>;
type MaxKeys = MaxKeys;
type MaxPeerInHeartbeats = MaxPeerInHeartbeats;
type MaxPeerDataEncodingSize = MaxPeerDataEncodingSize;
} }
impl pallet_grandpa::Config for Runtime { impl pallet_grandpa::Config for Runtime {
+6
View File
@@ -688,6 +688,9 @@ parameter_types! {
pub const BountyValueMinimum: Balance = 10 * DOLLARS; pub const BountyValueMinimum: Balance = 10 * DOLLARS;
pub const MaxApprovals: u32 = 100; pub const MaxApprovals: u32 = 100;
pub const MaxAuthorities: u32 = 100_000; pub const MaxAuthorities: u32 = 100_000;
pub const MaxKeys: u32 = 10_000;
pub const MaxPeerInHeartbeats: u32 = 10_000;
pub const MaxPeerDataEncodingSize: u32 = 1_000;
} }
type ApproveOrigin = EnsureOneOf< type ApproveOrigin = EnsureOneOf<
@@ -760,6 +763,9 @@ impl pallet_im_online::Config for Runtime {
type ReportUnresponsiveness = Offences; type ReportUnresponsiveness = Offences;
type UnsignedPriority = ImOnlineUnsignedPriority; type UnsignedPriority = ImOnlineUnsignedPriority;
type WeightInfo = weights::pallet_im_online::WeightInfo<Runtime>; type WeightInfo = weights::pallet_im_online::WeightInfo<Runtime>;
type MaxKeys = MaxKeys;
type MaxPeerInHeartbeats = MaxPeerInHeartbeats;
type MaxPeerDataEncodingSize = MaxPeerDataEncodingSize;
} }
impl pallet_grandpa::Config for Runtime { impl pallet_grandpa::Config for Runtime {
+6
View File
@@ -377,6 +377,9 @@ parameter_types! {
parameter_types! { parameter_types! {
pub const ImOnlineUnsignedPriority: TransactionPriority = TransactionPriority::max_value(); pub const ImOnlineUnsignedPriority: TransactionPriority = TransactionPriority::max_value();
pub const MaxKeys: u32 = 10_000;
pub const MaxPeerInHeartbeats: u32 = 10_000;
pub const MaxPeerDataEncodingSize: u32 = 1_000;
} }
impl pallet_im_online::Config for Runtime { impl pallet_im_online::Config for Runtime {
@@ -387,6 +390,9 @@ impl pallet_im_online::Config for Runtime {
type ReportUnresponsiveness = Offences; type ReportUnresponsiveness = Offences;
type UnsignedPriority = ImOnlineUnsignedPriority; type UnsignedPriority = ImOnlineUnsignedPriority;
type WeightInfo = (); type WeightInfo = ();
type MaxKeys = MaxKeys;
type MaxPeerInHeartbeats = MaxPeerInHeartbeats;
type MaxPeerDataEncodingSize = MaxPeerDataEncodingSize;
} }
parameter_types! { parameter_types! {
+6
View File
@@ -483,6 +483,9 @@ impl pallet_authority_discovery::Config for Runtime {
parameter_types! { parameter_types! {
pub const NposSolutionPriority: TransactionPriority = TransactionPriority::max_value() / 2; pub const NposSolutionPriority: TransactionPriority = TransactionPriority::max_value() / 2;
pub const ImOnlineUnsignedPriority: TransactionPriority = TransactionPriority::max_value(); pub const ImOnlineUnsignedPriority: TransactionPriority = TransactionPriority::max_value();
pub const MaxKeys: u32 = 10_000;
pub const MaxPeerInHeartbeats: u32 = 10_000;
pub const MaxPeerDataEncodingSize: u32 = 1_000;
} }
impl pallet_im_online::Config for Runtime { impl pallet_im_online::Config for Runtime {
@@ -493,6 +496,9 @@ impl pallet_im_online::Config for Runtime {
type ReportUnresponsiveness = Offences; type ReportUnresponsiveness = Offences;
type UnsignedPriority = ImOnlineUnsignedPriority; type UnsignedPriority = ImOnlineUnsignedPriority;
type WeightInfo = weights::pallet_im_online::WeightInfo<Runtime>; type WeightInfo = weights::pallet_im_online::WeightInfo<Runtime>;
type MaxKeys = MaxKeys;
type MaxPeerInHeartbeats = MaxPeerInHeartbeats;
type MaxPeerDataEncodingSize = MaxPeerDataEncodingSize;
} }
impl pallet_grandpa::Config for Runtime { impl pallet_grandpa::Config for Runtime {