diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-03-23 23:36:38 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-23 23:36:38 +0800 |
commit | 8771c3061f340451d0966adcc547338a25f2231f (patch) | |
tree | c566cab81cf95a39f85fbe2c98a932af9495eb68 /console | |
parent | 11e7a712f469fb24ddb88ecebcefab6ed8880eb8 (diff) | |
parent | 37dd9086ec491900311fc39837f4a62ef5fd3a4a (diff) | |
download | dexon-8771c3061f340451d0966adcc547338a25f2231f.tar dexon-8771c3061f340451d0966adcc547338a25f2231f.tar.gz dexon-8771c3061f340451d0966adcc547338a25f2231f.tar.bz2 dexon-8771c3061f340451d0966adcc547338a25f2231f.tar.lz dexon-8771c3061f340451d0966adcc547338a25f2231f.tar.xz dexon-8771c3061f340451d0966adcc547338a25f2231f.tar.zst dexon-8771c3061f340451d0966adcc547338a25f2231f.zip |
Merge pull request #3794 from fjl/core-genesis-refactor
core: refactor genesis handling
Diffstat (limited to 'console')
-rw-r--r-- | console/console_test.go | 9 |
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 := ð.Config{ - ChainConfig: ¶ms.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) |