mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 20:21:03 +00:00
Fix Benchmarks to enable batch run (#5523)
* some fixes * Update tips benchmark to be resiliant to genesis * Update Cargo.lock
This commit is contained in:
@@ -111,14 +111,15 @@ benchmarks! {
|
||||
second {
|
||||
let s in 0 .. MAX_SECONDERS;
|
||||
|
||||
let caller = funded_account::<T>("caller", 0);
|
||||
let proposal_hash = add_proposal::<T>(s)?;
|
||||
|
||||
// Create s existing "seconds"
|
||||
for i in 0 .. s {
|
||||
let seconder = funded_account::<T>("seconder", i);
|
||||
Democracy::<T>::second(RawOrigin::Signed(seconder).into(), 0)?;
|
||||
}
|
||||
|
||||
let caller = funded_account::<T>("caller", 0);
|
||||
let proposal_hash = add_proposal::<T>(s)?;
|
||||
}: _(RawOrigin::Signed(caller), 0)
|
||||
|
||||
vote {
|
||||
|
||||
Reference in New Issue
Block a user