aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-11-27 00:35:44 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-11-27 17:06:12 +0800
commit3e1000fda3424d880bc43ebbb16d8a33447d4182 (patch)
treefdc37470cba9af3a00e7eeaa02895b5166ddcd27 /eth
parent1e806c4c775bd98b224eb0249007502d348e737b (diff)
downloadgo-tangerine-3e1000fda3424d880bc43ebbb16d8a33447d4182.tar
go-tangerine-3e1000fda3424d880bc43ebbb16d8a33447d4182.tar.gz
go-tangerine-3e1000fda3424d880bc43ebbb16d8a33447d4182.tar.bz2
go-tangerine-3e1000fda3424d880bc43ebbb16d8a33447d4182.tar.lz
go-tangerine-3e1000fda3424d880bc43ebbb16d8a33447d4182.tar.xz
go-tangerine-3e1000fda3424d880bc43ebbb16d8a33447d4182.tar.zst
go-tangerine-3e1000fda3424d880bc43ebbb16d8a33447d4182.zip
cmd, eth, node, rpc, xeth: use single-instance services
Diffstat (limited to 'eth')
-rw-r--r--eth/backend.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/eth/backend.go b/eth/backend.go
index 5a8cf6a73..0369f6afd 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -135,7 +135,7 @@ func New(ctx *node.ServiceContext, config *Config) (*Ethereum, error) {
ethdb.OpenFileLimit = 128 / (dbCount + 1)
// Open the chain database and perform any upgrades needed
- chainDb, err := ctx.Database("chaindata", config.DatabaseCache)
+ chainDb, err := ctx.OpenDatabase("chaindata", config.DatabaseCache)
if err != nil {
return nil, err
}
@@ -149,7 +149,7 @@ func New(ctx *node.ServiceContext, config *Config) (*Ethereum, error) {
return nil, err
}
- dappDb, err := ctx.Database("dapp", config.DatabaseCache)
+ dappDb, err := ctx.OpenDatabase("dapp", config.DatabaseCache)
if err != nil {
return nil, err
}