Block validation
The provided version of the code has no implementation to challenge proposed blocks or manually intervene and stop malicious blocks from being finalized.
However, Layer N intends to implement these features in future editions of the code.
As such, the propose_block
and finalize_block
instructions do not need to completely validate all fields of proposed blocks. Nevertheless, the fields that can be validated on chain should be validated to help prevent malicious blocks.