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
@@ -183,12 +183,14 @@ impl paras_registrar::Config for Test {
parameter_types! {
pub const EndingPeriod: BlockNumber = 10;
pub const SampleLength: BlockNumber = 1;
}
impl auctions::Config for Test {
type Event = Event;
type Leaser = Slots;
type EndingPeriod = EndingPeriod;
type SampleLength = SampleLength;
type Randomness = TestRandomness<Self>;
type InitiateOrigin = EnsureRoot<AccountId>;
type WeightInfo = crate::auctions::TestWeightInfo;