Remove old service, 3rd try (#1776)

* Remove old service, 3rd try

i.e.
Revert "Revert "Remove Old Service, 2nd try (#1732)" (#1758)"

This reverts commit 9a0f08bfe1.

Closes #1757.

We now have some evidence that the polkadot validator was producing
blocks after all; the reason the blocks_constructed metric was 0 was
that as a new metric it hadn't yet been incorporated into that
branch's codebase. See
https://github.com/paritytech/polkadot/issues/1757#issuecomment-700977602

As this PR is based on a newer `master` branch than the previous one,
that should hopefully no longer be an issue.

* paras trait now has an Origin type

* initial work running a two node local net

* use the right incantations so the nodes produce blocks together

* improve internal documentation

Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
Peter Goodspeed-Niklaus
2020-10-08 12:54:29 +02:00
committed by GitHub
parent f2d7b6f5ac
commit c2941a2789
32 changed files with 1299 additions and 3146 deletions
+11
View File
@@ -0,0 +1,11 @@
# Rococo: v1
Rococo is a testnet runtime with no stability guarantees.
## How to run
> TODO: figure out how to run this properly.
### Alice
`cargo run --release -- --alice --tmp --validator --chain rococo-local`
+13
View File
@@ -54,6 +54,8 @@ use sp_runtime::{
};
use pallet_im_online::sr25519::AuthorityId as ImOnlineId;
use authority_discovery_primitives::AuthorityId as AuthorityDiscoveryId;
#[cfg(any(feature = "std", test))]
use sp_version::NativeVersion;
use sp_version::RuntimeVersion;
use pallet_transaction_payment_rpc_runtime_api::RuntimeDispatchInfo;
use pallet_grandpa::{AuthorityId as GrandpaId, fg_primitives};
@@ -74,6 +76,7 @@ use runtime_parachains::router as parachains_router;
use runtime_parachains::scheduler as parachains_scheduler;
pub use pallet_balances::Call as BalancesCall;
pub use pallet_staking::StakerStatus;
/// Constant values used within the runtime.
pub mod constants;
@@ -407,6 +410,16 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
transaction_version: 2,
};
/// Native version.
#[cfg(any(feature = "std", test))]
pub fn native_version() -> NativeVersion {
NativeVersion {
runtime_version: VERSION,
can_author_with: Default::default(),
}
}
parameter_types! {
pub const Version: RuntimeVersion = VERSION;
}