|
|
@ -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 { |
|
|
|