Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Enable disputes on rococo (#3764)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lldenaurois authored Sep 2, 2021
1 parent 66ef2d3 commit 444e96a
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions runtime/rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ use sp_version::NativeVersion;
use sp_version::RuntimeVersion;

use runtime_parachains::{
configuration as parachains_configuration, dmp as parachains_dmp, hrmp as parachains_hrmp,
inclusion as parachains_inclusion, initializer as parachains_initializer,
origin as parachains_origin, paras as parachains_paras,
configuration as parachains_configuration, disputes as parachains_disputes,
dmp as parachains_dmp, hrmp as parachains_hrmp, inclusion as parachains_inclusion,
initializer as parachains_initializer, origin as parachains_origin, paras as parachains_paras,
paras_inherent as parachains_paras_inherent, scheduler as parachains_scheduler,
session_info as parachains_session_info, shared as parachains_shared, ump as parachains_ump,
};
Expand Down Expand Up @@ -223,6 +223,7 @@ construct_runtime! {
Ump: parachains_ump::{Pallet, Call, Storage, Event},
Hrmp: parachains_hrmp::{Pallet, Call, Storage, Event<T>, Config},
ParaSessionInfo: parachains_session_info::{Pallet, Storage},
ParasDisputes: parachains_disputes::{Pallet, Storage, Event<T>},

// Parachain Onboarding Pallets
Registrar: paras_registrar::{Pallet, Call, Storage, Event<T>},
Expand Down Expand Up @@ -376,6 +377,12 @@ impl pallet_session::historical::Config for Runtime {
type FullIdentificationOf = FullIdentificationOf;
}

impl parachains_disputes::Config for Runtime {
type Event = Event;
type RewardValidators = ();
type PunishValidators = ();
}

parameter_types! {
pub SessionDuration: BlockNumber = EpochDurationInBlocks::get() as _;
}
Expand Down

0 comments on commit 444e96a

Please sign in to comment.