From 477dba144d52df61fab171e26f4fe80743f4d985 Mon Sep 17 00:00:00 2001
From: bret-fusion
Date: Fri, 16 Nov 2018 16:39:48 -0500
Subject: [PATCH] efsn is the executable name of the fusion server
---
.travis.yml | 2 +-
Makefile | 6 +--
accounts/abi/bind/template.go | 4 +-
accounts/keystore/keystore_plain_test.go | 2 +-
build/ci.go | 36 +++++++--------
circle.yml | 6 +--
cmd/{geth => efsn}/accountcmd.go | 14 +++---
cmd/{geth => efsn}/accountcmd_test.go | 0
cmd/{geth => efsn}/bugcmd.go | 2 +-
cmd/{geth => efsn}/chaincmd.go | 0
cmd/{geth => efsn}/config.go | 2 +-
cmd/{geth => efsn}/consolecmd.go | 22 ++++-----
cmd/{geth => efsn}/consolecmd_test.go | 6 +--
cmd/{geth => efsn}/dao_test.go | 2 +-
cmd/{geth => efsn}/genesis_test.go | 0
cmd/{geth => efsn}/main.go | 6 +--
cmd/{geth => efsn}/misccmd.go | 6 +--
cmd/{geth => efsn}/monitorcmd.go | 6 +--
cmd/{geth => efsn}/run_test.go | 12 ++---
cmd/{geth => efsn}/testdata/empty.js | 0
cmd/{geth => efsn}/testdata/guswallet.json | 0
cmd/{geth => efsn}/testdata/passwords.txt | 0
.../testdata/wrong-passwords.txt | 0
cmd/{geth => efsn}/usage.go | 2 +-
cmd/faucet/faucet.go | 2 +-
cmd/puppeth/module_dashboard.go | 46 +++++++++----------
cmd/puppeth/module_node.go | 10 ++--
cmd/puppeth/module_wallet.go | 4 +-
cmd/swarm/config.go | 2 +-
cmd/swarm/config_test.go | 12 ++---
cmd/swarm/fs.go | 2 +-
cmd/swarm/main.go | 6 +--
cmd/utils/flags.go | 10 ++--
core/genesis.go | 2 +-
eth/backend.go | 2 +-
eth/filters/bench_test.go | 4 +-
internal/cmdtest/test_cmd.go | 4 +-
internal/web3ext/web3ext.go | 2 +-
miner/stress_clique.go | 2 +-
miner/stress_ethash.go | 2 +-
mobile/android_test.go | 8 ++--
mobile/doc.go | 2 +-
node/config.go | 12 ++---
node/config_test.go | 12 ++---
node/node.go | 2 +-
params/bootnodes.go | 2 +-
swarm/swarm_test.go | 16 +++----
whisper/whisperv6/doc.go | 2 +-
48 files changed, 152 insertions(+), 152 deletions(-)
rename cmd/{geth => efsn}/accountcmd.go (97%)
rename cmd/{geth => efsn}/accountcmd_test.go (100%)
rename cmd/{geth => efsn}/bugcmd.go (98%)
rename cmd/{geth => efsn}/chaincmd.go (100%)
rename cmd/{geth => efsn}/config.go (99%)
rename cmd/{geth => efsn}/consolecmd.go (90%)
rename cmd/{geth => efsn}/consolecmd_test.go (97%)
rename cmd/{geth => efsn}/dao_test.go (99%)
rename cmd/{geth => efsn}/genesis_test.go (100%)
rename cmd/{geth => efsn}/main.go (98%)
rename cmd/{geth => efsn}/misccmd.go (95%)
rename cmd/{geth => efsn}/monitorcmd.go (98%)
rename cmd/{geth => efsn}/run_test.go (87%)
rename cmd/{geth => efsn}/testdata/empty.js (100%)
rename cmd/{geth => efsn}/testdata/guswallet.json (100%)
rename cmd/{geth => efsn}/testdata/passwords.txt (100%)
rename cmd/{geth => efsn}/testdata/wrong-passwords.txt (100%)
rename cmd/{geth => efsn}/usage.go (99%)
diff --git a/.travis.yml b/.travis.yml
index 949f4913..e19c857f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -60,7 +60,7 @@ matrix:
- dput
- fakeroot
script:
- - go run build/ci.go debsrc -signer "Go Ethereum Linux Builder " -upload ppa:ethereum/ethereum
+ - go run build/ci.go debsrc -signer "Go Ethereum Linux Builder " -upload ppa:ethereum/ethereum
# This builder does the Linux Azure uploads
- os: linux
diff --git a/Makefile b/Makefile
index 11ff862e..991e3c60 100644
--- a/Makefile
+++ b/Makefile
@@ -12,16 +12,16 @@ GOBIN = $(shell pwd)/build/bin
GO ?= latest
geth:
- build/env.sh go run build/ci.go install ./cmd/geth
+ build/env.sh go run build/ci.go install ./cmd/efsn
@echo "Done building."
@echo "Run \"$(GOBIN)/geth\" to launch geth."
debug:
# https://ethereum.stackexchange.com/questions/41489/how-to-debug-geth-with-delve?rq=1
@echo building debug version
- build/env.sh go build -o ./build/bin/geth -gcflags=all='-N -l' -v ./cmd/geth
+ build/env.sh go build -o ./build/bin/efsn -gcflags=all='-N -l' -v ./cmd/efsn
@echo end building debug version
- @echo "Run \"$(GOBIN)/geth\" to launch geth."
+ @echo "Run \"$(GOBIN)/efsn\" to launch geth."
swarm:
build/env.sh go run build/ci.go install ./cmd/swarm
diff --git a/accounts/abi/bind/template.go b/accounts/abi/bind/template.go
index aaa5a541..54fd75c8 100644
--- a/accounts/abi/bind/template.go
+++ b/accounts/abi/bind/template.go
@@ -427,8 +427,8 @@ const tmplSourceJava = `
package {{.Package}};
-import org.ethereum.geth.*;
-import org.ethereum.geth.internal.*;
+import org.ethereum.efsn.*;
+import org.ethereum.efsn.internal.*;
{{range $contract := .Contracts}}
public class {{.Type}} {
diff --git a/accounts/keystore/keystore_plain_test.go b/accounts/keystore/keystore_plain_test.go
index 57d0f920..eda40b9e 100644
--- a/accounts/keystore/keystore_plain_test.go
+++ b/accounts/keystore/keystore_plain_test.go
@@ -32,7 +32,7 @@ import (
)
func tmpKeyStoreIface(t *testing.T, encrypted bool) (dir string, ks keyStore) {
- d, err := ioutil.TempDir("", "geth-keystore-test")
+ d, err := ioutil.TempDir("", "efsn-keystore-test")
if err != nil {
t.Fatal(err)
}
diff --git a/build/ci.go b/build/ci.go
index e39f7c3e..46949520 100644
--- a/build/ci.go
+++ b/build/ci.go
@@ -64,19 +64,19 @@ import (
)
var (
- // Files that end up in the geth*.zip archive.
+ // Files that end up in the efsn*.zip archive.
gethArchiveFiles = []string{
"COPYING",
- executablePath("geth"),
+ executablePath("efsn"),
}
- // Files that end up in the geth-alltools*.zip archive.
+ // Files that end up in the efsn-alltools*.zip archive.
allToolsArchiveFiles = []string{
"COPYING",
executablePath("abigen"),
executablePath("bootnode"),
executablePath("evm"),
- executablePath("geth"),
+ executablePath("efsn"),
executablePath("puppeth"),
executablePath("rlpdump"),
executablePath("wnode"),
@@ -103,7 +103,7 @@ var (
Description: "Developer utility version of the EVM (Ethereum Virtual Machine) that is capable of running bytecode snippets within a configurable environment and execution mode.",
},
{
- BinaryName: "geth",
+ BinaryName: "efsn",
Description: "Ethereum CLI client.",
},
{
@@ -406,8 +406,8 @@ func doArchive(cmdline []string) {
env = build.Env()
basegeth = archiveBasename(*arch, params.ArchiveVersion(env.Commit))
- geth = "geth-" + basegeth + ext
- alltools = "geth-alltools-" + basegeth + ext
+ geth = "efsn-" + basegeth + ext
+ alltools = "efsn-alltools-" + basegeth + ext
baseswarm = archiveBasename(*arch, sv.ArchiveVersion(env.Commit))
swarm = "swarm-" + baseswarm + ext
@@ -539,7 +539,7 @@ func makeWorkdir(wdflag string) string {
if wdflag != "" {
err = os.MkdirAll(wdflag, 0744)
} else {
- wdflag, err = ioutil.TempDir("", "geth-build-")
+ wdflag, err = ioutil.TempDir("", "efsn-build-")
}
if err != nil {
log.Fatal(err)
@@ -714,7 +714,7 @@ func doWindowsInstaller(cmdline []string) {
continue
}
allTools = append(allTools, filepath.Base(file))
- if filepath.Base(file) == "geth.exe" {
+ if filepath.Base(file) == "efsn.exe" {
gethTool = file
} else {
devTools = append(devTools, file)
@@ -722,13 +722,13 @@ func doWindowsInstaller(cmdline []string) {
}
// Render NSIS scripts: Installer NSIS contains two installer sections,
- // first section contains the geth binary, second section holds the dev tools.
+ // first section contains the efsn binary, second section holds the dev tools.
templateData := map[string]interface{}{
"License": "COPYING",
"Geth": gethTool,
"DevTools": devTools,
}
- build.Render("build/nsis.geth.nsi", filepath.Join(*workdir, "geth.nsi"), 0644, nil)
+ build.Render("build/nsis.efsn.nsi", filepath.Join(*workdir, "efsn.nsi"), 0644, nil)
build.Render("build/nsis.install.nsh", filepath.Join(*workdir, "install.nsh"), 0644, templateData)
build.Render("build/nsis.uninstall.nsh", filepath.Join(*workdir, "uninstall.nsh"), 0644, allTools)
build.Render("build/nsis.pathupdate.nsh", filepath.Join(*workdir, "PathUpdate.nsh"), 0644, nil)
@@ -743,14 +743,14 @@ func doWindowsInstaller(cmdline []string) {
if env.Commit != "" {
version[2] += "-" + env.Commit[:8]
}
- installer, _ := filepath.Abs("geth-" + archiveBasename(*arch, params.ArchiveVersion(env.Commit)) + ".exe")
+ installer, _ := filepath.Abs("efsn-" + archiveBasename(*arch, params.ArchiveVersion(env.Commit)) + ".exe")
build.MustRunCommand("makensis.exe",
"/DOUTPUTFILE="+installer,
"/DMAJORVERSION="+version[0],
"/DMINORVERSION="+version[1],
"/DBUILDVERSION="+version[2],
"/DARCH="+*arch,
- filepath.Join(*workdir, "geth.nsi"),
+ filepath.Join(*workdir, "efsn.nsi"),
)
// Sign and publish installer.
@@ -785,7 +785,7 @@ func doAndroidArchive(cmdline []string) {
if *local {
// If we're building locally, copy bundle to build dir and skip Maven
- os.Rename("geth.aar", filepath.Join(GOBIN, "geth.aar"))
+ os.Rename("efsn.aar", filepath.Join(GOBIN, "efsn.aar"))
return
}
meta := newMavenMetadata(env)
@@ -795,8 +795,8 @@ func doAndroidArchive(cmdline []string) {
maybeSkipArchive(env)
// Sign and upload the archive to Azure
- archive := "geth-" + archiveBasename("android", params.ArchiveVersion(env.Commit)) + ".aar"
- os.Rename("geth.aar", archive)
+ archive := "efsn-" + archiveBasename("android", params.ArchiveVersion(env.Commit)) + ".aar"
+ os.Rename("efsn.aar", archive)
if err := archiveUpload(archive, *upload, *signer); err != nil {
log.Fatal(err)
@@ -886,7 +886,7 @@ func newMavenMetadata(env build.Environment) mavenMetadata {
}
return mavenMetadata{
Version: version,
- Package: "geth-" + version,
+ Package: "efsn-" + version,
Develop: isUnstableBuild(env),
Contributors: contribs,
}
@@ -915,7 +915,7 @@ func doXCodeFramework(cmdline []string) {
build.MustRun(bind)
return
}
- archive := "geth-" + archiveBasename("ios", params.ArchiveVersion(env.Commit))
+ archive := "efsn-" + archiveBasename("ios", params.ArchiveVersion(env.Commit))
if err := os.Mkdir(archive, os.ModePerm); err != nil {
log.Fatal(err)
}
diff --git a/circle.yml b/circle.yml
index 732bf021..5c2f378f 100644
--- a/circle.yml
+++ b/circle.yml
@@ -24,9 +24,9 @@ dependencies:
test:
override:
# Build Geth and move into a known folder
- - make geth
- - cp ./build/bin/geth $HOME/geth
+ - make efsn
+ - cp ./build/bin/efsn $HOME/efsn
# Run hive and move all generated logs into the public artifacts folder
- - (cd ~/.go_workspace/src/github.com/karalabe/hive && hive --docker-noshell --client=efsn:local --override=$HOME/geth --test=. --sim=.)
+ - (cd ~/.go_workspace/src/github.com/karalabe/hive && hive --docker-noshell --client=efsn:local --override=$HOME/efsn --test=. --sim=.)
- cp -r ~/.go_workspace/src/github.com/karalabe/hive/workspace/logs/* $CIRCLE_ARTIFACTS
diff --git a/cmd/geth/accountcmd.go b/cmd/efsn/accountcmd.go
similarity index 97%
rename from cmd/geth/accountcmd.go
rename to cmd/efsn/accountcmd.go
index e8d346c6..ce348fb6 100644
--- a/cmd/geth/accountcmd.go
+++ b/cmd/efsn/accountcmd.go
@@ -36,7 +36,7 @@ var (
ArgsUsage: "",
Category: "ACCOUNT COMMANDS",
Description: `
- geth wallet import /path/to/my/presale.wallet
+ efsn wallet import /path/to/my/presale.wallet
will prompt for your password and imports your ether presale account.
It can be used non-interactively with the --password option taking a
@@ -56,7 +56,7 @@ passwordfile as argument containing the wallet password in plaintext.`,
utils.LightKDFFlag,
},
Description: `
- geth wallet [options] /path/to/my/presale.wallet
+ efsn wallet [options] /path/to/my/presale.wallet
will prompt for your password and imports your ether presale account.
It can be used non-interactively with the --password option taking a
@@ -112,7 +112,7 @@ Print a short summary of all accounts`,
utils.LightKDFFlag,
},
Description: `
- geth account new
+ efsn account new
Creates a new account and prints the address.
@@ -137,7 +137,7 @@ password to file or expose in any other way.
utils.LightKDFFlag,
},
Description: `
- geth account update
+ efsn account update
Update an existing account.
@@ -149,7 +149,7 @@ format to the newest format or change the password for an account.
For non-interactive use the passphrase can be specified with the --password flag:
- geth account update [options]
+ efsn account update [options]
Since only one password can be given, only format update can be performed,
changing your password is only possible interactively.
@@ -167,7 +167,7 @@ changing your password is only possible interactively.
},
ArgsUsage: "",
Description: `
- geth account import
+ efsn account import
Imports an unencrypted private key from and creates a new account.
Prints the address.
@@ -180,7 +180,7 @@ You must remember this passphrase to unlock your account in the future.
For non-interactive use the passphrase can be specified with the -password flag:
- geth account import [options]
+ efsn account import [options]
Note:
As you can directly copy your encrypted accounts to another ethereum instance,
diff --git a/cmd/geth/accountcmd_test.go b/cmd/efsn/accountcmd_test.go
similarity index 100%
rename from cmd/geth/accountcmd_test.go
rename to cmd/efsn/accountcmd_test.go
diff --git a/cmd/geth/bugcmd.go b/cmd/efsn/bugcmd.go
similarity index 98%
rename from cmd/geth/bugcmd.go
rename to cmd/efsn/bugcmd.go
index a93f650d..07b65c2b 100644
--- a/cmd/geth/bugcmd.go
+++ b/cmd/efsn/bugcmd.go
@@ -36,7 +36,7 @@ import (
var bugCommand = cli.Command{
Action: utils.MigrateFlags(reportBug),
Name: "bug",
- Usage: "opens a window to report a bug on the geth repo",
+ Usage: "opens a window to report a bug on the efsn repo",
ArgsUsage: " ",
Category: "MISCELLANEOUS COMMANDS",
}
diff --git a/cmd/geth/chaincmd.go b/cmd/efsn/chaincmd.go
similarity index 100%
rename from cmd/geth/chaincmd.go
rename to cmd/efsn/chaincmd.go
diff --git a/cmd/geth/config.go b/cmd/efsn/config.go
similarity index 99%
rename from cmd/geth/config.go
rename to cmd/efsn/config.go
index 520ced84..5627f2b4 100644
--- a/cmd/geth/config.go
+++ b/cmd/efsn/config.go
@@ -103,7 +103,7 @@ func defaultNodeConfig() node.Config {
cfg.Version = params.VersionWithCommit(gitCommit)
cfg.HTTPModules = append(cfg.HTTPModules, "eth", "shh")
cfg.WSModules = append(cfg.WSModules, "eth", "shh")
- cfg.IPCPath = "geth.ipc"
+ cfg.IPCPath = "efsn.ipc"
return cfg
}
diff --git a/cmd/geth/consolecmd.go b/cmd/efsn/consolecmd.go
similarity index 90%
rename from cmd/geth/consolecmd.go
rename to cmd/efsn/consolecmd.go
index 64115617..14ced20c 100644
--- a/cmd/geth/consolecmd.go
+++ b/cmd/efsn/consolecmd.go
@@ -57,7 +57,7 @@ See https://github.com/FusionFoundation/efsn/wiki/JavaScript-Console.`,
The Geth console is an interactive shell for the JavaScript runtime environment
which exposes a node admin interface as well as the Ðapp JavaScript API.
See https://github.com/FusionFoundation/efsn/wiki/JavaScript-Console.
-This command allows to open a console on a running geth node.`,
+This command allows to open a console on a running efsn node.`,
}
javascriptCommand = cli.Command{
@@ -73,7 +73,7 @@ JavaScript API. See https://github.com/FusionFoundation/efsn/wiki/JavaScript-Con
}
)
-// localConsole starts a new geth node, attaching a JavaScript console to it at the
+// localConsole starts a new efsn node, attaching a JavaScript console to it at the
// same time.
func localConsole(ctx *cli.Context) error {
// Create and start the node based on the CLI flags
@@ -84,7 +84,7 @@ func localConsole(ctx *cli.Context) error {
// Attach to the newly started node and start the JavaScript console
client, err := node.Attach()
if err != nil {
- utils.Fatalf("Failed to attach to the inproc geth: %v", err)
+ utils.Fatalf("Failed to attach to the inproc efsn: %v", err)
}
config := console.Config{
DataDir: utils.MakeDataDir(ctx),
@@ -111,10 +111,10 @@ func localConsole(ctx *cli.Context) error {
return nil
}
-// remoteConsole will connect to a remote geth instance, attaching a JavaScript
+// remoteConsole will connect to a remote efsn instance, attaching a JavaScript
// console to it.
func remoteConsole(ctx *cli.Context) error {
- // Attach to a remotely running geth instance and start the JavaScript console
+ // Attach to a remotely running efsn instance and start the JavaScript console
endpoint := ctx.Args().First()
if endpoint == "" {
path := node.DefaultDataDir()
@@ -128,11 +128,11 @@ func remoteConsole(ctx *cli.Context) error {
path = filepath.Join(path, "rinkeby")
}
}
- endpoint = fmt.Sprintf("%s/geth.ipc", path)
+ endpoint = fmt.Sprintf("%s/efsn.ipc", path)
}
client, err := dialRPC(endpoint)
if err != nil {
- utils.Fatalf("Unable to attach to remote geth: %v", err)
+ utils.Fatalf("Unable to attach to remote efsn: %v", err)
}
config := console.Config{
DataDir: utils.MakeDataDir(ctx),
@@ -161,19 +161,19 @@ func remoteConsole(ctx *cli.Context) error {
// dialRPC returns a RPC client which connects to the given endpoint.
// The check for empty endpoint implements the defaulting logic
-// for "geth attach" and "geth monitor" with no argument.
+// for "efsn attach" and "efsn monitor" with no argument.
func dialRPC(endpoint string) (*rpc.Client, error) {
if endpoint == "" {
endpoint = node.DefaultIPCEndpoint(clientIdentifier)
} else if strings.HasPrefix(endpoint, "rpc:") || strings.HasPrefix(endpoint, "ipc:") {
- // Backwards compatibility with geth < 1.5 which required
+ // Backwards compatibility with efsn < 1.5 which required
// these prefixes.
endpoint = endpoint[4:]
}
return rpc.Dial(endpoint)
}
-// ephemeralConsole starts a new geth node, attaches an ephemeral JavaScript
+// ephemeralConsole starts a new efsn node, attaches an ephemeral JavaScript
// console to it, executes each of the files specified as arguments and tears
// everything down.
func ephemeralConsole(ctx *cli.Context) error {
@@ -185,7 +185,7 @@ func ephemeralConsole(ctx *cli.Context) error {
// Attach to the newly started node and start the JavaScript console
client, err := node.Attach()
if err != nil {
- utils.Fatalf("Failed to attach to the inproc geth: %v", err)
+ utils.Fatalf("Failed to attach to the inproc efsn: %v", err)
}
config := console.Config{
DataDir: utils.MakeDataDir(ctx),
diff --git a/cmd/geth/consolecmd_test.go b/cmd/efsn/consolecmd_test.go
similarity index 97%
rename from cmd/geth/consolecmd_test.go
rename to cmd/efsn/consolecmd_test.go
index 2f0853cd..ae06a703 100644
--- a/cmd/geth/consolecmd_test.go
+++ b/cmd/efsn/consolecmd_test.go
@@ -40,7 +40,7 @@ const (
func TestConsoleWelcome(t *testing.T) {
coinbase := "0x8605cdbbdb6d264aa742e77020dcbc58fcdce182"
- // Start a geth console, make sure it's cleaned up and terminate the console
+ // Start a efsn console, make sure it's cleaned up and terminate the console
geth := runGeth(t,
"--port", "0", "--maxpeers", "0", "--nodiscover", "--nat", "none",
"--etherbase", coinbase, "--shh",
@@ -79,7 +79,7 @@ func TestIPCAttachWelcome(t *testing.T) {
} else {
ws := tmpdir(t)
defer os.RemoveAll(ws)
- ipc = filepath.Join(ws, "geth.ipc")
+ ipc = filepath.Join(ws, "efsn.ipc")
}
// Note: we need --shh because testAttachWelcome checks for default
// list of ipc modules and shh is included there.
@@ -124,7 +124,7 @@ func TestWSAttachWelcome(t *testing.T) {
}
func testAttachWelcome(t *testing.T, geth *testgeth, endpoint, apis string) {
- // Attach to a running geth note and terminate immediately
+ // Attach to a running efsn note and terminate immediately
attach := runGeth(t, "attach", endpoint)
defer attach.ExpectExit()
attach.CloseStdin()
diff --git a/cmd/geth/dao_test.go b/cmd/efsn/dao_test.go
similarity index 99%
rename from cmd/geth/dao_test.go
rename to cmd/efsn/dao_test.go
index 988edd37..94b28ba5 100644
--- a/cmd/geth/dao_test.go
+++ b/cmd/efsn/dao_test.go
@@ -120,7 +120,7 @@ func testDAOForkBlockNewChain(t *testing.T, test int, genesis string, expectBloc
geth.WaitExit()
}
// Retrieve the DAO config flag from the database
- path := filepath.Join(datadir, "geth", "chaindata")
+ path := filepath.Join(datadir, "efsn", "chaindata")
db, err := ethdb.NewLDBDatabase(path, 0, 0)
if err != nil {
t.Fatalf("test %d: failed to open test database: %v", test, err)
diff --git a/cmd/geth/genesis_test.go b/cmd/efsn/genesis_test.go
similarity index 100%
rename from cmd/geth/genesis_test.go
rename to cmd/efsn/genesis_test.go
diff --git a/cmd/geth/main.go b/cmd/efsn/main.go
similarity index 98%
rename from cmd/geth/main.go
rename to cmd/efsn/main.go
index 157346a6..044c3a9e 100644
--- a/cmd/geth/main.go
+++ b/cmd/efsn/main.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with go-ethereum. If not, see .
-// geth is the official command-line client for Ethereum.
+// efsn is the official command-line client for Ethereum.
package main
import (
@@ -43,7 +43,7 @@ import (
)
const (
- clientIdentifier = "geth" // Client identifier to advertise over the network
+ clientIdentifier = "efsn" // Client identifier to advertise over the network
)
var (
@@ -254,7 +254,7 @@ func main() {
}
}
-// geth is the main entry point into the system if no special subcommand is ran.
+// efsn is the main entry point into the system if no special subcommand is ran.
// It creates a default node based on the command line arguments and runs it in
// blocking mode, waiting for it to be shut down.
func geth(ctx *cli.Context) error {
diff --git a/cmd/geth/misccmd.go b/cmd/efsn/misccmd.go
similarity index 95%
rename from cmd/geth/misccmd.go
rename to cmd/efsn/misccmd.go
index 6e0ca42c..cfc313a9 100644
--- a/cmd/geth/misccmd.go
+++ b/cmd/efsn/misccmd.go
@@ -80,7 +80,7 @@ The output of this command is supposed to be machine-readable.
func makecache(ctx *cli.Context) error {
args := ctx.Args()
if len(args) != 2 {
- utils.Fatalf(`Usage: geth makecache `)
+ utils.Fatalf(`Usage: efsn makecache `)
}
block, err := strconv.ParseUint(args[0], 0, 64)
if err != nil {
@@ -95,7 +95,7 @@ func makecache(ctx *cli.Context) error {
func makedag(ctx *cli.Context) error {
args := ctx.Args()
if len(args) != 2 {
- utils.Fatalf(`Usage: geth makedag `)
+ utils.Fatalf(`Usage: efsn makedag `)
}
block, err := strconv.ParseUint(args[0], 0, 64)
if err != nil {
@@ -134,6 +134,6 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
-along with geth. If not, see .`)
+along with efsn. If not, see .`)
return nil
}
diff --git a/cmd/geth/monitorcmd.go b/cmd/efsn/monitorcmd.go
similarity index 98%
rename from cmd/geth/monitorcmd.go
rename to cmd/efsn/monitorcmd.go
index 9b914c71..6a0ee4e8 100644
--- a/cmd/geth/monitorcmd.go
+++ b/cmd/efsn/monitorcmd.go
@@ -76,7 +76,7 @@ func monitor(ctx *cli.Context) error {
// Attach to an Ethereum node over IPC or RPC
endpoint := ctx.String(monitorCommandAttachFlag.Name)
if client, err = dialRPC(endpoint); err != nil {
- utils.Fatalf("Unable to attach to geth node: %v", err)
+ utils.Fatalf("Unable to attach to efsn node: %v", err)
}
defer client.Close()
@@ -93,7 +93,7 @@ func monitor(ctx *cli.Context) error {
if len(list) > 0 {
utils.Fatalf("No metrics specified.\n\nAvailable:\n - %s", strings.Join(list, "\n - "))
} else {
- utils.Fatalf("No metrics collected by geth (--%s).\n", utils.MetricsEnabledFlag.Name)
+ utils.Fatalf("No metrics collected by efsn (--%s).\n", utils.MetricsEnabledFlag.Name)
}
}
sort.Strings(monitored)
@@ -158,7 +158,7 @@ func monitor(ctx *cli.Context) error {
return nil
}
-// retrieveMetrics contacts the attached geth node and retrieves the entire set
+// retrieveMetrics contacts the attached efsn node and retrieves the entire set
// of collected system metrics.
func retrieveMetrics(client *rpc.Client) (map[string]interface{}, error) {
var metrics map[string]interface{}
diff --git a/cmd/geth/run_test.go b/cmd/efsn/run_test.go
similarity index 87%
rename from cmd/geth/run_test.go
rename to cmd/efsn/run_test.go
index ad8d874c..03d20ed4 100644
--- a/cmd/geth/run_test.go
+++ b/cmd/efsn/run_test.go
@@ -27,7 +27,7 @@ import (
)
func tmpdir(t *testing.T) string {
- dir, err := ioutil.TempDir("", "geth-test")
+ dir, err := ioutil.TempDir("", "efsn-test")
if err != nil {
t.Fatal(err)
}
@@ -43,8 +43,8 @@ type testgeth struct {
}
func init() {
- // Run the app if we've been exec'd as "geth-test" in runGeth.
- reexec.Register("geth-test", func() {
+ // Run the app if we've been exec'd as "efsn-test" in runGeth.
+ reexec.Register("efsn-test", func() {
if err := app.Run(os.Args); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
@@ -61,7 +61,7 @@ func TestMain(m *testing.M) {
os.Exit(m.Run())
}
-// spawns geth with the given command line args. If the args don't set --datadir, the
+// spawns efsn with the given command line args. If the args don't set --datadir, the
// child g gets a temporary data directory.
func runGeth(t *testing.T, args ...string) *testgeth {
tt := &testgeth{}
@@ -90,9 +90,9 @@ func runGeth(t *testing.T, args ...string) *testgeth {
}()
}
- // Boot "geth". This actually runs the test binary but the TestMain
+ // Boot "efsn". This actually runs the test binary but the TestMain
// function will prevent any tests from running.
- tt.Run("geth-test", args...)
+ tt.Run("efsn-test", args...)
return tt
}
diff --git a/cmd/geth/testdata/empty.js b/cmd/efsn/testdata/empty.js
similarity index 100%
rename from cmd/geth/testdata/empty.js
rename to cmd/efsn/testdata/empty.js
diff --git a/cmd/geth/testdata/guswallet.json b/cmd/efsn/testdata/guswallet.json
similarity index 100%
rename from cmd/geth/testdata/guswallet.json
rename to cmd/efsn/testdata/guswallet.json
diff --git a/cmd/geth/testdata/passwords.txt b/cmd/efsn/testdata/passwords.txt
similarity index 100%
rename from cmd/geth/testdata/passwords.txt
rename to cmd/efsn/testdata/passwords.txt
diff --git a/cmd/geth/testdata/wrong-passwords.txt b/cmd/efsn/testdata/wrong-passwords.txt
similarity index 100%
rename from cmd/geth/testdata/wrong-passwords.txt
rename to cmd/efsn/testdata/wrong-passwords.txt
diff --git a/cmd/geth/usage.go b/cmd/efsn/usage.go
similarity index 99%
rename from cmd/geth/usage.go
rename to cmd/efsn/usage.go
index 5497e7b9..11de37aa 100644
--- a/cmd/geth/usage.go
+++ b/cmd/efsn/usage.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with go-ethereum. If not, see .
-// Contains the geth command usage template and generator.
+// Contains the efsn command usage template and generator.
package main
diff --git a/cmd/faucet/faucet.go b/cmd/faucet/faucet.go
index e02eda55..f1a323d4 100644
--- a/cmd/faucet/faucet.go
+++ b/cmd/faucet/faucet.go
@@ -212,7 +212,7 @@ type faucet struct {
func newFaucet(genesis *core.Genesis, port int, enodes []*discv5.Node, network uint64, stats string, ks *keystore.KeyStore, index []byte) (*faucet, error) {
// Assemble the raw devp2p protocol stack
stack, err := node.New(&node.Config{
- Name: "geth",
+ Name: "efsn",
Version: params.VersionWithMeta,
DataDir: filepath.Join(os.Getenv("HOME"), ".faucet"),
P2P: p2p.Config{
diff --git a/cmd/puppeth/module_dashboard.go b/cmd/puppeth/module_dashboard.go
index e5f24e4b..8226a056 100644
--- a/cmd/puppeth/module_dashboard.go
+++ b/cmd/puppeth/module_dashboard.go
@@ -84,7 +84,7 @@ var dashboardContent = `
{{if .FaucetPage}}{{end}}
- You can download Geth from https://geth.ethereum.org/downloads/.
+ You can download Geth from https://efsn.ethereum.org/downloads/.
@@ -176,11 +176,11 @@ var dashboardContent = `
Initial processing required to synchronize is light, as it only verifies the validity of the headers; similarly required disk capacity is small, tallying around 500 bytes per header. Embedded machines with arbitrary storage, low power CPUs and 128MB+ RAM may work.
To run an embedded node, download {{.GethGenesis}}
and start Geth with:
-
geth --datadir=$HOME/.{{.Network}} init {{.GethGenesis}}
- geth --networkid={{.NetworkID}} --datadir=$HOME/.{{.Network}} --cache=16 --ethash.cachesinmem=1 --syncmode=light{{if .Ethstats}} --ethstats='{{.Ethstats}}'{{end}} --bootnodes={{.BootnodesFlat}}
+ efsn --datadir=$HOME/.{{.Network}} init {{.GethGenesis}}
+ efsn --networkid={{.NetworkID}} --datadir=$HOME/.{{.Network}} --cache=16 --ethash.cachesinmem=1 --syncmode=light{{if .Ethstats}} --ethstats='{{.Ethstats}}'{{end}} --bootnodes={{.BootnodesFlat}}
- You can download Geth from https://geth.ethereum.org/downloads/.
+ You can download Geth from https://efsn.ethereum.org/downloads/.
@@ -205,10 +205,10 @@ var dashboardContent = `
Under the hood the wallet is backed by a go-ethereum full node, meaning that a mid range machine is assumed. Similarly, synchronization is based on fast-sync, which will download all blockchain data from the network and make it available to the wallet. Light nodes cannot currently fully back the wallet, but it's a target actively pursued.
To connect with the Ethereum Wallet, you'll need to initialize your private network first via Geth as the wallet does not currently support calling Geth directly. To initialize your local chain, download {{.GethGenesis}}
and run:
-
geth --datadir=$HOME/.{{.Network}} init {{.GethGenesis}}
+ efsn --datadir=$HOME/.{{.Network}} init {{.GethGenesis}}
With your local chain initialized, you can start the Ethereum Wallet:
-
ethereumwallet --rpc $HOME/.{{.Network}}/geth.ipc --node-networkid={{.NetworkID}} --node-datadir=$HOME/.{{.Network}}{{if .Ethstats}} --node-ethstats='{{.Ethstats}}'{{end}} --node-bootnodes={{.BootnodesFlat}}
+ ethereumwallet --rpc $HOME/.{{.Network}}/efsn.ipc --node-networkid={{.NetworkID}} --node-datadir=$HOME/.{{.Network}}{{if .Ethstats}} --node-ethstats='{{.Ethstats}}'{{end}} --node-bootnodes={{.BootnodesFlat}}
You can download the Ethereum Wallet from https://github.com/ethereum/mist/releases.
@@ -226,10 +226,10 @@ var dashboardContent = `
Under the hood the browser is backed by a go-ethereum full node, meaning that a mid range machine is assumed. Similarly, synchronization is based on fast-sync, which will download all blockchain data from the network and make it available to the wallet. Light nodes cannot currently fully back the wallet, but it's a target actively pursued.
To connect with the Mist browser, you'll need to initialize your private network first via Geth as Mist does not currently support calling Geth directly. To initialize your local chain, download {{.GethGenesis}}
and run:
-
geth --datadir=$HOME/.{{.Network}} init {{.GethGenesis}}
+ efsn --datadir=$HOME/.{{.Network}} init {{.GethGenesis}}
With your local chain initialized, you can start Mist:
-
mist --rpc $HOME/.{{.Network}}/geth.ipc --node-networkid={{.NetworkID}} --node-datadir=$HOME/.{{.Network}}{{if .Ethstats}} --node-ethstats='{{.Ethstats}}'{{end}} --node-bootnodes={{.BootnodesFlat}}
+ mist --rpc $HOME/.{{.Network}}/efsn.ipc --node-networkid={{.NetworkID}} --node-datadir=$HOME/.{{.Network}}{{if .Ethstats}} --node-ethstats='{{.Ethstats}}'{{end}} --node-bootnodes={{.BootnodesFlat}}
You can download the Mist browser from https://github.com/ethereum/mist/releases.
@@ -258,8 +258,8 @@ var dashboardContent = `
The stable Android archives are distributed via Maven Central, and the develop snapshots via the Sonatype repositories. Before proceeding, please ensure you have a recent version configured in your Android project. You can find details in Mobile: Introduction – Android archive.
Before connecting to the Ethereum network, download the {{.GethGenesis}}
genesis json file and either store it in your Android project as a resource file you can access, or save it as a string in a variable. You're going to need to to initialize your client.
- Inside your Java code you can now import the geth archive and connect to Ethereum:
-
import org.ethereum.geth.*;
+ Inside your Java code you can now import the efsn archive and connect to Ethereum:
+
import org.ethereum.efsn.*;
Enodes bootnodes = new Enodes();{{range .Bootnodes}}
bootnodes.append(new Enode("{{.}}"));{{end}}
@@ -289,7 +289,7 @@ node.start();
Both stable and develop builds of the iOS framework are available via CocoaPods. Before proceeding, please ensure you have a recent version configured in your iOS project. You can find details in Mobile: Introduction – iOS framework.
Before connecting to the Ethereum network, download the {{.GethGenesis}}
genesis json file and either store it in your iOS project as a resource file you can access, or save it as a string in a variable. You're going to need to to initialize your client.
- Inside your Swift code you can now import the geth framework and connect to Ethereum (ObjC should be analogous):
+
Inside your Swift code you can now import the efsn framework and connect to Ethereum (ObjC should be analogous):
import Geth
var error: NSError?
@@ -419,7 +419,7 @@ try! node?.start();
Puppeth is a tool to aid you in creating a new Ethereum network down to the genesis block, bootnodes, signers, ethstats server, crypto faucet, wallet browsers, block explorer, dashboard and more; without the hassle that it would normally entail to manually configure all these services one by one.
Puppeth uses ssh to dial in to remote servers, and builds its network components out of docker containers using docker-compose. The user is guided through the process via a command line wizard that does the heavy lifting and topology configuration automatically behind the scenes.
- Puppeth is distributed as part of the Geth & Tools bundles, but can also be installed separately via:
go get github.com/FusionFoundation/efsn/cmd/puppeth
+ Puppeth is distributed as part of the Geth & Tools bundles, but can also be installed separately via:
go get github.com/FusionFoundation/efsn/cmd/puppeth
Copyright 2017. The go-ethereum Authors.
@@ -445,7 +445,7 @@ try! node?.start();
window.location.hash = hash;
// Fade out all possible pages (yes, ugly, no, don't care)
- $("#geth").fadeOut(300)
+ $("#efsn").fadeOut(300)
$("#mist").fadeOut(300)
$("#mobile").fadeOut(300)
$("#other").fadeOut(300)
diff --git a/cmd/puppeth/module_node.go b/cmd/puppeth/module_node.go
index 950fa34f..8ebe917b 100644
--- a/cmd/puppeth/module_node.go
+++ b/cmd/puppeth/module_node.go
@@ -40,11 +40,11 @@ ADD genesis.json /genesis.json
ADD signer.pass /signer.pass
{{end}}
RUN \
- echo 'geth --cache 512 init /genesis.json' > geth.sh && \{{if .Unlock}}
- echo 'mkdir -p /root/.ethereum/keystore/ && cp /signer.json /root/.ethereum/keystore/' >> geth.sh && \{{end}}
- echo $'exec geth --networkid {{.NetworkID}} --cache 512 --port {{.Port}} --maxpeers {{.Peers}} {{.LightFlag}} --ethstats \'{{.Ethstats}}\' {{if .Bootnodes}}--bootnodes {{.Bootnodes}}{{end}} {{if .Etherbase}}--miner.etherbase {{.Etherbase}} --mine --miner.threads 1{{end}} {{if .Unlock}}--unlock 0 --password /signer.pass --mine{{end}} --miner.gastarget {{.GasTarget}} --miner.gaslimit {{.GasLimit}} --miner.gasprice {{.GasPrice}}' >> geth.sh
+ echo 'efsn --cache 512 init /genesis.json' > efsn.sh && \{{if .Unlock}}
+ echo 'mkdir -p /root/.ethereum/keystore/ && cp /signer.json /root/.ethereum/keystore/' >> efsn.sh && \{{end}}
+ echo $'exec efsn --networkid {{.NetworkID}} --cache 512 --port {{.Port}} --maxpeers {{.Peers}} {{.LightFlag}} --ethstats \'{{.Ethstats}}\' {{if .Bootnodes}}--bootnodes {{.Bootnodes}}{{end}} {{if .Etherbase}}--miner.etherbase {{.Etherbase}} --mine --miner.threads 1{{end}} {{if .Unlock}}--unlock 0 --password /signer.pass --mine{{end}} --miner.gastarget {{.GasTarget}} --miner.gaslimit {{.GasLimit}} --miner.gasprice {{.GasPrice}}' >> efsn.sh
-ENTRYPOINT ["/bin/sh", "geth.sh"]
+ENTRYPOINT ["/bin/sh", "efsn.sh"]
`
// nodeComposefile is the docker-compose.yml file required to deploy and maintain
@@ -227,7 +227,7 @@ func checkNode(client *sshClient, network string, boot bool) (*nodeInfos, error)
// Container available, retrieve its node ID and its genesis json
var out []byte
- if out, err = client.Run(fmt.Sprintf("docker exec %s_%s_1 geth --exec admin.nodeInfo.id --cache=16 attach", network, kind)); err != nil {
+ if out, err = client.Run(fmt.Sprintf("docker exec %s_%s_1 efsn --exec admin.nodeInfo.id --cache=16 attach", network, kind)); err != nil {
return nil, ErrServiceUnreachable
}
id := bytes.Trim(bytes.TrimSpace(out), "\"")
diff --git a/cmd/puppeth/module_wallet.go b/cmd/puppeth/module_wallet.go
index a10cb069..8a2fbc88 100644
--- a/cmd/puppeth/module_wallet.go
+++ b/cmd/puppeth/module_wallet.go
@@ -36,8 +36,8 @@ ADD genesis.json /genesis.json
RUN \
echo 'node server.js &' > wallet.sh && \
- echo 'geth --cache 512 init /genesis.json' >> wallet.sh && \
- echo $'exec geth --networkid {{.NetworkID}} --port {{.NodePort}} --bootnodes {{.Bootnodes}} --ethstats \'{{.Ethstats}}\' --cache=512 --rpc --rpcaddr=0.0.0.0 --rpccorsdomain "*" --rpcvhosts "*"' >> wallet.sh
+ echo 'efsn --cache 512 init /genesis.json' >> wallet.sh && \
+ echo $'exec efsn --networkid {{.NetworkID}} --port {{.NodePort}} --bootnodes {{.Bootnodes}} --ethstats \'{{.Ethstats}}\' --cache=512 --rpc --rpcaddr=0.0.0.0 --rpccorsdomain "*" --rpcvhosts "*"' >> wallet.sh
RUN \
sed -i 's/PuppethNetworkID/{{.NetworkID}}/g' dist/js/etherwallet-master.js && \
diff --git a/cmd/swarm/config.go b/cmd/swarm/config.go
index 0fc00807..225c62d6 100644
--- a/cmd/swarm/config.go
+++ b/cmd/swarm/config.go
@@ -123,7 +123,7 @@ func initSwarmNode(config *bzzapi.Config, stack *node.Node, ctx *cli.Context) {
//at this point, all vars should be set in the Config
//get the account for the provided swarm account
prvkey := getAccount(config.BzzAccount, ctx, stack)
- //set the resolved config path (geth --datadir)
+ //set the resolved config path (efsn --datadir)
config.Path = stack.InstanceDir()
//finally, initialize the configuration
config.Init(prvkey)
diff --git a/cmd/swarm/config_test.go b/cmd/swarm/config_test.go
index 4e9be240..aca65784 100644
--- a/cmd/swarm/config_test.go
+++ b/cmd/swarm/config_test.go
@@ -473,7 +473,7 @@ func TestValidateConfig(t *testing.T) {
}{
{
cfg: &api.Config{EnsAPIs: []string{
- "/data/testnet/geth.ipc",
+ "/data/testnet/efsn.ipc",
}},
},
{
@@ -488,7 +488,7 @@ func TestValidateConfig(t *testing.T) {
},
{
cfg: &api.Config{EnsAPIs: []string{
- "test:/data/testnet/geth.ipc",
+ "test:/data/testnet/efsn.ipc",
}},
},
{
@@ -498,7 +498,7 @@ func TestValidateConfig(t *testing.T) {
},
{
cfg: &api.Config{EnsAPIs: []string{
- "314159265dD8dbb310642f98f50C066173C1259b@/data/testnet/geth.ipc",
+ "314159265dD8dbb310642f98f50C066173C1259b@/data/testnet/efsn.ipc",
}},
},
{
@@ -513,7 +513,7 @@ func TestValidateConfig(t *testing.T) {
},
{
cfg: &api.Config{EnsAPIs: []string{
- "test:314159265dD8dbb310642f98f50C066173C1259b@/data/testnet/geth.ipc",
+ "test:314159265dD8dbb310642f98f50C066173C1259b@/data/testnet/efsn.ipc",
}},
},
{
@@ -546,9 +546,9 @@ func TestValidateConfig(t *testing.T) {
},
{
cfg: &api.Config{EnsAPIs: []string{
- "@/data/testnet/geth.ipc",
+ "@/data/testnet/efsn.ipc",
}},
- err: "invalid format [tld:][contract-addr@]url for ENS API endpoint configuration \"@/data/testnet/geth.ipc\": missing contract address",
+ err: "invalid format [tld:][contract-addr@]url for ENS API endpoint configuration \"@/data/testnet/efsn.ipc\": missing contract address",
},
} {
err := validateConfig(c.cfg)
diff --git a/cmd/swarm/fs.go b/cmd/swarm/fs.go
index 30eae876..9c7bc3af 100644
--- a/cmd/swarm/fs.go
+++ b/cmd/swarm/fs.go
@@ -119,7 +119,7 @@ func dialRPC(ctx *cli.Context) (*rpc.Client, error) {
if endpoint == "" {
endpoint = node.DefaultIPCEndpoint(clientIdentifier)
} else if strings.HasPrefix(endpoint, "rpc:") || strings.HasPrefix(endpoint, "ipc:") {
- // Backwards compatibility with geth < 1.5 which required
+ // Backwards compatibility with efsn < 1.5 which required
// these prefixes.
endpoint = endpoint[4:]
}
diff --git a/cmd/swarm/main.go b/cmd/swarm/main.go
index 8deae8ab..90037280 100644
--- a/cmd/swarm/main.go
+++ b/cmd/swarm/main.go
@@ -227,7 +227,7 @@ var defaultSubcommandHelp = cli.Command{
var defaultNodeConfig = node.DefaultConfig
-// This init function sets defaults so cmd/swarm can run alongside geth.
+// This init function sets defaults so cmd/swarm can run alongside efsn.
func init() {
defaultNodeConfig.Name = clientIdentifier
defaultNodeConfig.Version = sv.VersionWithCommit(gitCommit)
@@ -605,9 +605,9 @@ func bzzd(ctx *cli.Context) error {
//pss operates on ws
cfg.WSModules = append(cfg.WSModules, "pss")
- //geth only supports --datadir via command line
+ //efsn only supports --datadir via command line
//in order to be consistent within swarm, if we pass --datadir via environment variable
- //or via config file, we get the same directory for geth and swarm
+ //or via config file, we get the same directory for efsn and swarm
if _, err := os.Stat(bzzconfig.Path); err == nil {
cfg.DataDir = bzzconfig.Path
}
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go
index 3f6dc1fe..b92ceca1 100644
--- a/cmd/utils/flags.go
+++ b/cmd/utils/flags.go
@@ -585,7 +585,7 @@ var (
MetricsInfluxDBDatabaseFlag = cli.StringFlag{
Name: "metrics.influxdb.database",
Usage: "InfluxDB database name to push reported metrics to",
- Value: "geth",
+ Value: "efsn",
}
MetricsInfluxDBUsernameFlag = cli.StringFlag{
Name: "metrics.influxdb.username",
@@ -834,7 +834,7 @@ func MakeAddress(ks *keystore.KeyStore, account string) (accounts.Account, error
log.Warn("-------------------------------------------------------------------")
log.Warn("Referring to accounts by order in the keystore folder is dangerous!")
log.Warn("This functionality is deprecated and will be removed in the future!")
- log.Warn("Please use explicit addresses! (can search via `geth account list`)")
+ log.Warn("Please use explicit addresses! (can search via `efsn account list`)")
log.Warn("-------------------------------------------------------------------")
accs := ks.Accounts()
@@ -1298,7 +1298,7 @@ func SetupMetrics(ctx *cli.Context) {
if enableExport {
log.Info("Enabling metrics export to InfluxDB")
- go influxdb.InfluxDBWithTags(metrics.DefaultRegistry, 10*time.Second, endpoint, database, username, password, "geth.", map[string]string{
+ go influxdb.InfluxDBWithTags(metrics.DefaultRegistry, 10*time.Second, endpoint, database, username, password, "efsn.", map[string]string{
"host": hosttag,
})
}
@@ -1400,11 +1400,11 @@ func MakeConsolePreloads(ctx *cli.Context) []string {
// This is a temporary function used for migrating old command/flags to the
// new format.
//
-// e.g. geth account new --keystore /tmp/mykeystore --lightkdf
+// e.g. efsn account new --keystore /tmp/mykeystore --lightkdf
//
// is equivalent after calling this method with:
//
-// geth --keystore /tmp/mykeystore --lightkdf account new
+// efsn --keystore /tmp/mykeystore --lightkdf account new
//
// This allows the use of the existing configuration functionality.
// When all flags are migrated this function can be removed and the existing
diff --git a/core/genesis.go b/core/genesis.go
index a7805841..5861a4a5 100644
--- a/core/genesis.go
+++ b/core/genesis.go
@@ -336,7 +336,7 @@ func DefaultRinkebyGenesisBlock() *Genesis {
}
}
-// DeveloperGenesisBlock returns the 'geth --dev' genesis block. Note, this must
+// DeveloperGenesisBlock returns the 'efsn --dev' genesis block. Note, this must
// be seeded with the
func DeveloperGenesisBlock(period uint64, faucet common.Address) *Genesis {
// Override the default period to the user requested one
diff --git a/eth/backend.go b/eth/backend.go
index c86c9ded..71f8c6d3 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -192,7 +192,7 @@ func makeExtraData(extra []byte) []byte {
// create default extradata
extra, _ = rlp.EncodeToBytes([]interface{}{
uint(params.VersionMajor<<16 | params.VersionMinor<<8 | params.VersionPatch),
- "geth",
+ "efsn",
runtime.Version(),
runtime.GOOS,
})
diff --git a/eth/filters/bench_test.go b/eth/filters/bench_test.go
index 959ed35e..abc394eb 100644
--- a/eth/filters/bench_test.go
+++ b/eth/filters/bench_test.go
@@ -64,7 +64,7 @@ func BenchmarkBloomBits32k(b *testing.B) {
const benchFilterCnt = 2000
func benchmarkBloomBits(b *testing.B, sectionSize uint64) {
- benchDataDir := node.DefaultDataDir() + "/geth/chaindata"
+ benchDataDir := node.DefaultDataDir() + "/efsn/chaindata"
fmt.Println("Running bloombits benchmark section size:", sectionSize)
db, err := ethdb.NewLDBDatabase(benchDataDir, 128, 1024)
@@ -174,7 +174,7 @@ func clearBloomBits(db ethdb.Database) {
}
func BenchmarkNoBloomBits(b *testing.B) {
- benchDataDir := node.DefaultDataDir() + "/geth/chaindata"
+ benchDataDir := node.DefaultDataDir() + "/efsn/chaindata"
fmt.Println("Running benchmark without bloombits")
db, err := ethdb.NewLDBDatabase(benchDataDir, 128, 1024)
if err != nil {
diff --git a/internal/cmdtest/test_cmd.go b/internal/cmdtest/test_cmd.go
index 20e82ec2..9ba01316 100644
--- a/internal/cmdtest/test_cmd.go
+++ b/internal/cmdtest/test_cmd.go
@@ -53,7 +53,7 @@ type TestCmd struct {
}
// Run exec's the current binary using name as argv[0] which will trigger the
-// reexec init function for that name (e.g. "geth-test" in cmd/geth/run_test.go)
+// reexec init function for that name (e.g. "efsn-test" in cmd/efsn/run_test.go)
func (tt *TestCmd) Run(name string, args ...string) {
tt.stderr = &testlogger{t: tt.T}
tt.cmd = &exec.Cmd{
@@ -77,7 +77,7 @@ func (tt *TestCmd) Run(name string, args ...string) {
// InputLine writes the given text to the childs stdin.
// This method can also be called from an expect template, e.g.:
//
-// geth.expect(`Passphrase: {{.InputLine "password"}}`)
+// efsn.expect(`Passphrase: {{.InputLine "password"}}`)
func (tt *TestCmd) InputLine(s string) string {
io.WriteString(tt.stdin, s+"\n")
return ""
diff --git a/internal/web3ext/web3ext.go b/internal/web3ext/web3ext.go
index 42d001ef..2d6c3db4 100644
--- a/internal/web3ext/web3ext.go
+++ b/internal/web3ext/web3ext.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see .
-// package web3ext contains geth specific web3.js extensions.
+// package web3ext contains efsn specific web3.js extensions.
package web3ext
var Modules = map[string]string{
diff --git a/miner/stress_clique.go b/miner/stress_clique.go
index f16444c0..a190a069 100644
--- a/miner/stress_clique.go
+++ b/miner/stress_clique.go
@@ -182,7 +182,7 @@ func makeSealer(genesis *core.Genesis, nodes []string) (*node.Node, error) {
datadir, _ := ioutil.TempDir("", "")
config := &node.Config{
- Name: "geth",
+ Name: "efsn",
Version: params.Version,
DataDir: datadir,
P2P: p2p.Config{
diff --git a/miner/stress_ethash.go b/miner/stress_ethash.go
index 3f6ab5cf..44b2ec6b 100644
--- a/miner/stress_ethash.go
+++ b/miner/stress_ethash.go
@@ -160,7 +160,7 @@ func makeMiner(genesis *core.Genesis, nodes []string) (*node.Node, error) {
datadir, _ := ioutil.TempDir("", "")
config := &node.Config{
- Name: "geth",
+ Name: "efsn",
Version: params.Version,
DataDir: datadir,
P2P: p2p.Config{
diff --git a/mobile/android_test.go b/mobile/android_test.go
index 38b90b0c..d933fb56 100644
--- a/mobile/android_test.go
+++ b/mobile/android_test.go
@@ -40,7 +40,7 @@ import android.test.MoreAsserts;
import java.math.BigInteger;
import java.util.Arrays;
-import org.ethereum.geth.*;
+import org.ethereum.efsn.*;
public class AndroidTest extends InstrumentationTestCase {
public AndroidTest() {}
@@ -184,7 +184,7 @@ func TestAndroid(t *testing.T) {
t.Logf("initialization took %v", time.Since(start))
}
// Create and switch to a temporary workspace
- workspace, err := ioutil.TempDir("", "geth-android-")
+ workspace, err := ioutil.TempDir("", "efsn-android-")
if err != nil {
t.Fatalf("failed to create temporary workspace: %v", err)
}
@@ -212,7 +212,7 @@ func TestAndroid(t *testing.T) {
t.Logf("%s", output)
t.Fatalf("failed to run gomobile bind: %v", err)
}
- build.CopyFile(filepath.Join("libs", "geth.aar"), "geth.aar", os.ModePerm)
+ build.CopyFile(filepath.Join("libs", "efsn.aar"), "efsn.aar", os.ModePerm)
if err = ioutil.WriteFile(filepath.Join("src", "androidTest", "java", "org", "ethereum", "gethtest", "AndroidTest.java"), []byte(androidTestClass), os.ModePerm); err != nil {
t.Fatalf("failed to write Android test class: %v", err)
@@ -261,6 +261,6 @@ repositories {
}
dependencies {
compile 'com.android.support:appcompat-v7:19.0.0'
- compile(name: "geth", ext: "aar")
+ compile(name: "efsn", ext: "aar")
}
`
diff --git a/mobile/doc.go b/mobile/doc.go
index 64d47bec..2a053109 100644
--- a/mobile/doc.go
+++ b/mobile/doc.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see .
-// Package geth contains the simplified mobile APIs to go-ethereum.
+// Package efsn contains the simplified mobile APIs to go-ethereum.
//
// The scope of this package is *not* to allow writing a custom Ethereum client
// with pieces plucked from go-ethereum, rather to allow writing native dapps on
diff --git a/node/config.go b/node/config.go
index 20cd54d5..4a8e80a4 100644
--- a/node/config.go
+++ b/node/config.go
@@ -49,7 +49,7 @@ const (
// all registered services.
type Config struct {
// Name sets the instance name of the node. It must not contain the / character and is
- // used in the devp2p node identifier. The instance name of geth is "geth". If no
+ // used in the devp2p node identifier. The instance name of efsn is "efsn". If no
// value is specified, the basename of the current executable is used.
Name string `toml:"-"`
@@ -233,7 +233,7 @@ func DefaultWSEndpoint() string {
func (c *Config) NodeName() string {
name := c.name()
// Backwards compatibility: previous versions used title-cased "Geth", keep that.
- if name == "geth" || name == "geth-testnet" {
+ if name == "efsn" || name == "efsn-testnet" {
name = "Geth"
}
if c.UserIdent != "" {
@@ -258,7 +258,7 @@ func (c *Config) name() string {
return c.Name
}
-// These resources are resolved differently for "geth" instances.
+// These resources are resolved differently for "efsn" instances.
var isOldGethResource = map[string]bool{
"chaindata": true,
"nodes": true,
@@ -276,10 +276,10 @@ func (c *Config) ResolvePath(path string) string {
return ""
}
// Backwards-compatibility: ensure that data directory files created
- // by geth 1.4 are used if they exist.
- if c.name() == "geth" && isOldGethResource[path] {
+ // by efsn 1.4 are used if they exist.
+ if c.name() == "efsn" && isOldGethResource[path] {
oldpath := ""
- if c.Name == "geth" {
+ if c.Name == "efsn" {
oldpath = filepath.Join(c.DataDir, path)
}
if oldpath != "" && common.FileExist(oldpath) {
diff --git a/node/config_test.go b/node/config_test.go
index e8f048da..09fc85c7 100644
--- a/node/config_test.go
+++ b/node/config_test.go
@@ -73,14 +73,14 @@ func TestIPCPathResolution(t *testing.T) {
}{
{"", "", false, ""},
{"data", "", false, ""},
- {"", "geth.ipc", false, filepath.Join(os.TempDir(), "geth.ipc")},
- {"data", "geth.ipc", false, "data/geth.ipc"},
- {"data", "./geth.ipc", false, "./geth.ipc"},
- {"data", "/geth.ipc", false, "/geth.ipc"},
+ {"", "efsn.ipc", false, filepath.Join(os.TempDir(), "efsn.ipc")},
+ {"data", "efsn.ipc", false, "data/efsn.ipc"},
+ {"data", "./efsn.ipc", false, "./efsn.ipc"},
+ {"data", "/efsn.ipc", false, "/efsn.ipc"},
{"", "", true, ``},
{"data", "", true, ``},
- {"", "geth.ipc", true, `\\.\pipe\geth.ipc`},
- {"data", "geth.ipc", true, `\\.\pipe\geth.ipc`},
+ {"", "efsn.ipc", true, `\\.\pipe\geth.ipc`},
+ {"data", "efsn.ipc", true, `\\.\pipe\geth.ipc`},
{"data", `\\.\pipe\geth.ipc`, true, `\\.\pipe\geth.ipc`},
}
for i, test := range tests {
diff --git a/node/node.go b/node/node.go
index 94ebb982..b987a96a 100644
--- a/node/node.go
+++ b/node/node.go
@@ -98,7 +98,7 @@ func New(conf *Config) (*Node, error) {
return nil, errors.New(`Config.Name cannot end in ".ipc"`)
}
// Ensure that the AccountManager method works before the node has started.
- // We rely on this in cmd/geth.
+ // We rely on this in cmd/efsn.
am, ephemeralKeystore, err := makeAccountManager(conf)
if err != nil {
return nil, err
diff --git a/params/bootnodes.go b/params/bootnodes.go
index 8fc2ecfa..258dcc33 100644
--- a/params/bootnodes.go
+++ b/params/bootnodes.go
@@ -33,7 +33,7 @@ var MainnetBootnodes = []string{
// TestnetBootnodes are the enode URLs of the P2P bootstrap nodes running on the
// Ropsten test network.
var TestnetBootnodes = []string{
- "enode://30b7ab30a01c124a6cceca36863ece12c4f5fa68e3ba9b0b51407ccc002eeed3b3102d20a88f1c1d3c3154e2449317b8ef95090e77b312d5cc39354f86d5d606@52.176.7.10:40404", // US-Azure geth
+ "enode://30b7ab30a01c124a6cceca36863ece12c4f5fa68e3ba9b0b51407ccc002eeed3b3102d20a88f1c1d3c3154e2449317b8ef95090e77b312d5cc39354f86d5d606@52.176.7.10:40404", // US-Azure efsn
"enode://865a63255b3bb68023b6bffd5095118fcc13e79dcf014fe4e47e065c350c7cc72af2e53eff895f11ba1bbb6a2b33271c1116ee870f266618eadfc2e78aa7349c@52.176.100.77:40404", // US-Azure parity
"enode://6332792c4a00e3e4ee0926ed89e0d27ef985424d97b6a45bf0f23e51f0dcb5e66b875777506458aea7af6f9e4ffb69f43f3778ee73c81ed9d34c51c4b16b0b0f@52.232.243.152:40404", // Parity
"enode://94c15d1b9e2fe7ce56e458b9a3b672ef11894ddedd0c6f247e0f1d3487f52b66208fb4aeb8179fce6e3a749ea93ed147c37976d67af557508d199d9594c35f09@192.81.208.223:40404", // @gpip
diff --git a/swarm/swarm_test.go b/swarm/swarm_test.go
index c91b70e1..0c0dec79 100644
--- a/swarm/swarm_test.go
+++ b/swarm/swarm_test.go
@@ -202,8 +202,8 @@ func TestParseEnsAPIAddress(t *testing.T) {
}{
{
description: "IPC endpoint",
- value: "/data/testnet/geth.ipc",
- endpoint: "/data/testnet/geth.ipc",
+ value: "/data/testnet/efsn.ipc",
+ endpoint: "/data/testnet/efsn.ipc",
},
{
description: "HTTP endpoint",
@@ -217,8 +217,8 @@ func TestParseEnsAPIAddress(t *testing.T) {
},
{
description: "IPC Endpoint and TLD",
- value: "test:/data/testnet/geth.ipc",
- endpoint: "/data/testnet/geth.ipc",
+ value: "test:/data/testnet/efsn.ipc",
+ endpoint: "/data/testnet/efsn.ipc",
tld: "test",
},
{
@@ -235,8 +235,8 @@ func TestParseEnsAPIAddress(t *testing.T) {
},
{
description: "IPC Endpoint and contract address",
- value: "314159265dD8dbb310642f98f50C066173C1259b@/data/testnet/geth.ipc",
- endpoint: "/data/testnet/geth.ipc",
+ value: "314159265dD8dbb310642f98f50C066173C1259b@/data/testnet/efsn.ipc",
+ endpoint: "/data/testnet/efsn.ipc",
addr: common.HexToAddress("314159265dD8dbb310642f98f50C066173C1259b"),
},
{
@@ -253,8 +253,8 @@ func TestParseEnsAPIAddress(t *testing.T) {
},
{
description: "IPC Endpoint, TLD and contract address",
- value: "test:314159265dD8dbb310642f98f50C066173C1259b@/data/testnet/geth.ipc",
- endpoint: "/data/testnet/geth.ipc",
+ value: "test:314159265dD8dbb310642f98f50C066173C1259b@/data/testnet/efsn.ipc",
+ endpoint: "/data/testnet/efsn.ipc",
addr: common.HexToAddress("314159265dD8dbb310642f98f50C066173C1259b"),
tld: "test",
},
diff --git a/whisper/whisperv6/doc.go b/whisper/whisperv6/doc.go
index 529bf3d2..5f07ac3a 100644
--- a/whisper/whisperv6/doc.go
+++ b/whisper/whisperv6/doc.go
@@ -40,7 +40,7 @@ import (
const (
ProtocolVersion = uint64(6) // Protocol version number
ProtocolVersionStr = "6.0" // The same, as a string
- ProtocolName = "shh" // Nickname of the protocol in geth
+ ProtocolName = "shh" // Nickname of the protocol in efsn
// whisper protocol message codes, according to EIP-627
statusCode = 0 // used by whisper protocol