aboutsummaryrefslogtreecommitdiffstats
path: root/console/console_test.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-03-23 23:36:38 +0800
committerGitHub <noreply@github.com>2017-03-23 23:36:38 +0800
commit8771c3061f340451d0966adcc547338a25f2231f (patch)
treec566cab81cf95a39f85fbe2c98a932af9495eb68 /console/console_test.go
parent11e7a712f469fb24ddb88ecebcefab6ed8880eb8 (diff)
parent37dd9086ec491900311fc39837f4a62ef5fd3a4a (diff)
downloadgo-tangerine-8771c3061f340451d0966adcc547338a25f2231f.tar
go-tangerine-8771c3061f340451d0966adcc547338a25f2231f.tar.gz
go-tangerine-8771c3061f340451d0966adcc547338a25f2231f.tar.bz2
go-tangerine-8771c3061f340451d0966adcc547338a25f2231f.tar.lz
go-tangerine-8771c3061f340451d0966adcc547338a25f2231f.tar.xz
go-tangerine-8771c3061f340451d0966adcc547338a25f2231f.tar.zst
go-tangerine-8771c3061f340451d0966adcc547338a25f2231f.zip
Merge pull request #3794 from fjl/core-genesis-refactor
core: refactor genesis handling
Diffstat (limited to 'console/console_test.go')
-rw-r--r--console/console_test.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/console/console_test.go b/console/console_test.go
index d5010b907..b5cff2c4d 100644
--- a/console/console_test.go
+++ b/console/console_test.go
@@ -21,17 +21,16 @@ import (
"errors"
"fmt"
"io/ioutil"
- "math/big"
"os"
"strings"
"testing"
"time"
"github.com/ethereum/go-ethereum/common"
+ "github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/eth"
"github.com/ethereum/go-ethereum/internal/jsre"
"github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/params"
)
const (
@@ -97,9 +96,9 @@ func newTester(t *testing.T, confOverride func(*eth.Config)) *tester {
t.Fatalf("failed to create node: %v", err)
}
ethConf := &eth.Config{
- ChainConfig: &params.ChainConfig{HomesteadBlock: new(big.Int), ChainId: new(big.Int)},
- Etherbase: common.HexToAddress(testAddress),
- PowTest: true,
+ Genesis: core.DevGenesisBlock(),
+ Etherbase: common.HexToAddress(testAddress),
+ PowTest: true,
}
if confOverride != nil {
confOverride(ethConf)