mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 11:07:56 +00:00
Weight v1.5 Follow Ups (#12155)
* update api * update * remove unused * remove `one` api * fix unused * fmt * add saturating accrue * remove `Weight::new()` * use some macros * div makes no sense * Update weight_v2.rs * missed some * more patch * fixes * more fixes * more fix * more fix * Update frame/support/src/weights/weight_v2.rs * not needed * fix weight file
This commit is contained in:
@@ -4250,7 +4250,7 @@ mod election_data_provider {
|
||||
fn targets_2sec_block() {
|
||||
let mut validators = 1000;
|
||||
while <Test as Config>::WeightInfo::get_npos_targets(validators) <
|
||||
2 * frame_support::weights::constants::WEIGHT_PER_SECOND
|
||||
2u64 * frame_support::weights::constants::WEIGHT_PER_SECOND
|
||||
{
|
||||
validators += 1;
|
||||
}
|
||||
@@ -4268,7 +4268,7 @@ mod election_data_provider {
|
||||
let mut nominators = 1000;
|
||||
|
||||
while <Test as Config>::WeightInfo::get_npos_voters(validators, nominators, slashing_spans) <
|
||||
2 * frame_support::weights::constants::WEIGHT_PER_SECOND
|
||||
2u64 * frame_support::weights::constants::WEIGHT_PER_SECOND
|
||||
{
|
||||
nominators += 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user