diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-11-27 00:35:44 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-11-27 17:06:12 +0800 |
commit | 3e1000fda3424d880bc43ebbb16d8a33447d4182 (patch) | |
tree | fdc37470cba9af3a00e7eeaa02895b5166ddcd27 /eth/backend.go | |
parent | 1e806c4c775bd98b224eb0249007502d348e737b (diff) | |
download | go-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/backend.go')
-rw-r--r-- | eth/backend.go | 4 |
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 } |