Skip to content

Commit

Permalink
Add const SlashDeferDuration
Browse files Browse the repository at this point in the history
  • Loading branch information
badkk committed Oct 9, 2020
1 parent b336cc9 commit a6d81aa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cstrml/staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,13 @@ decl_module! {
/// Number of eras that staked funds must remain bonded for.
const BondingDuration: EraIndex = T::BondingDuration::get();

/// Number of eras that slashes are deferred by, after computation.
///
/// This should be less than the bonding duration.
/// Set to 0 if slashes should be applied immediately, without opportunity for
/// intervention.
const SlashDeferDuration: EraIndex = T::SlashDeferDuration::get();

type Error = Error<T>;

fn deposit_event() = default;
Expand Down

0 comments on commit a6d81aa

Please sign in to comment.