mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
rename resolveEra
This commit is contained in:
parent
01e48f3e19
commit
eb4e231434
1 changed files with 3 additions and 3 deletions
|
|
@ -746,7 +746,7 @@ func (n *Node) OpenDatabaseWithFreezer(name string, cache, handles int, ancient
|
||||||
Type: n.config.DBEngine,
|
Type: n.config.DBEngine,
|
||||||
Directory: n.ResolvePath(name),
|
Directory: n.ResolvePath(name),
|
||||||
AncientsDirectory: n.ResolveAncient(name, ancient),
|
AncientsDirectory: n.ResolveAncient(name, ancient),
|
||||||
EraDirectory: n.ResolveEra(ancient, era),
|
EraDirectory: n.ResolveEraDirectory(ancient, era),
|
||||||
Namespace: namespace,
|
Namespace: namespace,
|
||||||
Cache: cache,
|
Cache: cache,
|
||||||
Handles: handles,
|
Handles: handles,
|
||||||
|
|
@ -775,8 +775,8 @@ func (n *Node) ResolveAncient(name string, ancient string) string {
|
||||||
return ancient
|
return ancient
|
||||||
}
|
}
|
||||||
|
|
||||||
// ResolveEra returns the absolute path of the era directory.
|
// ResolveEraDirectory returns the absolute path of the era directory.
|
||||||
func (n *Node) ResolveEra(ancient, era string) string {
|
func (n *Node) ResolveEraDirectory(ancient, era string) string {
|
||||||
switch {
|
switch {
|
||||||
case era == "":
|
case era == "":
|
||||||
era = filepath.Join(ancient, "era")
|
era = filepath.Join(ancient, "era")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue