Commit 9afda6ab authored by Jeffrey Wilcke's avatar Jeffrey Wilcke

core: 5 ether block reward

parent 5001f778
...@@ -90,5 +90,5 @@ func ExampleGenerateChain() { ...@@ -90,5 +90,5 @@ func ExampleGenerateChain() {
// last block: #5 // last block: #5
// balance of addr1: 989000 // balance of addr1: 989000
// balance of addr2: 10000 // balance of addr2: 10000
// balance of addr3: 5906250000000001000 // balance of addr3: 19687500000000001000
} }
...@@ -20,4 +20,4 @@ import ( ...@@ -20,4 +20,4 @@ import (
"math/big" "math/big"
) )
var BlockReward *big.Int = big.NewInt(1.5e+18) var BlockReward *big.Int = big.NewInt(5e+18)
...@@ -17,10 +17,18 @@ ...@@ -17,10 +17,18 @@
package tests package tests
import ( import (
"math/big"
"path/filepath" "path/filepath"
"testing" "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) { func TestBcValidBlockTests(t *testing.T) {
err := RunBlockTest(filepath.Join(blockTestDir, "bcValidBlockTest.json"), BlockSkipTests) err := RunBlockTest(filepath.Join(blockTestDir, "bcValidBlockTest.json"), BlockSkipTests)
if err != nil { if err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment