aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-07-22 18:46:20 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-07-22 19:00:52 +0800
commitc7e7778f2a7d80fa12643db546db98fa70f2e384 (patch)
treeec31d9621aa5b265af6a4c9098c2ad913c1a325d /cmd/geth
parentf1daed65b1f89cae6327cd9f49668628c6980ade (diff)
downloadgo-tangerine-c7e7778f2a7d80fa12643db546db98fa70f2e384.tar.gz
go-tangerine-c7e7778f2a7d80fa12643db546db98fa70f2e384.tar.zst
go-tangerine-c7e7778f2a7d80fa12643db546db98fa70f2e384.zip
cmd, core, eth, ethdb: cache flag to allocate memory for db internal use
Diffstat (limited to 'cmd/geth')
-rw-r--r--cmd/geth/main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/geth/main.go b/cmd/geth/main.go
index 8099d4dc6..f20ea390f 100644
--- a/cmd/geth/main.go
+++ b/cmd/geth/main.go
@@ -281,6 +281,7 @@ JavaScript API. See https://github.com/ethereum/go-ethereum/wiki/Javascipt-Conso
utils.BootnodesFlag,
utils.DataDirFlag,
utils.BlockchainVersionFlag,
+ utils.CacheFlag,
utils.JSpathFlag,
utils.ListenPortFlag,
utils.MaxPeersFlag,
@@ -492,7 +493,7 @@ func blockRecovery(ctx *cli.Context) {
cfg := utils.MakeEthConfig(ClientIdentifier, nodeNameVersion, ctx)
utils.CheckLegalese(cfg.DataDir)
- blockDb, err := ethdb.NewLDBDatabase(filepath.Join(cfg.DataDir, "blockchain"))
+ blockDb, err := ethdb.NewLDBDatabase(filepath.Join(cfg.DataDir, "blockchain"), cfg.DatabaseCache)
if err != nil {
glog.Fatalln("could not open db:", err)
}