Skip to content

Commit

Permalink
fix terence change requests
Browse files Browse the repository at this point in the history
  • Loading branch information
shayzluf committed Apr 25, 2019
1 parent af78c8b commit 89de4ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions beacon-chain/core/helpers/rewards_penalties.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
2 changes: 1 addition & 1 deletion shared/params/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 89de4ca

Please sign in to comment.