I just clone the Polkadot repo v0.9.20 and build. When I run the chain sudo option is not showing in developer section. Running chain on 127.0.0.1:9944. Can anyone please tell why this thing happen?
Thanks in advance.
Substrate and Polkadot Stack Exchange is a question and answer site for developers building blockchains with the Substrate SDK. It only takes a minute to sign up.Sign up to join this community
When the pallet doesn't show, it means it is not included in the runtime.
Since the Polkadot repo is meant to support the live/production Polkadot network, this module is not included in the runtime config. Polkadot is deployed with democracy to take care of all root operations.
This is unlike Substrate itself which is a sample node and therefore does have sudo in the runtime.
git cherrypick this commit and read the commit comment for the step to fixup the Cargo.toml after: https://github.com/paritytech/polkadot/commit/791c8b8f9e6fe00b631f2cace0d6d65151487eb4
That will quickly add sudo to polkadot (for testing purposes).