async fn validate_subblock(
sender: PublicKey,
node: TempoFullNode,
subblock: SignedSubBlock,
actions_tx: UnboundedSender<Message>,
scheme_provider: SchemeProvider,
epoch_length: u64,
) -> Result<()>Expand description
Validates a subblock and reports it to the subblocks service.
Validation checks include:
- Signature verification
- Ensuring that sender is a validator for the block’s epoch
- Ensuring that all transactions have corresponding nonce key set.
- Ensuring that all transactions are valid.