diff --git a/eth/backend.go b/eth/backend.go index 6d1f40ee34..3ec6a15ba6 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -256,7 +256,7 @@ func New(stack *node.Node, config *ethconfig.Config) (*Ethereum, error) { path string ) if config.JournalFileEnabled { - if stack.IsSeparatedDB() { + if stack.CheckIfMultiDataBase() { path = ChainData + "/state" } else { path = ChainData diff --git a/node/node.go b/node/node.go index 478ab478e7..1dfc255535 100644 --- a/node/node.go +++ b/node/node.go @@ -822,12 +822,12 @@ func (n *Node) OpenAndMergeDatabase(name string, namespace string, readonly bool disableChainDbFreeze = true // Allocate half of the handles and chainDbCache to this separate state data database - stateDiskDb, err = n.OpenDatabaseWithFreezer(name+"/state", stateDbCache, stateDbHandles, "", "eth/db/state/", readonly, true, false, config.PruneAncientData) + stateDiskDb, err = n.OpenDatabaseWithFreezer(name+"/state", stateDbCache, stateDbHandles, "", "eth/db/statedata/", readonly, true, false, config.PruneAncientData) if err != nil { return nil, err } - blockDb, err = n.OpenDatabaseWithFreezer(name+"/block", blockDbCacheSize, blockDbHandlesSize, "", "eth/db/block/", readonly, false, false, config.PruneAncientData) + blockDb, err = n.OpenDatabaseWithFreezer(name+"/block", blockDbCacheSize, blockDbHandlesSize, "", "eth/db/blockdata/", readonly, false, false, config.PruneAncientData) if err != nil { return nil, err }