essential_node

Module validate

Source
Expand description

§Validation

Functions for validating blocks and solutions.

Structs§

  • Outcome of an invalid block. Contains the failure reason and the index of the solution that caused the failure.
  • Outcome of a valid block. Cumulative gas and utilities of all solutions in the block.

Enums§

Functions§

  • Calculate the next key.
  • Validates a block without adding the block to the database.
  • Validates a solution without adding it to the database. Creates a block at the next block number and current timestamp with the given solution and validates it.