Skip to content

Commit 88e3ae5

Browse files
committed
Remove sudo
1 parent 55cc355 commit 88e3ae5

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

check-all-ci-tests.sh

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,21 @@
1616
# You should have received a copy of the GNU General Public License
1717
# along with this program. If not, see <https://www.gnu.org/licenses/>.
1818

19-
cargo fmt --check || exit
20-
RUSTFLAGS="-D warnings" cargo build || exit
21-
RUSTFLAGS="-D warnings" cargo build --features try-runtime || exit
19+
cargo fmt --check --features on-chain-release-build || exit
20+
RUSTFLAGS="-D warnings" cargo build --features on-chain-release-build || exit
21+
RUSTFLAGS="-D warnings" cargo build --features try-runtime || exit
2222
cargo build --features runtime-benchmarks || exit
2323
./target/debug/polkadex-node benchmark pallet --pallet "*" --extrinsic "*" --steps 2 --repeat 1 || exit
2424
cargo clippy -- -D warnings || exit
2525
RUSTFLAGS="-D warnings" cargo test --workspace || exit
26+
27+
28+
# Note while building wasm binary for runtime upgrade use the metadata-hash feature otherwise, ledger app will be broken
29+
# References
30+
# https://forum.polkadot.network/t/polkadot-generic-ledger-app/4295/26
31+
# https://paritytech.github.io/polkadot-sdk/master/polkadot_sdk_docs/guides/enable_metadata_hash/index.html
32+
# https://hackmd.io/@ePxWAFa1TbKm0U5Ym3IqgQ/rJdgmf6b0?utm_source=preview-mode&utm_medium=rec
33+
# 0xe7770f52f5d0ee108ded585ebe7c0d0b6ec65ea22739d7608d6c75c271dbdc3a - runtime upgrade preimage
34+
# https://www.notion.so/polkadex/Listing-on-Polkadex-Orderbook-3e49fcf22d52474da86dfa65135615e9#b225838c59fa4820a61365e276fd4684
35+
# https://wiki.polkadot.network/docs/learn/learn-governance
36+
# https://substrate.stackexchange.com/questions/6423/fasttrack-proposal-execution-fails-with-proposalmissing-but-is-stored-in-democ

nodes/mainnet/src/chain_spec.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use itertools::Itertools;
2323
use node_polkadex_runtime::{
2424
constants::currency::PDEX, wasm_binary_unwrap, BabeConfig, BalancesConfig, CouncilConfig,
2525
IndicesConfig, OrmlVestingConfig, PDEXMigrationConfig, RuntimeGenesisConfig, SessionConfig,
26-
SessionKeys, StakerStatus, StakingConfig, SudoConfig, SystemConfig, TechnicalCommitteeConfig,
26+
SessionKeys, StakerStatus, StakingConfig, SystemConfig, TechnicalCommitteeConfig,
2727
};
2828
use pallet_im_online::sr25519::AuthorityId as ImOnlineId;
2929
use polkadex_primitives::Block;
@@ -482,7 +482,6 @@ pub fn testnet_genesis(
482482
phantom: Default::default(),
483483
},
484484
democracy: Default::default(),
485-
sudo: SudoConfig { key: Some(root_key) },
486485
babe: BabeConfig {
487486
authorities: Default::default(),
488487
epoch_config: Some(node_polkadex_runtime::BABE_GENESIS_EPOCH_CONFIG),

runtimes/mainnet/src/lib.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,12 +1012,6 @@ impl pallet_democracy::Config for Runtime {
10121012
type Slash = Treasury;
10131013
}
10141014

1015-
impl pallet_sudo::Config for Runtime {
1016-
type RuntimeEvent = RuntimeEvent;
1017-
type RuntimeCall = RuntimeCall;
1018-
type WeightInfo = ();
1019-
}
1020-
10211015
parameter_types! {
10221016
pub const ImOnlineUnsignedPriority: TransactionPriority = TransactionPriority::MAX;
10231017
/// We prioritize im-online heartbeats over election solution submission.
@@ -1481,7 +1475,6 @@ construct_runtime!(
14811475
TechnicalMembership: pallet_membership::<Instance1> = 14,
14821476
Grandpa: pallet_grandpa = 15,
14831477
Treasury: pallet_treasury = 16,
1484-
Sudo: pallet_sudo = 17,
14851478
ImOnline: pallet_im_online = 18,
14861479
AuthorityDiscovery: pallet_authority_discovery = 19,
14871480
Offences: pallet_offences = 20,
@@ -1533,7 +1526,6 @@ construct_runtime!(
15331526
TechnicalMembership: pallet_membership::<Instance1> = 14,
15341527
Grandpa: pallet_grandpa = 15,
15351528
Treasury: pallet_treasury = 16,
1536-
Sudo: pallet_sudo = 17,
15371529
ImOnline: pallet_im_online = 18,
15381530
AuthorityDiscovery: pallet_authority_discovery = 19,
15391531
Offences: pallet_offences = 20,

0 commit comments

Comments
 (0)