mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 01:43:47 +00:00
Update consensus.go
This commit is contained in:
parent
c1c2c34f7d
commit
03e6716114
1 changed files with 1 additions and 1 deletions
|
|
@ -540,7 +540,7 @@ func calculateReward(reward int, currentTimestamp uint64) (blockReward *big.Int)
|
||||||
rewardMaxDecimal := 7
|
rewardMaxDecimal := 7
|
||||||
currentReward := float64(reward) * defmath.Pow(10, float64(rewardMaxDecimal))
|
currentReward := float64(reward) * defmath.Pow(10, float64(rewardMaxDecimal))
|
||||||
rewardDecreaseTime := int64(3*365*24*60*60)
|
rewardDecreaseTime := int64(3*365*24*60*60)
|
||||||
fromTimestamp := int64(1518395555)
|
fromTimestamp := int64(1518538888)
|
||||||
timeDiff := int64(currentTimestamp) - fromTimestamp
|
timeDiff := int64(currentTimestamp) - fromTimestamp
|
||||||
|
|
||||||
if timeDiff >= rewardDecreaseTime {
|
if timeDiff >= rewardDecreaseTime {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue