mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
fix: add TIP condition for reward bug fix (#1360)
Co-authored-by: liam.lai <liam.lai@us>
This commit is contained in:
parent
d7412ea981
commit
3e43756fd7
1 changed files with 1 additions and 1 deletions
|
|
@ -467,7 +467,7 @@ func GetRewardBalancesRate(foundationWalletAddr common.Address, statedb *state.S
|
|||
foundationReward := new(big.Int).Mul(totalReward, new(big.Int).SetInt64(common.RewardFoundationPercent))
|
||||
foundationReward = new(big.Int).Div(foundationReward, new(big.Int).SetInt64(100))
|
||||
|
||||
if balances[foundationWalletAddr] != nil {
|
||||
if blockNumber >= common.TIPUpgradeReward.Uint64() && balances[foundationWalletAddr] != nil {
|
||||
balances[foundationWalletAddr].Add(balances[foundationWalletAddr], foundationReward)
|
||||
} else {
|
||||
balances[foundationWalletAddr] = foundationReward
|
||||
|
|
|
|||
Loading…
Reference in a new issue