From eb4e231434bd7cca893cd41c34b70fd6f41a174e Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi Date: Wed, 16 Apr 2025 11:07:49 +0200 Subject: [PATCH] rename resolveEra --- node/node.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/node/node.go b/node/node.go index dea6318706..9913db374e 100644 --- a/node/node.go +++ b/node/node.go @@ -746,7 +746,7 @@ func (n *Node) OpenDatabaseWithFreezer(name string, cache, handles int, ancient Type: n.config.DBEngine, Directory: n.ResolvePath(name), AncientsDirectory: n.ResolveAncient(name, ancient), - EraDirectory: n.ResolveEra(ancient, era), + EraDirectory: n.ResolveEraDirectory(ancient, era), Namespace: namespace, Cache: cache, Handles: handles, @@ -775,8 +775,8 @@ func (n *Node) ResolveAncient(name string, ancient string) string { return ancient } -// ResolveEra returns the absolute path of the era directory. -func (n *Node) ResolveEra(ancient, era string) string { +// ResolveEraDirectory returns the absolute path of the era directory. +func (n *Node) ResolveEraDirectory(ancient, era string) string { switch { case era == "": era = filepath.Join(ancient, "era")