eth2.0-specs/specs
Justin cdfb886c22
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.
2019-05-26 18:42:37 +03:00
..
core Avoid divisions by zero 2019-05-26 18:42:37 +03:00
light_client Update instances of int_to_bytes 2019-05-07 10:57:41 +01:00
networking Fix typo in libp2p-standardization 2019-05-24 21:24:35 +10:00
test_formats Doc standardization (#1039) 2019-05-06 16:30:32 +01:00
validator avoid zero constant for deposits fork-version, just default to it 2019-05-22 01:39:20 +02:00
bls_signature.md Edit BLS spec warning 2019-05-21 09:13:57 +01:00
simple-serialize.md Fix SSZ union type example 2019-05-11 15:12:11 +08:00