Expand description
§Validation
Functions for validating blocks and solutions.
Structs§
- Invalid
Outcome - Outcome of an invalid block. Contains the failure reason and the index of the solution that caused the failure.
- Valid
Outcome - Outcome of a valid block. Cumulative gas and utilities of all solutions in the block.
Enums§
- Validate
Failure - Reasons for a block to be invalid. Contains the error that caused the block to be invalid.
- Validate
Outcome - Result of validating a block.
Functions§
- next_
key - Calculate the next key.
- validate_
dry_ run - Validates a block without adding the block to the database.
- validate_
solution_ set_ dry_ run - Validates a solution without adding it to the database. Creates a block at the next block number and current timestamp with the given solution set and validates it.