mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 19:51:05 +00:00
Constant Weight Signature in Benchmarking CLI (#7233)
* Don't remove unused components * add more metadata to generated file * unused code * proposed format * Revert "proposed format" This reverts commit ce522c3480157ab6670bcbd9b17e1398168cabf4. * Update weight signatures and unused components in benchmarks * Keep timestamp constant time * remove component from as_derivative
This commit is contained in:
@@ -160,7 +160,7 @@ pub fn extrinsics_data_root<H: Hash>(xts: Vec<Vec<u8>>) -> H::Output {
|
||||
}
|
||||
|
||||
pub trait WeightInfo {
|
||||
fn remark() -> Weight;
|
||||
fn remark(b: u32) -> Weight;
|
||||
fn set_heap_pages() -> Weight;
|
||||
fn set_changes_trie_config() -> Weight;
|
||||
fn set_storage(i: u32, ) -> Weight;
|
||||
@@ -570,7 +570,7 @@ decl_module! {
|
||||
/// - Base Weight: 0.665 µs, independent of remark length.
|
||||
/// - No DB operations.
|
||||
/// # </weight>
|
||||
#[weight = T::SystemWeightInfo::remark()]
|
||||
#[weight = T::SystemWeightInfo::remark(_remark.len() as u32)]
|
||||
fn remark(origin, _remark: Vec<u8>) {
|
||||
ensure_signed(origin)?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user