Function darkfid::task::miner::mine

source ยท
async fn mine(
    node: &DarkfiNodePtr,
    extended_fork: &Fork,
    secret: &mut SecretKey,
    recipient_config: &MinerRewardsRecipientConfig,
    zkbin: &ZkBinary,
    pk: &ProvingKey,
    stop_signal: &Receiver<()>,
    skip_sync: bool,
) -> Result<()>
Expand description

Async task to generate and mine provided fork index next block, while listening for a stop signal.