pub fn block_builder<E, F>(
    version: BlockVersion,
    contents: Contents,
    hdr_builder: F
) -> Result<Block, E>where
    F: FnOnce(HeaderBuilder<HeaderSetParenting>) -> Result<Header, E>,
Expand description

Create a block from a block version, content and a header builder closure

If the header builder returns an error, it is returns as is