github.com/dominant-strategies/go-quai@v0.28.2/consensus/misc/rewards.go (about) 1 package misc 2 3 import ( 4 "math/big" 5 6 "github.com/dominant-strategies/go-quai/core/types" 7 ) 8 9 // CalculateReward calculates the coinbase rewards depending on the type of the block 10 func CalculateReward(header *types.Header) *big.Int { 11 //// This Reward Schedule is only for Iron Age Testnet and has nothing to do 12 //// with the Mainnet Schedule 13 return new(big.Int).Mul(header.Difficulty(), big.NewInt(10e8)) 14 }