pub unsafe fn nipopow_verifier_best_chain(
    nipopow_verifier_ptr: ConstNipopowVerifierPtr,
    best_chain_out: *mut CollectionPtr<BlockHeader>,
) -> Result<(), Error> {
    let verifier = const_ptr_as_ref(nipopow_verifier_ptr, "nipopow_verifier_ptr")?;
    let best_chain_out = mut_ptr_as_mut(best_chain_out, "best_chain_out")?;
    *best_chain_out = Box::into_raw(Box::new(Collection(
        verifier
            .0
            .best_chain()
            .into_iter()
            .map(BlockHeader)
            .collect(),
    )));
    Ok(())
}
/// Returns chain of `BlockHeader`s from the best proof.
Returns chain of `BlockHeader`s from the best proof.
Returns chain of ` BlockHeader ` s from the best proof .
pub unsafe fn nipopow_verifier_best_chain(
    nipopow_verifier_ptr: ConstNipopowVerifierPtr,
    best_chain_out: *mut CollectionPtr<BlockHeader>,
) -> Result<(), Error> {
    let verifier = const_ptr_as_ref(nipopow_verifier_ptr, "nipopow_verifier_ptr")?;
    let best_chain_out = mut_ptr_as_mut(best_chain_out, "best_chain_out")?;
    *best_chain_out = Box::into_raw(Box::new(Collection(
        verifier
            .0
            .best_chain()
            .into_iter()
            .map(BlockHeader)
            .collect(),
    )));
    Ok(())
}
pub unsafe fn nipopow_verifier_best_chain ( nipopow_verifier_ptr : ConstNipopowVerifierPtr , best_chain_out : * mut CollectionPtr < BlockHeader > , ) -> Result < ( ) , Error > { let verifier = const_ptr_as_ref ( nipopow_verifier_ptr , " " ) ? ; let best_chain_out = mut_ptr_as_mut ( best_chain_out , " " ) ? ; * best_chain_out = Box :: into_raw ( Box :: new ( Collection ( verifier . 0 . best_chain ( ) . into_iter ( ) . map ( BlockHeader ) . collect ( ) , ) ) ) ; Ok ( ( ) ) }
Returns chain of `BlockHeader`s from the best proof.
Returns chain of ` BlockHeader ` s from the best proof .
nipopow_verifier_ptr
ConstNipopowVerifierPtr
best_chain_out
*mut CollectionPtr<BlockHeader>
nipopow_verifier_ptr
ConstNipopowVerifierPtr
best_chain_out
*mut CollectionPtr<BlockHeader>