nimbus-eth2/beacon_chain/spec
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
..
datatypes use v1.1.1 test vectors (#2954) 2021-10-05 02:26:56 +00:00
eth2_apis Number of REST fixes. (#2961) 2021-10-06 15:43:03 +02:00
presets update a dozen spec URLs (#2929) 2021-09-29 23:43:28 +00:00
beaconstate.nim update a dozen spec URLs (#2929) 2021-09-29 23:43:28 +00:00
crypto.nim add sync committee types and some helpers (#2829) 2021-08-28 09:00:00 +00:00
digest.nim update 30 spec URLs to v1.1.0 (#2914) 2021-09-28 14:01:46 +00:00
english_word_list.txt Bump testutils 2020-06-01 16:58:28 +03:00
eth2_merkleization.nim simplify state fork access pattern (#2912) 2021-09-28 20:08:03 +02:00
eth2_ssz_serialization.nim add merge SSZ consensus object tests (#2858) 2021-09-11 10:01:05 +02:00
forks.nim allow `withXxx` to access fork-specific fields (#2943) 2021-10-06 20:05:06 +03:00
helpers.nim add function to build merkle proofs (#2874) 2021-09-29 15:02:34 +02:00
keystore.nim eth2.0-specs -> consensus-specs repo rename (#2801) 2021-08-20 23:37:45 +00:00
light_client_sync.nim port EF light client tests 2021-10-04 15:49:34 +03:00
network.nim merge hardfork database support (#2911) 2021-09-30 01:07:24 +00:00
presets.nim Altair config for mainnet 2021-09-29 14:19:20 +03:00
signatures.nim update 40 spec URLs to v1.1.0 (#2918) 2021-09-28 18:23:15 +00:00
signatures_batch.nim implement forked merge state/block support (#2890) 2021-09-27 14:22:58 +00:00
ssz_codec.nim disentangle eth2 types from the ssz library (#2785) 2021-08-18 20:57:58 +02:00
state_transition.nim merge hardfork database support (#2911) 2021-09-30 01:07:24 +00:00
state_transition_block.nim update a dozen spec URLs (#2929) 2021-09-29 23:43:28 +00:00
state_transition_epoch.nim update a dozen spec URLs (#2929) 2021-09-29 23:43:28 +00:00
validator.nim update a dozen spec URLs (#2929) 2021-09-29 23:43:28 +00:00
weak_subjectivity.nim eth2.0-specs -> consensus-specs repo rename (#2801) 2021-08-20 23:37:45 +00:00