mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 05:51:02 +00:00
Sample Auction Winners Every SampleLength Blocks (#2670)
* initial * add test * Update lib.rs * Update lib.rs
This commit is contained in:
@@ -612,10 +612,6 @@ impl paras_registrar::Config for Runtime {
|
||||
type WeightInfo = paras_registrar::TestWeightInfo;
|
||||
}
|
||||
|
||||
parameter_types! {
|
||||
pub const EndingPeriod: BlockNumber = 15 * MINUTES;
|
||||
}
|
||||
|
||||
// A wrapper around `babe::CurrentBlockRandomness` that does not return `Option<Random>`.
|
||||
pub struct CurrentBlockRandomness;
|
||||
|
||||
@@ -634,10 +630,16 @@ impl Randomness<Hash, BlockNumber> for CurrentBlockRandomness {
|
||||
}
|
||||
}
|
||||
|
||||
parameter_types! {
|
||||
pub const EndingPeriod: BlockNumber = 15 * MINUTES;
|
||||
pub const SampleLength: BlockNumber = 1;
|
||||
}
|
||||
|
||||
impl auctions::Config for Runtime {
|
||||
type Event = Event;
|
||||
type Leaser = Slots;
|
||||
type EndingPeriod = EndingPeriod;
|
||||
type SampleLength = SampleLength;
|
||||
type Randomness = CurrentBlockRandomness;
|
||||
type InitiateOrigin = EnsureRoot<AccountId>;
|
||||
type WeightInfo = auctions::TestWeightInfo;
|
||||
|
||||
Reference in New Issue
Block a user