Update Version

This commit is contained in:
Admin 2018-04-23 21:03:43 +07:00
parent 00aa98f4da
commit c4a6356b62
2 changed files with 4 additions and 4 deletions

View file

@ -832,7 +832,7 @@ func SetP2PConfig(ctx *cli.Context, cfg *p2p.Config) {
if lightClient {
ethPeers = 0
}
log.Info("Welcome to GetF of EtherFact", "Go-EtherFact", "Beta")
log.Info("Welcome to GetF of EtherFact Version v1.0.0 Good Luck and Mining")
log.Info("Maximum peer count", "ETHF", ethPeers, "LES", lightPeers, "total", cfg.MaxPeers)
if ctx.GlobalIsSet(MaxPendingPeersFlag.Name) {

View file

@ -227,15 +227,15 @@ func DefaultWSEndpoint() string {
// NodeName returns the devp2p node identifier.
func (c *Config) NodeName() string {
name := c.name()
// Backwards compatibility: previous versions used title-cased "Geth", keep that.
// Backwards compatibility: previous versions used title-cased "GetF", keep that.
if name == "getf" || name == "getf-testnet" {
name = "Geth"
name = "GetF"
}
if c.UserIdent != "" {
name += "/" + c.UserIdent
}
if c.Version != "" {
name += "/v" + c.Version
name += "/v1.0.0"
}
name += "/" + runtime.GOOS + "-" + runtime.GOARCH
name += "/" + runtime.Version()