Skip to content

Commit 471e937

Browse files
authored
Merge pull request #610 from opentensor/safe-mode-emergency
Whitelist the majority of the extrinsics in subtensor pallet and multisig
2 parents c85ca82 + 8128a7a commit 471e937

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

runtime/src/lib.rs

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
135135
// `spec_version`, and `authoring_version` are the same between Wasm and native.
136136
// This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
137137
// the compatible custom types.
138-
spec_version: 155,
138+
spec_version: 156,
139139
impl_version: 1,
140140
apis: RUNTIME_API_VERSIONS,
141141
transaction_version: 1,
@@ -302,10 +302,32 @@ impl Contains<RuntimeCall> for SafeModeWhitelistedCalls {
302302
matches!(
303303
call,
304304
RuntimeCall::Sudo(_)
305+
| RuntimeCall::Multisig(_)
305306
| RuntimeCall::System(_)
306307
| RuntimeCall::SafeMode(_)
307308
| RuntimeCall::Timestamp(_)
308-
| RuntimeCall::SubtensorModule(pallet_subtensor::Call::add_stake { .. })
309+
| RuntimeCall::SubtensorModule(
310+
pallet_subtensor::Call::add_stake { .. }
311+
| pallet_subtensor::Call::become_delegate { .. }
312+
| pallet_subtensor::Call::burned_register { .. }
313+
| pallet_subtensor::Call::commit_weights { .. }
314+
| pallet_subtensor::Call::decrease_take { .. }
315+
| pallet_subtensor::Call::faucet { .. }
316+
| pallet_subtensor::Call::increase_take { .. }
317+
| pallet_subtensor::Call::register { .. }
318+
| pallet_subtensor::Call::register_network { .. }
319+
| pallet_subtensor::Call::remove_stake { .. }
320+
| pallet_subtensor::Call::reveal_weights { .. }
321+
| pallet_subtensor::Call::root_register { .. }
322+
| pallet_subtensor::Call::serve_axon { .. }
323+
| pallet_subtensor::Call::serve_prometheus { .. }
324+
| pallet_subtensor::Call::set_root_weights { .. }
325+
| pallet_subtensor::Call::set_weights { .. }
326+
| pallet_subtensor::Call::sudo { .. }
327+
| pallet_subtensor::Call::sudo_unchecked_weight { .. }
328+
| pallet_subtensor::Call::swap_hotkey { .. }
329+
| pallet_subtensor::Call::vote { .. }
330+
)
309331
)
310332
}
311333
}

0 commit comments

Comments
 (0)