@@ -1278,9 +1278,9 @@ decl_module! {
1278
1278
/// Number of eras that staked funds must remain bonded for.
1279
1279
const BondingDuration : EraIndex = T :: BondingDuration :: get( ) ;
1280
1280
1281
- /// Number of eras that slashes are deferred by, after computation.
1281
+ /// Number of eras that slashes are deferred by, after computation.
1282
1282
///
1283
- /// This should be less than the bonding duration.
1283
+ /// This should be less than the bonding duration.
1284
1284
/// Set to 0 if slashes should be applied immediately, without opportunity for
1285
1285
/// intervention.
1286
1286
const SlashDeferDuration : EraIndex = T :: SlashDeferDuration :: get( ) ;
@@ -1294,7 +1294,7 @@ decl_module! {
1294
1294
/// length of a session will be pointless.
1295
1295
const ElectionLookahead : T :: BlockNumber = T :: ElectionLookahead :: get( ) ;
1296
1296
1297
- /// Maximum number of balancing iterations to run in the offchain submission.
1297
+ /// Maximum number of balancing iterations to run in the offchain submission.
1298
1298
///
1299
1299
/// If set to 0, balance_solution will not be executed at all.
1300
1300
const MaxIterations : u32 = T :: MaxIterations :: get( ) ;
@@ -1312,28 +1312,6 @@ decl_module! {
1312
1312
1313
1313
fn deposit_event( ) = default ;
1314
1314
1315
- fn on_runtime_upgrade( ) -> Weight {
1316
- #[ allow( dead_code) ]
1317
- mod inner {
1318
- pub struct Module <T >( sp_std:: marker:: PhantomData <T >) ;
1319
- frame_support:: decl_storage! {
1320
- trait Store for Module <T : super :: Trait > as Staking {
1321
- pub MigrateEra : Option <super :: EraIndex >;
1322
- }
1323
- }
1324
- }
1325
-
1326
- if let Releases :: V3_0_0 = StorageVersion :: get( ) {
1327
- StorageVersion :: put( Releases :: V4_0_0 ) ;
1328
- inner:: MigrateEra :: kill( ) ;
1329
-
1330
- T :: DbWeight :: get( ) . reads_writes( 1 , 1 )
1331
- } else {
1332
- T :: DbWeight :: get( ) . reads( 1 )
1333
- }
1334
- }
1335
-
1336
-
1337
1315
/// sets `ElectionStatus` to `Open(now)` where `now` is the block number at which the
1338
1316
/// election window has opened, if we are at the last session and less blocks than
1339
1317
/// `T::ElectionLookahead` is remaining until the next new session schedule. The offchain
0 commit comments