Function zebra_rpc::methods::get_block_template_rpcs::types::get_block_template::proposal::proposal_block_from_template
source · pub fn proposal_block_from_template(
template: &GetBlockTemplate,
time_source: impl Into<Option<TimeSource>>,
network_upgrade: NetworkUpgrade
) -> Result<Block, SerializationError>
Expand description
Returns a block proposal generated from a GetBlockTemplate
RPC response.
If time_source
is not supplied, uses the current time from the template.