We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
miningReward
1 parent fcd83f4 commit 707a949Copy full SHA for 707a949
ethereum/client.go
@@ -1067,14 +1067,10 @@ func (ec *Client) populateTransaction(
1067
// for a given block height.
1068
//
1069
// Source:
1070
-// https://github.com/ethereum/go-ethereum/master/consensus/ethash/consensus.go#L619-L645
+// https://github.com/ethereum/go-ethereum/blob/master/consensus/ethash/consensus.go#L646-L653
1071
func (ec *Client) miningReward(
1072
currentBlock *big.Int,
1073
) int64 {
1074
- if currentBlock.Int64() == int64(0) {
1075
- return big.NewInt(0).Int64()
1076
- }
1077
-
1078
blockReward := ethash.FrontierBlockReward.Int64()
1079
if ec.p.IsByzantium(currentBlock) {
1080
blockReward = ethash.ByzantiumBlockReward.Int64()
0 commit comments