eth2.0-specs/test_libs/pyspec/eth2spec/test
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
..
block_processing Test deposit top-up with inconsistent withdrawal credentials (#1133) 2019-05-29 20:38:55 -06:00
epoch_processing Merge branch 'dev' into v06x-to-dev 2019-05-27 11:09:52 -06:00
helpers Test deposit top-up with inconsistent withdrawal credentials (#1133) 2019-05-29 20:38:55 -06:00
sanity Fix linter errors 2019-05-30 09:53:46 +08:00
__init__.py move tests to standard pkg/test folder, enable conftest options with soft-import, update readme and makefile 2019-05-08 18:14:47 +02:00
conftest.py Fix linter errors 2019-05-30 09:53:46 +08:00
context.py suggestion from hww, reduce into one bls_setting key 2019-05-28 15:35:00 +02:00
test_finality.py Merge branch 'dev' into v06x-to-dev 2019-05-27 11:09:52 -06:00
utils.py more direct in what is happening in test utils 2019-05-23 22:28:11 +02:00