validate_subblock

Function validate_subblock 

Source
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:

  1. Signature verification
  2. Ensuring that sender is a validator for the block’s epoch
  3. Ensuring that all transactions have corresponding nonce key set.
  4. Ensuring that all transactions are valid.