mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
Fix treasury calc
This commit is contained in:
parent
acd78eac7b
commit
739557ba92
1 changed files with 2 additions and 2 deletions
|
|
@ -619,7 +619,7 @@ func accumulateRewards(config *params.ChainConfig, state *state.StateDB, header
|
||||||
// Stake fee
|
// Stake fee
|
||||||
stakeReward := new(big.Int)
|
stakeReward := new(big.Int)
|
||||||
stakeReward.Mul(reward, stakeFunds)
|
stakeReward.Mul(reward, stakeFunds)
|
||||||
stakeReward.Div(treasuryReward, big.NewInt(100))
|
stakeReward.Div(stakeReward, big.NewInt(100))
|
||||||
|
|
||||||
// Accumulate the rewards for the miner and any included uncles
|
// Accumulate the rewards for the miner and any included uncles
|
||||||
r := new(big.Int)
|
r := new(big.Int)
|
||||||
|
|
@ -636,7 +636,7 @@ func accumulateRewards(config *params.ChainConfig, state *state.StateDB, header
|
||||||
|
|
||||||
if config.IsCallisto(header.Number) {
|
if config.IsCallisto(header.Number) {
|
||||||
reward.Sub(reward, treasuryReward)
|
reward.Sub(reward, treasuryReward)
|
||||||
reward.Sub(stakeReward, treasuryReward)
|
reward.Sub(reward, stakeReward)
|
||||||
state.AddBalance(config.CallistoTreasuryAddress, treasuryReward)
|
state.AddBalance(config.CallistoTreasuryAddress, treasuryReward)
|
||||||
state.AddBalance(config.CallistoStakeAddress, stakeReward)
|
state.AddBalance(config.CallistoStakeAddress, stakeReward)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue