MCPcopy Create free account
hub / github.com/consensus-shipyard/ipc / start_fendermint

Function start_fendermint

ipc/cli/src/services/node_manager.rs:238–259  ·  view source on GitHub ↗

Start the Fendermint service Fendermint provides the ABCI server that CometBFT connects to.

(
    settings: &Settings,
    cancel_token: &CancellationToken,
)

Source from the content-addressed store, hash-verified

236///
237/// Fendermint provides the ABCI server that CometBFT connects to.
238async fn start_fendermint(
239 settings: &Settings,
240 cancel_token: &CancellationToken,
241) -> Result<JoinHandle<Result<()>>> {
242 info!(target: "service.node_manager", "Starting Fendermint ABCI service");
243
244 let settings = settings.clone();
245 let token = cancel_token.clone();
246 let config = RestartConfig::default();
247
248 let handle = tokio::spawn(async move {
249 run_service_with_restart(
250 "Fendermint",
251 move || FendermintService::new(settings.clone()),
252 token,
253 config,
254 )
255 .await
256 });
257
258 Ok(handle)
259}
260
261/// Start the CometBFT consensus service
262///

Callers 1

start_all_servicesMethod · 0.85

Calls 1

run_service_with_restartFunction · 0.85

Tested by

no test coverage detected