all: clean up and proerly abstract database access

This commit is contained in:
Péter Szilágyi
2019-03-06 13:35:03 +02:00
parent 15eee47ebf
commit 054412e335
94 changed files with 1573 additions and 1381 deletions
+1 -1
View File
@@ -1548,7 +1548,7 @@ func MakeChainDatabase(ctx *cli.Context, stack *node.Node) ethdb.Database {
if ctx.GlobalString(SyncModeFlag.Name) == "light" {
name = "lightchaindata"
}
chainDb, err := stack.OpenDatabase(name, cache, handles)
chainDb, err := stack.OpenDatabase(name, cache, handles, "")
if err != nil {
Fatalf("Could not open database: %v", err)
}