diff --git a/polkadot/runtime/rococo/README.md b/polkadot/runtime/rococo/README.md index bc47556792..0f35665ca1 100644 --- a/polkadot/runtime/rococo/README.md +++ b/polkadot/runtime/rococo/README.md @@ -1,11 +1,11 @@ -# Rococo: v1 +# Rococo: v2.1 Rococo is a testnet runtime with no stability guarantees. -## How to run +## How to run `rococo-local` -> TODO: figure out how to run this properly. +The [Cumulus Tutorial](https://docs.substrate.io/tutorials/v3/cumulus/start-relay/) details building, starting, and testing `rococo-local` and parachains connecting to it. -### Alice +## How to register a parachain on the Rococo testnet -`cargo run --release -- --alice --tmp --validator --chain rococo-local` +The [parachain registration process](https://docs.substrate.io/tutorials/v3/cumulus/rococo/) on the public Rococo testnet is also outlined. diff --git a/polkadot/runtime/rococo/src/lib.rs b/polkadot/runtime/rococo/src/lib.rs index be7c685a7f..f459ca5975 100644 --- a/polkadot/runtime/rococo/src/lib.rs +++ b/polkadot/runtime/rococo/src/lib.rs @@ -24,7 +24,7 @@ use authority_discovery_primitives::AuthorityId as AuthorityDiscoveryId; use beefy_primitives::{crypto::AuthorityId as BeefyId, mmr::MmrLeafVersion}; use frame_support::{ construct_runtime, parameter_types, - traits::{Contains, InstanceFilter, KeyOwnerProofSystem, OnRuntimeUpgrade}, + traits::{Contains, InstanceFilter, KeyOwnerProofSystem}, PalletId, }; use frame_system::EnsureRoot; @@ -148,50 +148,10 @@ pub type Executive = frame_executive::Executive< frame_system::ChainContext, Runtime, AllPalletsWithSystem, - (SessionHistoricalModulePrefixMigration, CrowdloanIndexMigration), >; /// The payload being signed in transactions. pub type SignedPayload = generic::SignedPayload; -// Migration for crowdloan pallet to use fund index for account generation. -pub struct CrowdloanIndexMigration; -impl OnRuntimeUpgrade for CrowdloanIndexMigration { - fn on_runtime_upgrade() -> frame_support::weights::Weight { - crowdloan::migration::crowdloan_index_migration::migrate::() - } - - #[cfg(feature = "try-runtime")] - fn pre_upgrade() -> Result<(), &'static str> { - crowdloan::migration::crowdloan_index_migration::pre_migrate::() - } - - #[cfg(feature = "try-runtime")] - fn post_upgrade() -> Result<(), &'static str> { - crowdloan::migration::crowdloan_index_migration::post_migrate::() - } -} - -/// Migrate session-historical from `Session` to the new pallet prefix `Historical` -pub struct SessionHistoricalModulePrefixMigration; - -impl OnRuntimeUpgrade for SessionHistoricalModulePrefixMigration { - fn on_runtime_upgrade() -> frame_support::weights::Weight { - pallet_session::migrations::v1::migrate::() - } - - #[cfg(feature = "try-runtime")] - fn pre_upgrade() -> Result<(), &'static str> { - pallet_session::migrations::v1::pre_migrate::(); - Ok(()) - } - - #[cfg(feature = "try-runtime")] - fn post_upgrade() -> Result<(), &'static str> { - pallet_session::migrations::v1::post_migrate::(); - Ok(()) - } -} - impl_opaque_keys! { pub struct SessionKeys { pub grandpa: Grandpa,