Function zebra_rpc::methods::get_block_template_rpcs::get_block_template::validate_block_proposal
source · pub async fn validate_block_proposal<BlockVerifierRouter, Tip, SyncStatus>(
block_verifier_router: BlockVerifierRouter,
block_proposal_bytes: Vec<u8>,
network: Network,
latest_chain_tip: Tip,
sync_status: SyncStatus,
) -> Result<Response>
Expand description
Attempts to validate block proposal against all of the server’s usual acceptance rules (except proof-of-work).
Returns a getblocktemplate
Response
.