Use Substrate Block Proposer (#1156)

* Use Substrate block builder.

* Clean up metrics.

* Lock.

* Lock.

* Switch to newest basic authorship interface

* Update Substrate reference and polkadot spec_version

* Let's improve

Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
Tomasz Drwięga
2020-05-30 11:06:08 +02:00
committed by GitHub
parent a3e4893a7c
commit 44c0ec5cf8
5 changed files with 246 additions and 334 deletions
-3
View File
@@ -293,8 +293,6 @@ macro_rules! new_full {
let (builder, mut import_setup, inherent_data_providers, mut rpc_setup) =
new_full_start!($config, $runtime, $dispatch);
let backend = builder.backend().clone();
let service = builder
.with_finality_proof_provider(|client, backend| {
let provider = client as Arc<dyn grandpa::StorageAndProofProvider<_, _>>;
@@ -403,7 +401,6 @@ macro_rules! new_full {
service.transaction_pool(),
validation_service_handle,
slot_duration,
backend,
service.prometheus_registry().as_ref(),
);