Skip to content

Commit 9afda6a

Browse files
committed
core: 5 ether block reward
1 parent 5001f77 commit 9afda6a

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

‎core/chain_makers_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,5 @@ func ExampleGenerateChain() {
9090
// last block: #5
9191
// balance of addr1: 989000
9292
// balance of addr2: 10000
93-
// balance of addr3: 5906250000000001000
93+
// balance of addr3: 19687500000000001000
9494
}

‎core/fees.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ import (
2020
"math/big"
2121
)
2222

23-
var BlockReward *big.Int = big.NewInt(1.5e+18)
23+
var BlockReward *big.Int = big.NewInt(5e+18)

‎tests/block_test.go‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,18 @@
1717
package tests
1818

1919
import (
20+
"math/big"
2021
"path/filepath"
2122
"testing"
23+
24+
"github.com/ethereum/go-ethereum/core"
2225
)
2326

27+
func init() {
28+
// XXX remove me when block tests have been updated
29+
core.BlockReward = big.NewInt(1.5e+18)
30+
}
31+
2432
func TestBcValidBlockTests(t *testing.T) {
2533
err := RunBlockTest(filepath.Join(blockTestDir, "bcValidBlockTest.json"), BlockSkipTests)
2634
if err != nil {

0 commit comments

Comments
 (0)