-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Conversation
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
@@ -71,53 +64,76 @@ pub type NegativeImbalance<T> = <pallet_balances::Pallet<T> as Currency< | |||
pub const AVERAGE_ON_INITIALIZE_RATIO: Perbill = Perbill::from_percent(1); | |||
/// We allow `Normal` extrinsics to fill up the block up to 75%, the rest can be used | |||
/// by Operational extrinsics. | |||
const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75); | |||
pub const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only intended logic change.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
println!("Base: {}", BlockWeights::get().get(DispatchClass::Normal).base_extrinsic); | ||
let x = WeightToFee::calc(&BlockWeights::get().max_block); | ||
println!("Base: {}", ExtrinsicBaseWeight::get()); | ||
let x = WeightToFee::calc(&MAXIMUM_BLOCK_WEIGHT); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test here looks weird so I changed it to look like in the other runtimes; in polkadot, kusama and westend it is all done this way.
Could also be macro generated 🤷
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
would be good to sanity check the metadata constants have not changed with regard to these weight parameters. |
Waiting for this to be resolved, since cumulus should 🤞 already build with this version: #5037 (comment)
I will extract the metadata manually and check but CI would be much preferred. |
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
I wrote a small script to compare the metadata between branches and there is no change for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't look at the whole diff, but sounds right to me, and much cleaner now 👍
bot merge |
This MR makes the
BlockExecution
,ExtrinsicBase
,RocksDb
andParityDb
Weights runtime dependent.Later on paritytech/substrate#10977 will be used to generate weights for each runtime instead of using the Substrate defaults.
Changes:
frame_support
into each*_runtime_constants
moduleruntime_common
into each runtime with a newimpl_runtime_weights!
macroNORMAL_DISPATCH_RATIO
public since it is mentioned in the doc ofTargetBlockFullness
. Can make it private again if that is better.I checked that the runtime did not change: #5064 (comment), CI confirmation would still be appreciated.
cumulus companion: paritytech/cumulus#1076