aboutsummaryrefslogtreecommitdiffstats
path: root/common/natspec
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-11-27 17:41:22 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-11-27 17:41:22 +0800
commit7dde2b902cf81e90b484b1a48f6d45e0abd10e0f (patch)
tree9b92cb3e42269697e0a2b553ba31c36aef73cc25 /common/natspec
parentffe58bf5abe5100b29ac1091c882f586cd3a2ef9 (diff)
parent3e1000fda3424d880bc43ebbb16d8a33447d4182 (diff)
downloaddexon-7dde2b902cf81e90b484b1a48f6d45e0abd10e0f.tar
dexon-7dde2b902cf81e90b484b1a48f6d45e0abd10e0f.tar.gz
dexon-7dde2b902cf81e90b484b1a48f6d45e0abd10e0f.tar.bz2
dexon-7dde2b902cf81e90b484b1a48f6d45e0abd10e0f.tar.lz
dexon-7dde2b902cf81e90b484b1a48f6d45e0abd10e0f.tar.xz
dexon-7dde2b902cf81e90b484b1a48f6d45e0abd10e0f.tar.zst
dexon-7dde2b902cf81e90b484b1a48f6d45e0abd10e0f.zip
Merge pull request #1970 from karalabe/customizable-protocol-stacks
Customizable protocol stacks
Diffstat (limited to 'common/natspec')
-rw-r--r--common/natspec/natspec_e2e_test.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/common/natspec/natspec_e2e_test.go b/common/natspec/natspec_e2e_test.go
index 5c0d43091..95109ec07 100644
--- a/common/natspec/natspec_e2e_test.go
+++ b/common/natspec/natspec_e2e_test.go
@@ -34,6 +34,8 @@ import (
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/eth"
"github.com/ethereum/go-ethereum/ethdb"
+ "github.com/ethereum/go-ethereum/event"
+ "github.com/ethereum/go-ethereum/node"
xe "github.com/ethereum/go-ethereum/xeth"
)
@@ -146,13 +148,11 @@ func testEth(t *testing.T) (ethereum *eth.Ethereum, err error) {
}
// only use minimalistic stack with no networking
- return eth.New(&eth.Config{
- DataDir: tmp,
+ return eth.New(&node.ServiceContext{EventMux: new(event.TypeMux)}, &eth.Config{
AccountManager: am,
Etherbase: common.HexToAddress(testAddress),
- MaxPeers: 0,
PowTest: true,
- NewDB: func(path string) (ethdb.Database, error) { return db, nil },
+ TestGenesisState: db,
GpoMinGasPrice: common.Big1,
GpobaseCorrectionFactor: 1,
GpoMaxGasPrice: common.Big1,
@@ -166,7 +166,7 @@ func testInit(t *testing.T) (self *testFrontend) {
t.Errorf("error creating ethereum: %v", err)
return
}
- err = ethereum.Start()
+ err = ethereum.Start(nil)
if err != nil {
t.Errorf("error starting ethereum: %v", err)
return
@@ -174,7 +174,7 @@ func testInit(t *testing.T) (self *testFrontend) {
// mock frontend
self = &testFrontend{t: t, ethereum: ethereum}
- self.xeth = xe.New(ethereum, self)
+ self.xeth = xe.New(nil, self)
self.wait = self.xeth.UpdateState()
addr, _ := self.ethereum.Etherbase()