Files
consensus-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
..
2019-05-26 18:42:37 +03:00
2019-05-06 16:30:32 +01:00
2019-05-21 09:13:57 +01:00
2019-05-11 15:12:11 +08:00