Handle Onboarding in Current Lease Period (#2731)

* Lease out current period and trigger onboard

* Add test for trigger_onboard

* patch and add benchmark

* finish benchmarks

* Use result instead of panic for test_registrar

* nits
This commit is contained in:
Shawn Tabrizi
2021-03-27 21:16:10 +01:00
committed by GitHub
parent 66c4936e21
commit 69c7c52de6
3 changed files with 199 additions and 60 deletions
+1 -1
View File
@@ -627,7 +627,7 @@ impl Randomness<Hash, BlockNumber> for ParentHashRandomness {
}
parameter_types! {
pub const EndingPeriod: BlockNumber = 15 * MINUTES;
pub const EndingPeriod: BlockNumber = 1 * HOURS;
pub const SampleLength: BlockNumber = 1;
}