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

Commit

Permalink
Merge branch 'master' into bernhard-errors-with-info
Browse files Browse the repository at this point in the history
* master:
  Expose the backend from a full node (#1852)
  fix compilation on nightly (#1850)
  • Loading branch information
ordian committed Oct 26, 2020
2 parents 755f919 + 5649229 commit 72e8426
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
11 changes: 10 additions & 1 deletion node/service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,13 @@ fn new_partial<RuntimeApi, Executor>(config: &mut Configuration) -> Result<
};

Ok(service::PartialComponents {
client, backend, task_manager, keystore_container, select_chain, import_queue, transaction_pool,
client,
backend,
task_manager,
keystore_container,
select_chain,
import_queue,
transaction_pool,
inherent_data_providers,
other: (rpc_extensions_builder, import_setup, rpc_setup)
})
Expand Down Expand Up @@ -309,6 +315,7 @@ pub struct NewFull<C> {
pub network: Arc<sc_network::NetworkService<Block, <Block as BlockT>::Hash>>,
pub network_status_sinks: service::NetworkStatusSinks<Block>,
pub rpc_handlers: RpcHandlers,
pub backend: Arc<FullBackend>,
}

#[cfg(feature = "full-node")]
Expand All @@ -322,6 +329,7 @@ impl<C> NewFull<C> {
network: self.network,
network_status_sinks: self.network_status_sinks,
rpc_handlers: self.rpc_handlers,
backend: self.backend,
}
}
}
Expand Down Expand Up @@ -566,6 +574,7 @@ pub fn new_full<RuntimeApi, Executor>(
network,
network_status_sinks,
rpc_handlers,
backend,
})
}

Expand Down
1 change: 1 addition & 0 deletions node/test/service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ pub fn node_config(
pruning: Default::default(),
chain_spec: Box::new(spec),
wasm_method: WasmExecutionMethod::Interpreted,
wasm_runtime_overrides: Default::default(),
// NOTE: we enforce the use of the native runtime to make the errors more debuggable
execution_strategies: ExecutionStrategies {
syncing: sc_client_api::ExecutionStrategy::NativeWhenPossible,
Expand Down

0 comments on commit 72e8426

Please sign in to comment.