aboutsummaryrefslogtreecommitdiffstats
path: root/node/service.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-02-19 20:29:19 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-03-09 16:33:39 +0800
commite90958cd29a228b051faeaa25d66e053cf9d2228 (patch)
treedd7dd52d31628375ead8a06e681441102faf9037 /node/service.go
parent05c86c2c9fa14ea03fdc5d0cd77cdecc34e4f164 (diff)
downloadgo-tangerine-e90958cd29a228b051faeaa25d66e053cf9d2228.tar
go-tangerine-e90958cd29a228b051faeaa25d66e053cf9d2228.tar.gz
go-tangerine-e90958cd29a228b051faeaa25d66e053cf9d2228.tar.bz2
go-tangerine-e90958cd29a228b051faeaa25d66e053cf9d2228.tar.lz
go-tangerine-e90958cd29a228b051faeaa25d66e053cf9d2228.tar.xz
go-tangerine-e90958cd29a228b051faeaa25d66e053cf9d2228.tar.zst
go-tangerine-e90958cd29a228b051faeaa25d66e053cf9d2228.zip
cmd, eth, ethdb, node: prioritise chaindata for resources, bump cache
Diffstat (limited to 'node/service.go')
-rw-r--r--node/service.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/node/service.go b/node/service.go
index 26e9f1624..77b2ddc92 100644
--- a/node/service.go
+++ b/node/service.go
@@ -38,11 +38,11 @@ type ServiceContext struct {
// OpenDatabase opens an existing database with the given name (or creates one
// if no previous can be found) from within the node's data directory. If the
// node is an ephemeral one, a memory database is returned.
-func (ctx *ServiceContext) OpenDatabase(name string, cache int) (ethdb.Database, error) {
+func (ctx *ServiceContext) OpenDatabase(name string, cache int, handles int) (ethdb.Database, error) {
if ctx.datadir == "" {
return ethdb.NewMemDatabase()
}
- return ethdb.NewLDBDatabase(filepath.Join(ctx.datadir, name), cache)
+ return ethdb.NewLDBDatabase(filepath.Join(ctx.datadir, name), cache, handles)
}
// Service retrieves a currently running service registered of a specific type.