eth2.0-specs/test_libs/pyspec/eth2spec
Michael Sproul cc5b172da3 Test deposit top-up with inconsistent withdrawal credentials (#1133)
* Simplify deposits

* Avoid divisions by zero

Possible fix to avoid four cases of divisions by zero:

* `return state.validator_registry[index].effective_balance // adjusted_quotient // BASE_REWARDS_PER_EPOCH`
* `rewards[index] += get_base_reward(state, index) * attesting_balance // total_balance`
* `validator.effective_balance * min(total_penalties * 3, total_balance) // total_balance`
* `rewards[index] += base_reward * attesting_balance // committee_balance`

See also #1107.

* fix deposit test for new index handling

* tests: deposit with inconsistent withdrawal credentials

* Update README.md

* Update 0_beacon-chain.md

* Fix linter errors

* Update test_process_deposit.py

* fix deposit test

* fix lint
2019-05-29 20:38:55 -06:00
..
debug Fix pyspec/eth2spec/debug lint 2019-05-09 14:34:23 +08:00
phase0 Get rid of state_transition.py 2019-05-01 13:14:10 +01:00
test Test deposit top-up with inconsistent withdrawal credentials (#1133) 2019-05-29 20:38:55 -06:00
utils Merge branch 'dev' into v06x-to-dev 2019-05-27 11:09:52 -06:00
__init__.py rename pyspec pkg to eth2spec 2019-04-03 14:18:17 +11:00