eth2.0-specs/tests/core/pyspec/eth2spec/test/altair
Etan Kissling c4dbd241ac
Root `next_sync_committee` in `attested_header`
`LightClientUpdate` structures currently use different merkle proof root
depending on the presence of `finalized_header`. By always rooting it in
the same state (the `attested_header.state_root`), logic gets simpler.

Caveats:
- In periods of extended non-finality, `update.finalized_header` may now
  be outdated by several sync committee periods. The old implementation
  rejected such updates as the `next_sync_committee` in them was stale,
  but the new implementation can properly handle this case.
- The `next_sync_committee` can no longer be considered finalized based
  on `is_finality_update`. Instead, waiting until `finalized_header` is
  in the `attested_header`'s sync committee period is now necessary.
- Because `update.finalized_header > store.finalized_header` no longer
  holds (for updates with finality), an `is_better_update` helper is
  added to improve `best_valid_update` tracking (in the past, finalized
  updates with supermajority participation would always directly apply)

This PR builds on prior work from:
- @hwwhww at https://github.com/ethereum/consensus-specs/pull/2829
2022-07-01 14:49:24 -07:00
..
block_processing fix sync agg test for mainnet 2021-09-09 19:53:30 -06:00
epoch_processing Consistently use `compute_sync_committee_period` 2022-01-17 17:38:24 +01:00
fork update ejection balance config references 2021-05-19 17:43:56 +02:00
merkle run tests against future forks by default 2021-09-30 10:28:02 +02:00
random use more precise name for altair block randomizer and re-gen tests 2021-08-25 17:18:02 -07:00
rewards extend inactivity updates tests 2021-07-07 12:20:34 -06:00
sanity Apply PR feedback from @ralexstokes 2021-10-07 16:04:06 +08:00
sync_protocol Root `next_sync_committee` in `attested_header` 2022-07-01 14:49:24 -07:00
transition Convert sets to sorted lists prior to sampling 2022-05-09 14:09:27 -05:00
unittests Cleanup light client tests 2022-06-30 11:09:49 +02:00
__init__.py Rename folders and file names to `altair` 2021-03-11 21:12:46 +08:00