This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Remove service, migrate all to service-new #1630
Merged
Merged
Changes from 46 commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
03e9dde
import rococo into chain-spec
coriolinus 71bffb8
Merge remote-tracking branch 'origin/master' into prgn-run-rococo
coriolinus 4b8e65c
make a few stabs at moving forward
coriolinus 141a5eb
wip: rococo readme
coriolinus 420e67b
Merge remote-tracking branch 'origin/master' into prgn-run-rococo
coriolinus 948efd6
remove /service crate
coriolinus b32ed40
wip: chase down some build errors in polkadot-cli
coriolinus 61b584f
make more progress getting polkadot-cli to build
coriolinus a94a4f6
don't ignore polkadot.json within the res directory
coriolinus 84de271
don't recreate pathbufs
coriolinus fe36c55
Prepare Polkadot to be used by Cumulus
bkchr b8b958f
Remove old test
bkchr bf58a14
Merge remote-tracking branch 'origin/bkchr-start-cumulus' into prgn-r…
coriolinus 2e8fdab
Merge remote-tracking branch 'origin/bkchr-start-cumulus' into prgn-r…
coriolinus 24e2e29
migrate new_chain_ops fix from /service
coriolinus 7b8f9ba
partially remove node/test-service
coriolinus bb177a9
Reset some changes
bkchr a148e7d
Revert "partially remove node/test-service"
coriolinus 39e140e
Merge remote-tracking branch 'origin/bkchr-start-cumulus' into prgn-r…
coriolinus 2e69812
WIP: replace v0 ParachainHost impl with v1 for test runtime
coriolinus 68fccb5
fix test runtime build
coriolinus 93f8d4f
bump westend spec version
coriolinus 2ae8cee
use service-new as service within cli
coriolinus 68d2f38
to revert: demo that forwarding the test runtime to the real impl blo…
coriolinus 04cb1cb
Revert "to revert: demo that forwarding the test runtime to the real …
coriolinus 32fc3ab
Revert "Revert "to revert: demo that forwarding the test runtime to t…
coriolinus cfef23f
More reverts
bkchr 5192634
MOARE
bkchr 4b3b066
Merge remote-tracking branch 'origin/master' into bkchr-start-cumulus
bkchr 4acd607
Merge remote-tracking branch 'origin/bkchr-start-cumulus' into prgn-r…
coriolinus fe6449e
plug in the runtime as the generic instantiation
coriolinus 5a7918a
implement necessary traits to get the test runtime compiling
coriolinus 73ded05
add inclusion::Event as variant into Event enum
coriolinus db56494
implement unimplemented bits in kusama
coriolinus 1fa4a80
implement unimplemented bits in polkadot runtime
coriolinus 3b4cc15
implement unimplemented bits in westend runtime
coriolinus 5856a2b
Merge remote-tracking branch 'origin/master' into prgn-run-rococo
coriolinus 0386374
migrate client upgrades from master
coriolinus 00887ea
update test service with new node changes
coriolinus 38c2a42
package metadata--that wasn't intended to be removed
coriolinus 06e960d
add parachains v1 modules to each runtime
coriolinus c0e9e43
enable cli to opt out of full node features
coriolinus 34e51e5
adjust rococo chainspec per example
coriolinus 3060842
Merge remote-tracking branch 'origin/master' into prgn-run-rococo
coriolinus cf2062a
try to fix Cargo.lock
563555d
Merge branch 'master' into prgn-run-rococo
df7a758
Merge remote-tracking branch 'origin/master' into prgn-run-rococo
coriolinus 731ebf4
Merge remote-tracking branch 'origin/master' into prgn-run-rococo
coriolinus 65c388b
Merge remote-tracking branch 'origin/master' into prgn-run-rococo
coriolinus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,10 +15,7 @@ | |
| // along with Polkadot. If not, see <http://www.gnu.org/licenses/>. | ||
|
|
||
| use log::info; | ||
| #[cfg(not(feature = "service-rewr"))] | ||
| use service::{IdentifyVariant, self}; | ||
| #[cfg(feature = "service-rewr")] | ||
| use service_new::{IdentifyVariant, self as service}; | ||
| use sc_cli::{SubstrateCli, Result, RuntimeVersion, Role}; | ||
| use crate::cli::{Cli, Subcommand}; | ||
| use std::sync::Arc; | ||
|
|
@@ -48,7 +45,7 @@ impl SubstrateCli for Cli { | |
| fn load_spec(&self, id: &str) -> std::result::Result<Box<dyn sc_service::ChainSpec>, String> { | ||
| let id = if id == "" { | ||
| let n = get_exec_name().unwrap_or_default(); | ||
| ["polkadot", "kusama", "westend"].iter() | ||
| ["polkadot", "kusama", "westend", "rococo"].iter() | ||
| .cloned() | ||
| .find(|&chain| n.starts_with(chain)) | ||
| .unwrap_or("polkadot") | ||
|
|
@@ -66,6 +63,9 @@ impl SubstrateCli for Cli { | |
| "westend-dev" => Box::new(service::chain_spec::westend_development_config()?), | ||
| "westend-local" => Box::new(service::chain_spec::westend_local_testnet_config()?), | ||
| "westend-staging" => Box::new(service::chain_spec::westend_staging_testnet_config()?), | ||
| "rococo-staging" => Box::new(service::chain_spec::rococo_staging_testnet_config()?), | ||
| "rococo-local" => Box::new(service::chain_spec::rococo_local_testnet_config()?), | ||
| "rococo" => Box::new(service::chain_spec::rococo_config()?), | ||
| path => { | ||
| let path = std::path::PathBuf::from(path); | ||
|
|
||
|
|
@@ -75,7 +75,9 @@ impl SubstrateCli for Cli { | |
|
|
||
| // When `force_*` is given or the file name starts with the name of one of the known chains, | ||
| // we use the chain spec for the specific chain. | ||
| if self.run.force_kusama || starts_with("kusama") { | ||
| if self.run.force_rococo || starts_with("rococo") { | ||
| Box::new(service::RococoChainSpec::from_json_file(path)?) | ||
| } else if self.run.force_kusama || starts_with("kusama") { | ||
| Box::new(service::KusamaChainSpec::from_json_file(path)?) | ||
| } else if self.run.force_westend || starts_with("westend") { | ||
| Box::new(service::WestendChainSpec::from_json_file(path)?) | ||
|
|
@@ -91,6 +93,8 @@ impl SubstrateCli for Cli { | |
| &service::kusama_runtime::VERSION | ||
| } else if spec.is_westend() { | ||
| &service::westend_runtime::VERSION | ||
| } else if spec.is_rococo() { | ||
| &service::rococo_runtime::VERSION | ||
| } else { | ||
| &service::polkadot_runtime::VERSION | ||
| } | ||
|
|
@@ -147,7 +151,7 @@ pub fn run() -> Result<()> { | |
| None, | ||
| authority_discovery_enabled, | ||
| grandpa_pause, | ||
| ).map(|r| r.0), | ||
| ).map(|full| full.task_manager), | ||
| } | ||
| }) | ||
| }, | ||
|
|
@@ -180,8 +184,8 @@ pub fn run() -> Result<()> { | |
| let chain_spec = config.chain_spec.cloned_box(); | ||
| let network_config = config.network.clone(); | ||
| let service::NewFull { task_manager, client, network_status_sinks, .. } | ||
| = service::new_full_nongeneric( | ||
| config, None, authority_discovery_enabled, grandpa_pause, false, | ||
| = service::build_full( | ||
| config, None, authority_discovery_enabled, grandpa_pause, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. invalid formatting (though this PR makes it no worse).
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK: 944b745. |
||
| )?; | ||
| let client = Arc::new(client); | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.