Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Commit

Permalink
Use FullGrandpaBlockImport for Pangolin (#601)
Browse files Browse the repository at this point in the history
* Remove frontier block import

* Handle conflic
  • Loading branch information
boundless-forest authored Apr 23, 2021
1 parent 4d16da0 commit e52046b
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 208 deletions.
26 changes: 0 additions & 26 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ members = [
"bin/node/primitives",
"bin/node/runtime/pangolin",
"client/cli",
"client/dvm/consensus",
"client/dvm/db",
"client/dvm/mapping-sync",
"client/dvm/rpc",
Expand Down
1 change: 0 additions & 1 deletion bin/node/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ darwinia-header-mmr-rpc-runtime-api = { path = "../../../frame/header-mmr/rpc/ru
darwinia-staking = { path = "../../../frame/staking" }
darwinia-staking-rpc = { path = "../../../frame/staking/rpc" }
darwinia-staking-rpc-runtime-api = { path = "../../../frame/staking/rpc/runtime-api" }
dc-consensus = { path = "../../../client/dvm/consensus" }
dc-db = { path = "../../../client/dvm/db" }
dc-mapping-sync = { path = "../../../client/dvm/mapping-sync" }
dc-rpc = { path = "../../../client/dvm/rpc", features = ["rpc_binary_search_estimate"] }
Expand Down
14 changes: 2 additions & 12 deletions bin/node/cli/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ use crate::rpc::{
self, BabeDeps, DenyUnsafe, FullDeps, GrandpaDeps, LightDeps, RpcExtension,
SubscriptionTaskExecutor,
};
use dc_consensus::FrontierBlockImport;
use dc_db::{Backend, DatabaseSettings, DatabaseSettingsSrc};
use dc_mapping_sync::MappingSyncWorker;
use dc_rpc::EthTask;
Expand Down Expand Up @@ -214,11 +213,7 @@ fn new_partial<RuntimeApi, Executor>(
BabeBlockImport<
Block,
FullClient<RuntimeApi, Executor>,
FrontierBlockImport<
Block,
FullGrandpaBlockImport<RuntimeApi, Executor>,
FullClient<RuntimeApi, Executor>,
>,
FullGrandpaBlockImport<RuntimeApi, Executor>,
>,
LinkHalf<Block, FullClient<RuntimeApi, Executor>, FullSelectChain>,
BabeLink<Block>,
Expand Down Expand Up @@ -287,14 +282,9 @@ where
telemetry.as_ref().map(|x| x.handle()),
)?;
let justification_import = grandpa_block_import.clone();
let frontier_block_import = FrontierBlockImport::new(
grandpa_block_import.clone(),
client.clone(),
frontier_backend.clone(),
);
let (babe_import, babe_link) = sc_consensus_babe::block_import(
BabeConfig::get_or_compute(&*client)?,
frontier_block_import,
grandpa_block_import,
client.clone(),
)?;
let import_queue = sc_consensus_babe::import_queue(
Expand Down
32 changes: 0 additions & 32 deletions client/dvm/consensus/Cargo.toml

This file was deleted.

134 changes: 0 additions & 134 deletions client/dvm/consensus/src/lib.rs

This file was deleted.

1 change: 0 additions & 1 deletion client/dvm/mapping-sync/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ sp-api = { git = "https://github.com/darwinia-network/substrate.git", tag
sp-blockchain = { git = "https://github.com/darwinia-network/substrate.git", tag = "darwinia-v0.10.0" }
sp-runtime = { git = "https://github.com/darwinia-network/substrate.git", tag = "darwinia-v0.10.0" }
# darwinia
dc-consensus = { path = "../consensus" }
dc-db = { path = "../db" }
dp_consensus = { path = "../../../primitives/consensus/" }
dvm-rpc-runtime-api = { path = "../../../frame/dvm/rpc/runtime-api" }
Expand Down
1 change: 0 additions & 1 deletion client/dvm/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ rand = { version = "0.7" }
rlp = { version = "0.5.0" }
sha3 = { version = "0.8" }
# darwinia
dc-consensus = { path = "../consensus" }
dc-db = { path = "../db" }
dp-rpc = { path = "../../../primitives/rpc" }
dp-storage = { path = "../../../primitives/storage/" }
Expand Down

0 comments on commit e52046b

Please sign in to comment.