Some implementors of the AbstractActionHandler want to opt-out of validating block hash consistency, allowing the assumption to be made that the ActionReader is fulfilling its responsibility to do so. While potentially increasing the risk of uncaught determinism bugs, this has the advantage of allowing the implemented ActionHandler to skip irrelevant blocks.
This PR adds a configuration option validateBlockHashes to ActionHandlerOptions (defaulting to true for safety) that, when false, will skip the block validation step when processing new blocks.
Some implementors of the
AbstractActionHandler
want to opt-out of validating block hash consistency, allowing the assumption to be made that theActionReader
is fulfilling its responsibility to do so. While potentially increasing the risk of uncaught determinism bugs, this has the advantage of allowing the implementedActionHandler
to skip irrelevant blocks.This PR adds a configuration option
validateBlockHashes
toActionHandlerOptions
(defaulting totrue
for safety) that, when false, will skip the block validation step when processing new blocks.