mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 21:01: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:
@@ -203,7 +203,7 @@ benchmarks_instance! {
|
||||
}: _(RawOrigin::Signed(caller), reason, awesome_person)
|
||||
|
||||
retract_tip {
|
||||
let r in 0 .. MAX_BYTES;
|
||||
let r = MAX_BYTES;
|
||||
let (caller, reason, awesome_person) = setup_awesome::<T, _>(r);
|
||||
Treasury::<T, _>::report_awesome(
|
||||
RawOrigin::Signed(caller.clone()).into(),
|
||||
|
||||
@@ -44,7 +44,6 @@ impl crate::WeightInfo for () {
|
||||
.saturating_add(DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// WARNING! Some components were not used: ["r"]
|
||||
fn retract_tip() -> Weight {
|
||||
(82970000 as Weight)
|
||||
.saturating_add(DbWeight::get().reads(1 as Weight))
|
||||
|
||||
Reference in New Issue
Block a user