Update Substrate/Polkadot/Cumulus dependencies + weights v2 (#1850)

* cargo update

* weights v2

* clippy

* no spellcheck for weights.rs

* fix proof_size component in MAXIMUM_BLOCK_WEIGHT  constants

* "fix" proof_size in select_delivery_transaction_limits_works

* spellcheck
This commit is contained in:
Svyatoslav Nikolsky
2023-02-06 13:20:52 +03:00
committed by Bastian Köcher
parent 14b6e13916
commit a091b8405e
19 changed files with 807 additions and 133 deletions
+14 -1
View File
@@ -57,7 +57,9 @@ pub use frame_support::{
construct_runtime,
dispatch::DispatchClass,
parameter_types,
traits::{ConstU32, ConstU8, Currency, ExistenceRequirement, Imbalance, KeyOwnerProofSystem},
traits::{
ConstU32, ConstU64, ConstU8, Currency, ExistenceRequirement, Imbalance, KeyOwnerProofSystem,
},
weights::{constants::WEIGHT_REF_TIME_PER_SECOND, IdentityFee, RuntimeDbWeight, Weight},
StorageValue,
};
@@ -263,6 +265,7 @@ impl pallet_grandpa::Config for Runtime {
type HandleEquivocation = ();
// TODO: update me (https://github.com/paritytech/parity-bridges-common/issues/78)
type WeightInfo = ();
type MaxSetIdSessionEntries = ConstU64<0>;
}
impl pallet_mmr::Config for Runtime {
@@ -626,6 +629,10 @@ impl_runtime_apis! {
}
impl sp_beefy::BeefyApi<Block> for Runtime {
fn beefy_genesis() -> Option<BlockNumber> {
Beefy::genesis_block()
}
fn validator_set() -> Option<ValidatorSet<BeefyId>> {
Beefy::validator_set()
}
@@ -864,6 +871,12 @@ impl_runtime_apis! {
fn query_fee_details(uxt: <Block as BlockT>::Extrinsic, len: u32) -> FeeDetails<Balance> {
TransactionPayment::query_fee_details(uxt, len)
}
fn query_weight_to_fee(weight: Weight) -> Balance {
TransactionPayment::weight_to_fee(weight)
}
fn query_length_to_fee(length: u32) -> Balance {
TransactionPayment::length_to_fee(length)
}
}
impl sp_session::SessionKeys<Block> for Runtime {