Questions tagged [service]
The service tag has no usage guidance.
7 questions
0
votes
1
answer
36
views
Problem with `sc_consensus_grandpa::grandpa_peers_set_config' in service.rs
I cloned the substrate-node-template and upgraded the dependencies to:
git = "https://github.com/paritytech/polkadot-sdk", branch = "master"
for reference, the original branch was ...
1
vote
0
answers
29
views
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 rpc.rs and service.rs file i am facing this error. ...
4
votes
1
answer
55
views
offchain-workers vs asynchronous task
There is not much info about using an asynchronous task in substrate docs i.e. task_manager in service.rs
I want to know when one should be using offchain-worker and when one should use background ...
11
votes
1
answer
152
views
Understanding service.rs 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/service.rs:
1- In the new_partial() method when ...
1
vote
1
answer
111
views
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>
+ ...
4
votes
1
answer
94
views
How do I include a new rpc that uses a NetworkWorker in the node-template?
The node-template says its service.rs 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 ...
2
votes
1
answer
39
views
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(),
...