zebra_rpc::methods::get_block_template_rpcs::get_block_template

Function check_parameters

source
pub fn check_parameters(parameters: &Option<JsonParameters>) -> RpcResult<()>
Expand description

Checks that data is omitted in Template mode or provided in Proposal mode,

Returns an error if there’s a mismatch between the mode and whether data is provided.