darkfid::task::consensus

Function consensus_init_task

Source
pub async fn consensus_init_task(
    node: DarkfiNodePtr,
    config: ConsensusInitTaskConfig,
    ex: ExecutorPtr,
) -> Result<()>
Expand description

Sync the node consensus state and start the corresponding task, based on node type.