Sample Auction Winners Every SampleLength Blocks (#2670)

* initial

* add test

* Update lib.rs

* Update lib.rs
This commit is contained in:
Shawn Tabrizi
2021-03-24 12:22:20 +01:00
committed by GitHub
parent 49acd6bd09
commit 1a3e67f41b
4 changed files with 149 additions and 14 deletions
+2
View File
@@ -755,12 +755,14 @@ impl paras_registrar::Config for Runtime {
parameter_types! {
pub const EndingPeriod: BlockNumber = 1 * HOURS;
pub const SampleLength: BlockNumber = 1 * MINUTES;
}
impl auctions::Config for Runtime {
type Event = Event;
type Leaser = Slots;
type EndingPeriod = EndingPeriod;
type SampleLength = SampleLength;
type Randomness = pallet_babe::RandomnessFromOneEpochAgo<Runtime>;
type InitiateOrigin = EnsureRoot<AccountId>;
type WeightInfo = auctions::TestWeightInfo;