Skip to content

Commit

Permalink
One hour session duration (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
akru authored Aug 17, 2021
1 parent 0311428 commit 1012ef4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions runtime/shiden/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("shiden"),
impl_name: create_runtime_str!("shiden"),
authoring_version: 1,
spec_version: 5,
spec_version: 6,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand All @@ -93,8 +93,6 @@ pub fn native_version() -> NativeVersion {
}
}

pub type SessionHandlers = ();

impl_opaque_keys! {
pub struct SessionKeys {
pub aura: Aura,
Expand Down Expand Up @@ -142,7 +140,7 @@ impl Filter<Call> for BaseFilter {
match call {
// These modules are not allowed to be called by transactions:
Call::Balances(_) => false,
//
// To leave collator just shutdown it, next session funds will be released
Call::CollatorSelection(pallet_collator_selection::Call::leave_intent(..)) => false,
// Other modules should works:
_ => true,
Expand Down Expand Up @@ -268,7 +266,7 @@ impl pallet_authorship::Config for Runtime {

parameter_types! {
pub const DisabledValidatorsThreshold: Perbill = Perbill::from_percent(33);
pub const SessionPeriod: BlockNumber = 7 * DAYS;
pub const SessionPeriod: BlockNumber = 1 * HOURS;
pub const SessionOffset: BlockNumber = 0;
}

Expand Down

0 comments on commit 1012ef4

Please sign in to comment.