aboutsummaryrefslogtreecommitdiffstats
path: root/console/console_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'console/console_test.go')
-rw-r--r--console/console_test.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/console/console_test.go b/console/console_test.go
index d5010b907..0fc0e7051 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 (
@@ -92,14 +91,14 @@ func newTester(t *testing.T, confOverride func(*eth.Config)) *tester {
}
// Create a networkless protocol stack and start an Ethereum service within
- stack, err := node.New(&node.Config{DataDir: workspace, UseLightweightKDF: true, Name: testInstance, NoDiscovery: true})
+ stack, err := node.New(&node.Config{DataDir: workspace, UseLightweightKDF: true, Name: testInstance})
if err != nil {
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)