Etan Kissling 9ee134324b
allow withXxx to access fork-specific fields (#2943)
So far, `withState` and `withBlck` templates could only be used to have
convenience access to fork-agnostic BeaconState and BeaconBlock fields.
This patch:
- injects an additional `stateFork` constant that allows to use
  `when` expressions to also access Altair and Merge-specific fields.
- introduces a `withStateAndBlck` template to support operating on both
  a `BeaconState` and `BeaconBlock` at a time.
- makes sync committee related functions Merge aware.
- changes a couple if-else trees for forks into case statements so that
  forgotten future forks are promoted to compile-time errors.
2021-10-06 20:05:06 +03:00
..
2021-10-05 02:26:56 +00:00
2021-10-06 15:43:03 +02:00
2021-09-29 23:43:28 +00:00
2020-06-01 16:58:28 +03:00
2021-09-29 14:19:20 +03:00
2021-09-29 23:43:28 +00:00