Sfoglia il codice sorgente

core: 5 ether block reward

Jeffrey Wilcke 10 anni fa
parent
commit
9afda6ab8c
3 ha cambiato i file con 10 aggiunte e 2 eliminazioni
  1. 1 1
      core/chain_makers_test.go
  2. 1 1
      core/fees.go
  3. 8 0
      tests/block_test.go

+ 1 - 1
core/chain_makers_test.go

@@ -90,5 +90,5 @@ func ExampleGenerateChain() {
 	// last block: #5
 	// balance of addr1: 989000
 	// balance of addr2: 10000
-	// balance of addr3: 5906250000000001000
+	// balance of addr3: 19687500000000001000
 }

+ 1 - 1
core/fees.go

@@ -20,4 +20,4 @@ import (
 	"math/big"
 )
 
-var BlockReward *big.Int = big.NewInt(1.5e+18)
+var BlockReward *big.Int = big.NewInt(5e+18)

+ 8 - 0
tests/block_test.go

@@ -17,10 +17,18 @@
 package tests
 
 import (
+	"math/big"
 	"path/filepath"
 	"testing"
+
+	"github.com/ethereum/go-ethereum/core"
 )
 
+func init() {
+	// XXX remove me when block tests have been updated
+	core.BlockReward = big.NewInt(1.5e+18)
+}
+
 func TestBcValidBlockTests(t *testing.T) {
 	err := RunBlockTest(filepath.Join(blockTestDir, "bcValidBlockTest.json"), BlockSkipTests)
 	if err != nil {