nimbus-eth2/tests/spec_epoch_processing
Jacek Sieka 20e700fae4
Harden CommitteeIndex, SubnetId, SyncSubcommitteeIndex (#3259)
* Harden CommitteeIndex, SubnetId, SyncSubcommitteeIndex

Harden the use of `CommitteeIndex` et al to prevent future issues by
using a distinct type, then validating before use in several cases -
datatypes in spec are kept simple though so that invalid data still can
be read.

* fix invalid epoch used in REST
`/eth/v1/beacon/states/{state_id}/committees` committee length (could
return invalid data)
* normalize some variable names
* normalize committee index loops
* fix `RestAttesterDuty` to use `uint64` for `validator_committee_index`
* validate `CommitteeIndex` on ingress in REST API
* update rest rules with stricter parsing
* better REST serializers
* save lots of memory by not using `zip` ...at least a few bytes!
2022-01-09 01:28:49 +02:00
..
README.md Fix comments in j/f tests + add a readme for scaled image 2019-08-28 16:22:48 +02:00
epoch_utils.nim Cleanups (#3123) 2021-11-25 13:20:36 +01:00
eth2-finalization.png v0.8.1 tests refactor (#326) 2019-08-28 12:07:00 +00:00
justification_finalization_helpers.nim Harden CommitteeIndex, SubnetId, SyncSubcommitteeIndex (#3259) 2022-01-09 01:28:49 +02:00
test_process_justification_and_finalization.nim REST JSON support improvements (#3232) 2022-01-06 08:38:40 +01:00

README.md

Epoch state transition

Finalization and justification