Unverified Commit cee1a93a authored by Shawn Tabrizi's avatar Shawn Tabrizi Committed by GitHub
Browse files

Companion for #6046 (#1104)

* Update impls.rs

* companion for substrate#6069

* update to latest changes

* Update Cargo.lock

* Bump

Co-authored-by: default avatarAndré Silva <andre.beat@gmail.com>
Co-authored-by: default avatarGav Wood <gavin@parity.io>
parent 6fe4fbaf
Pipeline #93628 passed with stages
in 24 minutes and 39 seconds
This diff is collapsed.
......@@ -87,7 +87,7 @@ pub struct TargetedFeeAdjustment<T, R>(sp_std::marker::PhantomData<(T, R)>);
impl<T: Get<Perquintill>, R: system::Trait> Convert<Fixed128, Fixed128> for TargetedFeeAdjustment<T, R> {
fn convert(multiplier: Fixed128) -> Fixed128 {
let max_weight = MaximumBlockWeight::get();
let block_weight = <system::Module<R>>::all_extrinsics_weight().total().min(max_weight);
let block_weight = <system::Module<R>>::block_weight().total().min(max_weight);
let target_weight = (T::get() * max_weight) as u128;
let block_weight = block_weight as u128;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment