diff --git a/beacon-chain/core/helpers/rewards_penalties.go b/beacon-chain/core/helpers/rewards_penalties.go index 1d68f669c60c..fd0163625eb3 100644 --- a/beacon-chain/core/helpers/rewards_penalties.go +++ b/beacon-chain/core/helpers/rewards_penalties.go @@ -143,9 +143,8 @@ func IncreaseBalance(state *pb.BeaconState, idx uint64, delta uint64) *pb.Beacon func DecreaseBalance(state *pb.BeaconState, idx uint64, delta uint64) *pb.BeaconState { currentBalance := Balance(state, idx) if currentBalance >= delta { - SetBalance(state, idx, currentBalance-delta) - } else { - SetBalance(state, idx, 0) + return SetBalance(state, idx, currentBalance-delta) + } - return state + return SetBalance(state, idx, 0) } diff --git a/shared/params/config.go b/shared/params/config.go index 212b2818f8c8..242878387272 100644 --- a/shared/params/config.go +++ b/shared/params/config.go @@ -153,7 +153,7 @@ var defaultBeaconConfig = &BeaconChainConfig{ MinDepositAmount: 1 * 1e9, MaxDepositAmount: 32 * 1e9, EjectionBalance: 16 * 1e9, - HighBalanceIncrement: 1 * 1E9, + HighBalanceIncrement: 1 * 1e9, ForkChoiceBalanceIncrement: 1 * 1e9, // Initial value constants.