Skip to content

Commit

Permalink
feat: sync stop because of frontier block import
Browse files Browse the repository at this point in the history
  • Loading branch information
wangminqi committed Nov 22, 2023
1 parent 99027b8 commit c3fbbdc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
.cargo/config

**/node_modules/
**/ts-tests/.yarn

docker/generated-*/
tee-worker/docker/litentry/
Expand Down
11 changes: 2 additions & 9 deletions node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ use cumulus_primitives_parachain_inherent::{
use cumulus_relay_chain_inprocess_interface::build_inprocess_relay_chain;
use cumulus_relay_chain_interface::{RelayChainError, RelayChainInterface, RelayChainResult};
use cumulus_relay_chain_minimal_node::build_minimal_relay_chain_node;
use fc_consensus::FrontierBlockImport;
use fc_rpc::{EthBlockDataCacheTask, OverrideHandle};
use fc_rpc_core::types::{FeeHistoryCache, FilterPool};
use futures::StreamExt;
Expand Down Expand Up @@ -164,11 +163,7 @@ pub mod __ {
#[evm]
type ParachainBlockImport<RuntimeApi, Executor> = TParachainBlockImport<
Block,
FrontierBlockImport<
Block,
Arc<ParachainClient<RuntimeApi, Executor>>,
ParachainClient<RuntimeApi, Executor>,
>,
Arc<ParachainClient<RuntimeApi, Executor>>,
ParachainBackend,
>;

Expand Down Expand Up @@ -329,11 +324,9 @@ pub mod __ {

#[evm]
let frontier_backend = rpc_evm::open_frontier_backend(client.clone(), config)?;
#[evm]
let frontier_block_import = FrontierBlockImport::new(client.clone(), client.clone());

#[evm]
let block_import = ParachainBlockImport::new(frontier_block_import, backend.clone());
let block_import = ParachainBlockImport::new(client.clone(), backend.clone());

#[no_evm]
let block_import = ParachainBlockImport::new(client.clone(), backend.clone());
Expand Down

0 comments on commit c3fbbdc

Please sign in to comment.