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-08-27 11:00:06 +02:00
2021-08-27 11:00:06 +02:00
2021-08-27 11:00:06 +02:00
2021-08-27 11:00:06 +02:00
2021-08-27 11:00:06 +02:00
2021-08-27 11:00:06 +02:00
2021-08-12 13:08:20 +00:00