Function chain_impl_mockchain::block::builder
source · pub fn builder<E, F>(
version: BlockVersion,
contents: Contents,
hdr_builder: F
) -> Result<Block, E>where
F: FnOnce(HeaderBuilderNew) -> 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