diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-07-23 16:17:18 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-07-23 16:17:18 +0800 |
commit | b403b9e4c398a285c0e307771761b29bab47adb9 (patch) | |
tree | b9991d8a9ab71e84a1350e0769ec9ae59ecd3cc0 /cmd/geth | |
parent | 26a269ea09667f7e49b89f96bb5eaee66c0d10f8 (diff) | |
parent | c7e7778f2a7d80fa12643db546db98fa70f2e384 (diff) | |
download | go-tangerine-b403b9e4c398a285c0e307771761b29bab47adb9.tar.gz go-tangerine-b403b9e4c398a285c0e307771761b29bab47adb9.tar.zst go-tangerine-b403b9e4c398a285c0e307771761b29bab47adb9.zip |
Merge pull request #1508 from karalabe/database-caching
cmd, core, eth, ethdb: cache flag to allocate memory for db internal use
Diffstat (limited to 'cmd/geth')
-rw-r--r-- | cmd/geth/main.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/geth/main.go b/cmd/geth/main.go index a8649a304..6ff3b3781 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, @@ -501,7 +502,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) } |