async fn publish_mining_candidate(
chain_info: Receiver<Option<GetBlockTemplateChainInfo>>,
parent_hash: Hash,
verification: Receiver<()>,
candidates: Sender<Option<MiningCandidate>>,
)Expand description
Publishes the early mining work on a block to candidates, and withdraws the work when the
verifier’s guard is dropped, or after MINING_CANDIDATE_TIMEOUT.
chain_info is the block write task’s answer for the block, and verification is the
receiver for the verifier’s MiningCandidateGuard.