cmd/geth, node: surface geth architecture into version (#13866)

This commit is contained in:
Péter Szilágyi
2017-04-05 22:51:01 +03:00
committed by Felix Lange
parent cc303017c3
commit 24b9860c1b
4 changed files with 8 additions and 5 deletions

View File

@ -266,7 +266,7 @@ func (c *Config) NodeName() string {
if c.Version != "" {
name += "/v" + c.Version
}
name += "/" + runtime.GOOS
name += "/" + runtime.GOOS + "-" + runtime.GOARCH
name += "/" + runtime.Version()
return name
}

View File

@ -173,7 +173,7 @@ func (n *Node) Start() error {
MaxPendingPeers: n.config.MaxPendingPeers,
}
running := &p2p.Server{Config: n.serverConfig}
log.Info(fmt.Sprint("instance:", n.serverConfig.Name))
log.Info("Starting peer-to-peer node", "instance", n.serverConfig.Name)
// Otherwise copy and specialize the P2P configuration
services := make(map[reflect.Type]Service)