Rococo to use BABE randomness, Westend & Rococo runtime synchronization in file format (#5082)

* * Rococo to use BABE randomness
* Westend & Rococo runtime syncronization in file format (starting)

* explicit frame_support::weights::Weight
This commit is contained in:
Dan Shields
2022-03-14 18:34:34 -06:00
committed by GitHub
parent 474a2c02c4
commit 1b985c5d36
3 changed files with 44 additions and 72 deletions
+2 -1
View File
@@ -32,7 +32,8 @@ fn sample_size_is_sensible() {
use runtime_common::auctions::WeightInfo;
// Need to clean up all samples at the end of an auction.
let samples: BlockNumber = EndingPeriod::get() / SampleLength::get();
let max_weight: Weight = RocksDbWeight::get().reads_writes(samples.into(), samples.into());
let max_weight: frame_support::weights::Weight =
RocksDbWeight::get().reads_writes(samples.into(), samples.into());
// Max sample cleanup should be no more than half the total block weight.
assert!(max_weight * 2 < BlockWeights::get().max_block);
assert!(