Make Kusama decentralised and permissionless (#647)

* Remove Sudo

* Bump versions

* Fixes

* Remove other mentions of sudo

* Remove sudo from Cargo
This commit is contained in:
Gavin Wood
2019-12-03 15:46:47 +01:00
committed by GitHub
parent 14c135e429
commit ec54d5b1e4
19 changed files with 74 additions and 107 deletions
+1 -3
View File
@@ -1,6 +1,6 @@
[package]
name = "polkadot-runtime"
version = "0.7.4"
version = "0.7.5"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
build = "build.rs"
@@ -52,7 +52,6 @@ session = { package = "pallet-session", git = "https://github.com/paritytech/sub
frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-master" }
staking = { package = "pallet-staking", git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-master" }
pallet-staking-reward-curve = { git = "https://github.com/paritytech/substrate", branch = "polkadot-master" }
sudo = { package = "pallet-sudo", git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-master" }
system = { package = "frame-system", git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-master" }
system_rpc_runtime_api = { package = "frame-system-rpc-runtime-api", git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-master" }
timestamp = { package = "pallet-timestamp", git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-master" }
@@ -113,7 +112,6 @@ std = [
"sp-staking/std",
"session/std",
"staking/std",
"sudo/std",
"system/std",
"system_rpc_runtime_api/std",
"timestamp/std",
+1 -10
View File
@@ -97,7 +97,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("kusama"),
impl_name: create_runtime_str!("parity-kusama"),
authoring_version: 2,
spec_version: 1025,
spec_version: 1026,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
};
@@ -536,11 +536,6 @@ impl claims::Trait for Runtime {
type Prefix = Prefix;
}
impl sudo::Trait for Runtime {
type Event = Event;
type Proposal = Call;
}
parameter_types! {
pub const ReservationFee: Balance = 1 * DOLLARS;
pub const MinLength: usize = 3;
@@ -603,10 +598,6 @@ construct_runtime! {
Slots: slots::{Module, Call, Storage, Event<T>},
Registrar: registrar::{Module, Call, Storage, Event, Config<T>},
// Sudo. Usable initially.
// RELEASE: remove this for release build.
Sudo: sudo,
// Simple nicknames module.
Nicks: nicks::{Module, Call, Storage, Event<T>},
}