Skip to content

Commit 62e433a

Browse files
authored
Merge pull request #2126 from opentensor/remove-gov-deadcode
Remove governance deadcode
2 parents 98c500b + 87e3449 commit 62e433a

File tree

39 files changed

+68
-6204
lines changed

39 files changed

+68
-6204
lines changed

Cargo.lock

Lines changed: 0 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ useless_conversion = "allow" # until polkadot is patched
5151
[workspace.dependencies]
5252
node-subtensor-runtime = { path = "runtime", default-features = false }
5353
pallet-admin-utils = { path = "pallets/admin-utils", default-features = false }
54-
pallet-subtensor-collective = { path = "pallets/collective", default-features = false }
5554
pallet-commitments = { path = "pallets/commitments", default-features = false }
5655
pallet-registry = { path = "pallets/registry", default-features = false }
5756
pallet-crowdloan = { path = "pallets/crowdloan", default-features = false }
@@ -136,7 +135,6 @@ pallet-aura = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "p
136135
pallet-balances = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2503-6", default-features = false }
137136
pallet-grandpa = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2503-6", default-features = false }
138137
pallet-insecure-randomness-collective-flip = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2503-6", default-features = false }
139-
pallet-membership = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2503-6", default-features = false }
140138
pallet-multisig = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2503-6", default-features = false }
141139
pallet-preimage = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2503-6", default-features = false }
142140
pallet-safe-mode = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2503-6", default-features = false }

node/src/chain_spec/localnet.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -99,18 +99,6 @@ fn localnet_genesis(
9999
}
100100
}
101101

102-
let trimvirate_members: Vec<AccountId> = bounded_vec![
103-
get_account_id_from_seed::<sr25519::Public>("Alice"),
104-
get_account_id_from_seed::<sr25519::Public>("Bob"),
105-
get_account_id_from_seed::<sr25519::Public>("Charlie"),
106-
];
107-
108-
let senate_members: Vec<AccountId> = bounded_vec![
109-
get_account_id_from_seed::<sr25519::Public>("Dave"),
110-
get_account_id_from_seed::<sr25519::Public>("Eve"),
111-
get_account_id_from_seed::<sr25519::Public>("Ferdie"),
112-
];
113-
114102
serde_json::json!({
115103
"balances": { "balances": balances },
116104
"aura": {
@@ -125,12 +113,6 @@ fn localnet_genesis(
125113
"sudo": {
126114
"key": Some(get_account_id_from_seed::<sr25519::Public>("Alice"))
127115
},
128-
"triumvirateMembers": {
129-
"members": trimvirate_members
130-
},
131-
"senateMembers": {
132-
"members": senate_members,
133-
},
134116
"evmChainId": {
135117
"chainId": 42,
136118
},

node/src/chain_spec/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use sc_service::ChainType;
1212
use sp_consensus_aura::sr25519::AuthorityId as AuraId;
1313
use sp_consensus_grandpa::AuthorityId as GrandpaId;
1414
use sp_core::crypto::Ss58Codec;
15-
use sp_core::{H256, Pair, Public, bounded_vec, sr25519};
15+
use sp_core::{H256, Pair, Public, sr25519};
1616
use sp_runtime::AccountId32;
1717
use sp_runtime::traits::{IdentifyAccount, Verify};
1818
use std::collections::HashSet;

pallets/admin-utils/src/tests/mock.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use frame_support::{
77
traits::{Everything, Hooks, InherentBuilder, PrivilegeCmp},
88
};
99
use frame_system::{self as system, offchain::CreateTransactionBase};
10-
use frame_system::{EnsureNever, EnsureRoot, limits};
10+
use frame_system::{EnsureRoot, limits};
1111
use sp_consensus_aura::sr25519::AuthorityId as AuraId;
1212
use sp_consensus_grandpa::AuthorityList as GrandpaAuthorityList;
1313
use sp_core::U256;
@@ -128,7 +128,6 @@ parameter_types! {
128128
pub const InitialMinDifficulty: u64 = 1;
129129
pub const InitialMaxDifficulty: u64 = u64::MAX;
130130
pub const InitialRAORecycledForRegistration: u64 = 0;
131-
pub const InitialSenateRequiredStakePercentage: u64 = 2; // 2 percent of total stake
132131
pub const InitialNetworkImmunityPeriod: u64 = 1_296_000;
133132
pub const InitialNetworkMinLockCost: u64 = 100_000_000_000;
134133
pub const InitialSubnetOwnerCut: u16 = 0; // 0%. 100% of rewards go to validators + miners.
@@ -160,9 +159,6 @@ impl pallet_subtensor::Config for Test {
160159
type Currency = Balances;
161160
type InitialIssuance = InitialIssuance;
162161
type SudoRuntimeCall = TestRuntimeCall;
163-
type CouncilOrigin = EnsureNever<AccountId>;
164-
type SenateMembers = ();
165-
type TriumvirateInterface = ();
166162
type Scheduler = Scheduler;
167163
type InitialMinAllowedWeights = InitialMinAllowedWeights;
168164
type InitialEmissionValue = InitialEmissionValue;
@@ -205,7 +201,6 @@ impl pallet_subtensor::Config for Test {
205201
type MinBurnUpperBound = MinBurnUpperBound;
206202
type MaxBurnLowerBound = MaxBurnLowerBound;
207203
type InitialRAORecycledForRegistration = InitialRAORecycledForRegistration;
208-
type InitialSenateRequiredStakePercentage = InitialSenateRequiredStakePercentage;
209204
type InitialNetworkImmunityPeriod = InitialNetworkImmunityPeriod;
210205
type InitialNetworkMinLockCost = InitialNetworkMinLockCost;
211206
type InitialSubnetOwnerCut = InitialSubnetOwnerCut;

pallets/collective/Cargo.toml

Lines changed: 0 additions & 55 deletions
This file was deleted.

pallets/collective/README.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)