Skip to content

node/config.go

Type MOD
Upstream Lines 500
Changed +3 -2

On-disk instance dir stays 'geth' (datadir compatibility with go-ethereum/core-geth) but the node advertises itself as 'getc'

diff --git a/node/config.go b/node/config.go
index 255b0f0aa..0672c6c4e 100644
--- a/node/config.go
+++ b/node/config.go
@@ -317,9 +317,10 @@ func (c *Config) ExtRPCEnabled() bool {
 // NodeName returns the devp2p node identifier.
 func (c *Config) NodeName() string {
    name := c.name()
-   // Backwards compatibility: previous versions used title-cased "Geth", keep that.
+   // The on-disk instance dir name is "geth" (see databaseIdentifier) for datadir
+   // compatibility with go-ethereum/core-geth, but advertise this node as "getc".
    if name == "geth" || name == "geth-testnet" {
-       name = "Geth"
+       name = "getc"
    }
    if c.UserIdent != "" {
        name += "/" + c.UserIdent

← Back to Eth Service