eth2.0-specs/specs
Justin c761fbc318
Clean up verify_indexed_attestation
Cosmetic changes:

* Add 4 lines of comments (now every statement has a comment)
* Avoid unnecessary `assert` (the end goal for me is for `assert`s to be exclusive to the operation processing helpers).
* Merge `return`s into one (increase readability, reduce verbosity)
* Use shorter-named `bit_0_indices` and `bit_1_indices` helper variables

Substantive change:

* Remove the condition that `len(0_indices) + len(1_indices) > 0`. This condition is redundant in the context of `process_attester_slashing` because of `slashed_any`. It is largely artificial in `process_attestation` where validators are incentivised to maximise new attestations.
2019-05-02 09:24:24 +01:00
..
core Clean up verify_indexed_attestation 2019-05-02 09:24:24 +01:00
light_client Merge branch 'dev' into JustinDrake-patch-14 2019-04-24 14:35:02 +10:00
networking Update rpc-interface.md 2019-04-23 12:49:59 -05:00
test_formats Update msg_hash_g2_compressed.md 2019-04-23 13:00:25 -05:00
validator Merge branch 'master' into vbuterin-patch-2 2019-05-01 16:19:21 -06:00
bls_signature.md Update bls_signature.md 2019-04-23 13:01:21 -05:00
simple-serialize.md Merge branch 'dev' into piper/add-sos-style-offset-serialization-to-ssz 2019-04-24 12:37:16 -06:00