expose sample length in consts metadata (#2848)

This commit is contained in:
Shawn Tabrizi
2021-04-12 13:14:03 +02:00
committed by GitHub
parent dd3733261b
commit 2d21599ec5
+1
View File
@@ -192,6 +192,7 @@ decl_module! {
type Error = Error<T>;
const EndingPeriod: T::BlockNumber = T::EndingPeriod::get();
const SampleLength: T::BlockNumber = T::SampleLength::get();
const SlotRangeCount: u32 = SlotRange::SLOT_RANGE_COUNT as u32;
const LeasePeriodsPerSlot: u32 = SlotRange::LEASE_PERIODS_PER_SLOT as u32;