mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 11:41:02 +00:00
* Remove Weight::without_{ref_time, proof_size}
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Fix tests
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* update lockfile for {"substrate", "polkadot"}
* add missing pallet-xcm-benchmarks function
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: parity-processbot <>
Co-authored-by: acatangiu <adrian@parity.io>
This commit is contained in:
committed by
GitHub
parent
af46f4b41e
commit
0a882a818a
@@ -1032,6 +1032,11 @@ impl_runtime_apis! {
|
||||
fn unlockable_asset() -> Result<(MultiLocation, MultiLocation, MultiAsset), BenchmarkError> {
|
||||
Err(BenchmarkError::Skip)
|
||||
}
|
||||
|
||||
fn export_message_origin_and_destination(
|
||||
) -> Result<(MultiLocation, NetworkId, InteriorMultiLocation), BenchmarkError> {
|
||||
Err(BenchmarkError::Skip)
|
||||
}
|
||||
}
|
||||
|
||||
type XcmBalances = pallet_xcm_benchmarks::fungible::Pallet::<Runtime>;
|
||||
@@ -1138,8 +1143,10 @@ mod tests {
|
||||
#[test]
|
||||
fn full_block_fee_ratio() {
|
||||
let block = RuntimeBlockWeights::get().max_block;
|
||||
let time_fee: Balance = fee::WeightToFee::weight_to_fee(&block.without_proof_size());
|
||||
let proof_fee: Balance = fee::WeightToFee::weight_to_fee(&block.without_ref_time());
|
||||
let time_fee: Balance =
|
||||
fee::WeightToFee::weight_to_fee(&Weight::from_parts(block.ref_time(), 0));
|
||||
let proof_fee: Balance =
|
||||
fee::WeightToFee::weight_to_fee(&Weight::from_parts(0, block.proof_size()));
|
||||
|
||||
let proof_o_time = proof_fee.checked_div(time_fee).unwrap_or_default();
|
||||
assert!(proof_o_time <= 30, "{} should be at most 30", proof_o_time);
|
||||
|
||||
Reference in New Issue
Block a user