eth2.0-specs/test_libs/pyspec/tests
dankrad c0f3453093 RANDAO reveal slashing, custody period staggering and integration of custody and RANDAO reveals (#880)
* Add RandaoRevealSlashing for early Randao reveals

* add some randao reveal slashing tests

* Unifying RANDAO reveal slashing and Custody reveal slashing; implemented more lenient penalty for not-to-early reveals

* Fix custody reveal domain

* Also test exposed_randao_reveals

* Re-add exposed_randao_reveals to validator initialization

* Fix tests

* Unified Randao Reveal slashing mechanism and Custody Reveal,
CUSTODY_PERIOD_TO_RANDAO_PADDING = EPOCHS_PER_CUSTODY_PERIOD

* Move exposed_randao_reveals into separate data structure to keep validator record clean

* new shiny staggered custody periods

* Fixes style and type hinting

* removes whitespace

* Cleans up multi-line conditionals

* Make RANDAO key reveal penalties proportional to block rewards

* Minor typos

* Minor typos

* Fixes off-by one error

* Removes unnecicary whitepsace

* Clean up comments; add test for key reveal too far in the future

* Reduce the CUSTODY_PERIOD_TO_RANDAO_PADDING again

* Fix max_proposer_slot_reward

* Fix types

* Move test

* Fix RandaoKeyReveal tests

* Move all RANDAO key reveal to phase 1

* Factor out signature checking

* Some fixes

* Update specs/core/1_custody-game.md

Co-Authored-By: dankrad <dankrad@ethereum.org>

* Addressing Vitalik's suggestions: Separate RANDAO and Custody key reveals; append the cleanup of RANDAO reveals instead of adding a new function

* Remove remnants of verify_custody_key

* RandaoKeyReveal -> EarlyDerivedSecretReveal

* Make penalty proportional to number of secrets already exposed

* Update specs/core/1_custody-game.md

Co-Authored-By: dankrad <dankrad@ethereum.org>

* Update specs/core/1_custody-game.md

Co-Authored-By: dankrad <dankrad@ethereum.org>

* Update specs/core/1_custody-game.md

Co-Authored-By: dankrad <dankrad@ethereum.org>
2019-05-03 17:30:55 +08:00
..
block_processing fix up some PR feedback and testing for #1009 2019-04-30 12:55:14 -06:00
block_processing_phase1 RANDAO reveal slashing, custody period staggering and integration of custody and RANDAO reveals (#880) 2019-05-03 17:30:55 +08:00
epoch_processing Merge branch 'master' into vbuterin-patch-2 2019-05-01 16:19:21 -06:00
__init__.py Move pytests for faster dev iteration 2019-04-17 17:47:56 +10:00
conftest.py scale number of validators in tests based on number of slots 2019-04-24 12:31:27 -06:00
helpers.py Merge branch 'JustinDrake-patch-11' of github.com:ethereum/eth2.0-specs into JustinDrake-patch-11 2019-05-01 17:06:23 -06:00
helpers_phase1.py RANDAO reveal slashing, custody period staggering and integration of custody and RANDAO reveals (#880) 2019-05-03 17:30:55 +08:00
test_finality.py remove unnecessary var 2019-04-24 11:45:41 -06:00
test_sanity.py Move `get_state_root` to `pyspec/tests/helpers.py` 2019-05-01 17:06:02 +08:00