From 12a5c130b11ba914edc9defe88ebb962e9b57fb3 Mon Sep 17 00:00:00 2001 From: huuhadz2k <36265491+huuhadz2k@users.noreply.github.com> Date: Fri, 13 Apr 2018 13:20:11 +0700 Subject: [PATCH] =?UTF-8?q?Hu=CC=89y=20bo=CC=89=20th=C3=B4ng=20tin=20kh?= =?UTF-8?q?=C3=B4ng=20c=C3=A2=CC=80n=20thi=C3=AA=CC=81t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/utils/flags.go | 3 ++- common/hexutil/hexutil.go | 2 +- common/path.go | 2 +- eth/backend.go | 5 ++--- les/backend.go | 1 - node/defaults.go | 6 +++--- 6 files changed, 9 insertions(+), 10 deletions(-) diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index ee179c03f2..537152086a 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -832,7 +832,8 @@ func SetP2PConfig(ctx *cli.Context, cfg *p2p.Config) { if lightClient { ethPeers = 0 } - log.Info("Maximum peer count", "ETH", ethPeers, "LES", lightPeers, "total", cfg.MaxPeers) + log.Info("Welcome to Geth of EtherFact", "Cảm ơn bạn đã sử dụng Geth của EtherFact ^^!") + log.Info("Maximum peer count", "ETHF", ethPeers, "LES", lightPeers, "total", cfg.MaxPeers) if ctx.GlobalIsSet(MaxPendingPeersFlag.Name) { cfg.MaxPendingPeers = ctx.GlobalInt(MaxPendingPeersFlag.Name) diff --git a/common/hexutil/hexutil.go b/common/hexutil/hexutil.go index 0ce60b150e..770c531df6 100644 --- a/common/hexutil/hexutil.go +++ b/common/hexutil/hexutil.go @@ -16,7 +16,7 @@ /* Package hexutil implements hex encoding with 0x prefix. -This encoding is used by the Ethereum RPC API to transport binary data in JSON payloads. +This encoding is used by the EtherFact RPC API to transport binary data in JSON payloads. Encoding Rules diff --git a/common/path.go b/common/path.go index 0b53a81bef..6233d2b8e7 100644 --- a/common/path.go +++ b/common/path.go @@ -23,7 +23,7 @@ import ( "runtime" ) -// MakeName creates a node name that follows the ethereum convention +// MakeName creates a node name that follows the etherfact convention // for such names. It adds the operation system name and Go runtime version // the name. func MakeName(name, version string) string { diff --git a/eth/backend.go b/eth/backend.go index eb2bd1730d..05b7e2f00c 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -99,8 +99,8 @@ func (s *Ethereum) AddLesServer(ls LesServer) { ls.SetBloomBitsIndexer(s.bloomIndexer) } -// New creates a new Ethereum object (including the -// initialisation of the common Ethereum object) +// New creates a new EtherFact object (including the +// initialisation of the common EtherFact object) func New(ctx *node.ServiceContext, config *Config) (*Ethereum, error) { if config.SyncMode == downloader.LightSync { return nil, errors.New("can't run eth.Ethereum in light sync mode, use les.LightEthereum") @@ -117,7 +117,6 @@ func New(ctx *node.ServiceContext, config *Config) (*Ethereum, error) { if _, ok := genesisErr.(*params.ConfigCompatError); genesisErr != nil && !ok { return nil, genesisErr } - log.Info("Initialised chain configuration", "config", chainConfig) eth := &Ethereum{ config: config, diff --git a/les/backend.go b/les/backend.go index 113b188e1b..e3ec81cc1c 100644 --- a/les/backend.go +++ b/les/backend.go @@ -88,7 +88,6 @@ func New(ctx *node.ServiceContext, config *eth.Config) (*LightEthereum, error) { if _, isCompat := genesisErr.(*params.ConfigCompatError); genesisErr != nil && !isCompat { return nil, genesisErr } - log.Info("Initialised chain configuration", "config", chainConfig) peers := newPeerSet() quitSync := make(chan struct{}) diff --git a/node/defaults.go b/node/defaults.go index a32ab8635f..b2c7fb47a6 100644 --- a/node/defaults.go +++ b/node/defaults.go @@ -55,11 +55,11 @@ func DefaultDataDir() string { home := homeDir() if home != "" { if runtime.GOOS == "darwin" { - return filepath.Join(home, "Library", "Ethereum") + return filepath.Join(home, "Library", "EtherFact") } else if runtime.GOOS == "windows" { - return filepath.Join(home, "AppData", "Roaming", "Ethereum") + return filepath.Join(home, "AppData", "Roaming", "EtherFact") } else { - return filepath.Join(home, ".ethereum") + return filepath.Join(home, ".etherfact") } } // As we cannot guess a stable location, return empty and handle later