mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 11:38:01 +00:00
* Update impls.rs * companion for substrate#6069 * update to latest changes * Update Cargo.lock * Bump Co-authored-by: André Silva <andre.beat@gmail.com> Co-authored-by: Gav Wood <gavin@parity.io>
This commit is contained in:
Generated
+132
-132
File diff suppressed because it is too large
Load Diff
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user