Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Unregister silent workers: update teerex-pallet
  • Loading branch information
echevrier committed Sep 7, 2021
commit 674a2fd9750ceb16186bbcd24a4c02b7959c8249
4 changes: 3 additions & 1 deletion runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ parameter_types! {
impl pallet_timestamp::Config for Runtime {
/// A timestamp: milliseconds since the unix epoch.
type Moment = Moment;
type OnTimestampSet = Aura;
type OnTimestampSet = (Aura, Teerex);
type MinimumPeriod = MinimumPeriod;
type WeightInfo = ();
}
Expand Down Expand Up @@ -296,13 +296,15 @@ impl pallet_sudo::Config for Runtime {

parameter_types! {
pub const MomentsPerDay: Moment = 86_400_000; // [ms/d]
pub const SilenceDuration: Moment =172_800_000; // 48h
}

/// added by SCS
impl pallet_teerex::Config for Runtime {
type Event = Event;
type Currency = pallet_balances::Pallet<Runtime>;
type MomentsPerDay = MomentsPerDay;
type SilenceDuration = SilenceDuration;
// currently we have only benchmarks there for the integritee-parachain
type WeightInfo = pallet_teerex::weights::IntegriteeWeight<Runtime>;
}
Expand Down