Skip to content

Commit

Permalink
add node config again
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnReedV committed Nov 15, 2024
1 parent 6961db4 commit 4926c1b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions node/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ use sc_executor::WasmExecutor;
/// Full backend.
pub type FullBackend = sc_service::TFullBackend<Block>;
/// Full client.
pub type FullClient = sc_service::TFullClient<Block, RuntimeApi, WasmExecutor<HostFunctions>>;
pub type FullClient = sc_service::TFullClient<Block, RuntimeApi, RuntimeExecutor>;
/// Always enable runtime benchmark host functions, the genesis state
/// was built with them so we're stuck with them forever.
///
/// They're just a noop, never actually get used if the runtime was not compiled with
/// `runtime-benchmarks`.
type HostFunctions = (
pub type HostFunctions = (
sp_io::SubstrateHostFunctions,
sp_crypto_ec_utils::bls12_381::host_calls::HostFunctions,
frame_benchmarking::benchmarking::HostFunctions,
);
pub type RuntimeExecutor = WasmExecutor<HostFunctions>;
2 changes: 1 addition & 1 deletion node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use std::{sync::Arc, time::Duration};
use substrate_prometheus_endpoint::Registry;

use crate::cli::Sealing;
use crate::client::{FullBackend, FullClient};
use crate::client::{FullBackend, FullClient, HostFunctions, RuntimeExecutor};
use crate::ethereum::{
db_config_dir, new_frontier_partial, spawn_frontier_tasks, BackendType, EthConfiguration,
FrontierBackend, FrontierBlockImport, FrontierPartialComponents, StorageOverride,
Expand Down

0 comments on commit 4926c1b

Please sign in to comment.