paseo-network / runtimes

Runtimes for Polkadot community testnet
GNU General Public License v3.0
24 stars 25 forks source link

Update AssetHub weights. #48

Closed hbulgarini closed 8 months ago

hbulgarini commented 8 months ago

This PR updates the weights for the AssetHub according to the Paseo reference hardware documented:

https://github.com/paseo-network/paseo-action-submission/blob/main/pas/PAS-7-Hardware_specs.md

NOTE: running the overhead benchmark at the moment is not possible due to technical limitations after the runtimes decoupling from the polkadot-sdk node. For now we are increasing the block_weights.rs + extrinsics_weights.rs to the exact double:

    parameter_types! {
        /// Importing a block with 0 Extrinsics.
        pub const BlockExecutionWeight: Weight =
            Weight::from_parts(constants::WEIGHT_REF_TIME_PER_NANOS.saturating_mul(10_000_000), 0); 
    }
    parameter_types! {
        /// Executing a NO-OP `System::remarks` Extrinsic.
        pub const ExtrinsicBaseWeight: Weight =
            Weight::from_parts(constants::WEIGHT_REF_TIME_PER_NANOS.saturating_mul(250_000), 0); // multiply by 175_000_000 ?
    }
hbulgarini commented 8 months ago

@ggwpez as agreed, here you have the updated weights.