Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emergency #612

Merged
merged 14 commits into from
Jul 4, 2024
Merged
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
Loading