Skip to content

Commit 3907071

Browse files
committed
gwemix: gmet -> gwemix
1 parent 0709e60 commit 3907071

6 files changed

Lines changed: 11 additions & 11 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ This is default behavior in non-linux environment, e.g. in MacOS X.
4040

4141
## Join the Wemix Mainnet or Testnet
4242

43-
One can use the following command lines to join the Wemix networks. Note that the default RPC port for `gwemix` is 8588, and p2p port is 8589. As with `geth`, if `--datadir` is missing, ~/.wemix is the data directory.
43+
One can use the following command lines to join the Wemix networks. Note that the default HTTP port for `gwemix` is 8588, p2p port 8589 and WS port 8598. As with `geth`, if `--datadir` is missing, ~/.wemix is the data directory.
4444

4545
### Wemix Mainnet
4646

cmd/geth/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ import (
5454
)
5555

5656
const (
57-
clientIdentifier = "gmet" // Client identifier to advertise over the network
57+
clientIdentifier = "gwemix" // Client identifier to advertise over the network
5858
)
5959

6060
var (
6161
// Git SHA1 commit hash of the release (set via linker flags)
6262
gitCommit = ""
6363
gitDate = ""
6464
// The app that holds all commands and flags.
65-
app = flags.NewApp(gitCommit, gitDate, "the go-ethereum command line interface")
65+
app = flags.NewApp(gitCommit, gitDate, "the go-wemix command line interface")
6666
// flags that configure the node
6767
nodeFlags = []cli.Flag{
6868
utils.IdentityFlag,

cmd/geth/wemixcmd.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import (
3333
"gopkg.in/urfave/cli.v1"
3434
)
3535

36-
// gmet wemix new-account
36+
// gwemix wemix new-account
3737
var (
3838
wemixCommand = cli.Command{
3939
Name: "wemix",
@@ -195,7 +195,7 @@ To give password in command line, use "--password <(echo <password>)".
195195
}
196196
urlFlag = cli.StringFlag{
197197
Name: "url",
198-
Usage: "url of gmet node",
198+
Usage: "url of gwemix node",
199199
}
200200
)
201201

internal/flags/helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ OPTIONS:
5151
AppHelpTemplate = `NAME:
5252
{{.App.Name}} - {{.App.Usage}}
5353
54-
Copyright 2013-2021 The go-ethereum Authors
54+
Copyright 2013-2022 The go-ethereum / go-metadium / go-wemix Authors
5555
5656
USAGE:
5757
{{.App.HelpName}} [options]{{if .App.Commands}} [command] [command options]{{end}} {{if .App.ArgsUsage}}{{.App.ArgsUsage}}{{else}}[arguments...]{{end}}

internal/jsre/offline_wallet.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func (re *JSRE) offlineWalletOpen(call Call) (goja.Value, error) {
181181
}
182182

183183
switch u.Scheme {
184-
case "", "geth", "gmet":
184+
case "", "geth", "gwemix":
185185
id, addr, err := loadGethAccount(password, path)
186186
if err != nil {
187187
return nil, err

node/config.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ func (c *Config) ExtRPCEnabled() bool {
277277
func (c *Config) NodeName() string {
278278
name := c.name()
279279
// Backwards compatibility: previous versions used title-cased "Geth", keep that.
280-
if name == "geth" || name == "geth-testnet" || name == "gmet" || name == "gmet-testnet" {
281-
name = "Gmet"
280+
if name == "geth" || name == "geth-testnet" || name == "gwemix" || name == "gwemix-testnet" {
281+
name = "Gwemix"
282282
}
283283
if c.UserIdent != "" {
284284
name += "/" + c.UserIdent
@@ -297,11 +297,11 @@ func (c *Config) name() string {
297297
if progname == "" {
298298
panic("empty executable name, set Config.Name")
299299
}
300-
if strings.EqualFold(c.Name, "gmet") {
300+
if strings.EqualFold(c.Name, "gwemix") {
301301
progname = "geth"
302302
}
303303
return progname
304-
} else if strings.EqualFold(c.Name, "gmet") {
304+
} else if strings.EqualFold(c.Name, "gwemix") {
305305
return "geth"
306306
}
307307
return c.Name

0 commit comments

Comments
 (0)