Skip to content

Commit

Permalink
Merge pull request #610 from opentensor/safe-mode-emergency
Browse files Browse the repository at this point in the history
Whitelist the majority of the extrinsics in subtensor pallet and multisig
  • Loading branch information
keithtensor authored Jul 3, 2024
2 parents c85ca82 + 8128a7a commit 471e937
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,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: 155,
spec_version: 156,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down Expand Up @@ -302,10 +302,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 { .. })
| 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 471e937

Please sign in to comment.