Skip to main content

Questions tagged [service]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
11 votes
1 answer

Understanding in substrate-node-template

Recently, I have been trying to understand the block import for Aura and Grandpa but I don't understand some parts in substrate-node-template/node/ 1- In the new_partial() method when ...
dadzerlaze's user avatar
  • 1,083
4 votes
1 answer

How do I include a new rpc that uses a NetworkWorker in the node-template?

The node-template says its is a specialisation of that on the substrate master branch. Hence, it's sort of hard to relate the two. Nonetheless, I'd like to expose an RPC endpoint that's ...
islami00's user avatar
  • 561
4 votes
1 answer

offchain-workers vs asynchronous task

There is not much info about using an asynchronous task in substrate docs i.e. task_manager in I want to know when one should be using offchain-worker and when one should use background ...
Rusty Pythonic Script's user avatar
2 votes
1 answer

Difference between spawn_handle() and spawn_essential_handle()

Currently this is how I am making a transaction_pool for a Light service let transaction_pool = Arc::new(sc_transaction_pool::LightPool::new_light( config.transaction_pool.clone(), ...
Purple_Turtle's user avatar
1 vote
1 answer

Problem while adding new API to runtime, RPC, and service

pub fn create_full<C, P>( deps: FullDeps<C, P>, ) -> Result<RpcExtension, Box<dyn std::error::Error + Send + Sync>> where C: ProvideRuntimeApi<Block> + ...
hgminerva's user avatar
  • 467
1 vote
0 answers

how to solve mismatched type error in substrate?

I have been integrating paritytech frontier(0.9.43) version with the substrate 0.9.43 version . while integrating when i added frontier changes in and file i am facing this error. ...
Karanvir Singh's user avatar
0 votes
1 answer

Problem with `sc_consensus_grandpa::grandpa_peers_set_config' in

I cloned the substrate-node-template and upgraded the dependencies to: git = "", branch = "master" for reference, the original branch was ...
Kazunobu Ndong's user avatar
0 votes
0 answers

Implementing FullDeps in Substrate using channels instead of Arcs

This is a standard implementation of FullDeps in the // Full client dependencies. pub struct FullDeps<C, P, SC, B> { /// The client instance to use. pub client: Arc<C>, ...
Discardo's user avatar
  • 436