There are a few locations in the code that compare the current epoch to the various FORK_EPOCH constants and branch off into fork-specific code. When a new fork is introduced, it is sometimes forgotten to update all of those branch locations. This patch introduces a compile-time check that ensures that all branches need to be covered exhaustively. This is done by replacing if-elif structures with case expressions. |
||
---|---|---|
.. | ||
.gitignore | ||
block_sim.nim | ||
block_sim.nim.cfg | ||
simutils.nim | ||
stack_sizes.nim | ||
stack_sizes.nim.cfg | ||
state_sim.nim | ||
state_sim.nim.cfg |