Skip to content

Commit

Permalink
Merge pull request #612 from opentensor/emergency
Browse files Browse the repository at this point in the history
Emergency
  • Loading branch information
distributedstatemachine committed Jul 4, 2024
2 parents 1934f33 + 4e68a5b commit d81e523
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// `spec_version`, and `authoring_version` are the same between Wasm and native.
// This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
// the compatible custom types.
spec_version: 154,
spec_version: 155,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down Expand Up @@ -292,7 +292,8 @@ parameter_types! {
pub const DisallowPermissionlessEnterDuration: BlockNumber = 0;
pub const DisallowPermissionlessExtendDuration: BlockNumber = 0;

pub const RootEnterDuration: BlockNumber = 5 * 60 * 3; // 3 hours
pub const RootEnterDuration: BlockNumber = 5 * 60 * 24; // 24 hours

pub const RootExtendDuration: BlockNumber = 5 * 60 * 3; // 3 hours

pub const DisallowPermissionlessEntering: Option<Balance> = None;
Expand All @@ -306,9 +307,32 @@ impl Contains<RuntimeCall> for SafeModeWhitelistedCalls {
matches!(
call,
RuntimeCall::Sudo(_)
| RuntimeCall::Multisig(_)
| RuntimeCall::System(_)
| RuntimeCall::SafeMode(_)
| RuntimeCall::Timestamp(_)
| RuntimeCall::SubtensorModule(
pallet_subtensor::Call::add_stake { .. }
| pallet_subtensor::Call::become_delegate { .. }
| pallet_subtensor::Call::burned_register { .. }
| pallet_subtensor::Call::commit_weights { .. }
| pallet_subtensor::Call::decrease_take { .. }
| pallet_subtensor::Call::faucet { .. }
| pallet_subtensor::Call::increase_take { .. }
| pallet_subtensor::Call::register { .. }
| pallet_subtensor::Call::register_network { .. }
| pallet_subtensor::Call::remove_stake { .. }
| pallet_subtensor::Call::reveal_weights { .. }
| pallet_subtensor::Call::root_register { .. }
| pallet_subtensor::Call::serve_axon { .. }
| pallet_subtensor::Call::serve_prometheus { .. }
| pallet_subtensor::Call::set_root_weights { .. }
| pallet_subtensor::Call::set_weights { .. }
| pallet_subtensor::Call::sudo { .. }
| pallet_subtensor::Call::sudo_unchecked_weight { .. }
| pallet_subtensor::Call::swap_hotkey { .. }
| pallet_subtensor::Call::vote { .. }
)
)
}
}
Expand Down

0 comments on commit d81e523

Please sign in to comment.