nimbus-eth2/research
Etan Kissling 2bbffbde10
abort compile when fork epoch is forgotten (#2939)
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.
2021-10-04 08:31:21 +00:00
..
.gitignore update research VCS ignores (#2849) 2021-09-07 23:09:49 +00:00
block_sim.nim abort compile when fork epoch is forgotten (#2939) 2021-10-04 08:31:21 +00:00
block_sim.nim.cfg block pool simulator (#956) 2020-05-01 17:51:24 +02:00
simutils.nim proc -> func in ncli/, research/, and test/ (#2818) 2021-08-25 14:51:52 +00:00
stack_sizes.nim rework spec imports (#2779) 2021-08-12 13:08:20 +00:00
stack_sizes.nim.cfg cleanups (#962) 2020-05-04 07:38:14 +02:00
state_sim.nim allow adding Altair test blocks (#2872) 2021-09-17 10:55:04 +00:00
state_sim.nim.cfg add simple wasm page with state simulator (#334) 2020-01-22 15:36:16 +00:00