Fix bug with reward quotient in epoch processing
This commit is contained in:
parent
c5158e2974
commit
b79f0cdf68
@ -359,7 +359,8 @@ impl EpochProcessable for BeaconState {
|
|||||||
/*
|
/*
|
||||||
* Rewards and Penalities
|
* Rewards and Penalities
|
||||||
*/
|
*/
|
||||||
let base_reward_quotient = previous_total_balance.integer_sqrt();
|
let base_reward_quotient =
|
||||||
|
previous_total_balance.integer_sqrt() / spec.base_reward_quotient;
|
||||||
if base_reward_quotient == 0 {
|
if base_reward_quotient == 0 {
|
||||||
return Err(Error::BaseRewardQuotientIsZero);
|
return Err(Error::BaseRewardQuotientIsZero);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user