Skip to content

Commit 1682628

Browse files
authored
Merge pull request #3244 from autonomys/update-enable-rewards
remove check of existing EnableRewards value set
2 parents 95bfe78 + 31eef99 commit 1682628

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

crates/pallet-subspace/src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,6 @@ pub mod pallet {
371371
pub enum Error<T> {
372372
/// Solution range adjustment already enabled.
373373
SolutionRangeAdjustmentAlreadyEnabled,
374-
/// Rewards already active.
375-
RewardsAlreadyEnabled,
376374
/// Iterations are not multiple of number of checkpoints times two
377375
NotMultipleOfCheckpoints,
378376
/// Proof of time slot iterations must increase as hardware improves
@@ -1116,10 +1114,6 @@ impl<T: Config> Pallet<T> {
11161114
fn do_enable_rewards_at(
11171115
enable_rewards_at: EnableRewardsAt<BlockNumberFor<T>>,
11181116
) -> DispatchResult {
1119-
if EnableRewards::<T>::get().is_some() {
1120-
return Err(Error::<T>::RewardsAlreadyEnabled.into());
1121-
}
1122-
11231117
match enable_rewards_at {
11241118
EnableRewardsAt::Height(block_number) => {
11251119
// Enable rewards at a particular block height (default to the next block after

crates/subspace-runtime/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
130130
spec_name: Cow::Borrowed("subspace"),
131131
impl_name: Cow::Borrowed("subspace"),
132132
authoring_version: 0,
133-
spec_version: 0,
133+
spec_version: 1,
134134
impl_version: 0,
135135
apis: RUNTIME_API_VERSIONS,
136136
transaction_version: 0,

0 commit comments

Comments
 (0)