diff --git a/Makefile b/Makefile
index 4bf52f5c96..9f863193ea 100644
--- a/Makefile
+++ b/Makefile
@@ -2,19 +2,19 @@
# with Go source code. If you know what GOPATH is then you probably
# don't need to bother with make.
-.PHONY: geth android ios geth-cross evm all test clean
-.PHONY: geth-linux geth-linux-386 geth-linux-amd64 geth-linux-mips64 geth-linux-mips64le
-.PHONY: geth-linux-arm geth-linux-arm-5 geth-linux-arm-6 geth-linux-arm-7 geth-linux-arm64
-.PHONY: geth-darwin geth-darwin-386 geth-darwin-amd64
-.PHONY: geth-windows geth-windows-386 geth-windows-amd64
+.PHONY: bor android ios bor-cross evm all test clean
+.PHONY: bor-linux bor-linux-386 bor-linux-amd64 bor-linux-mips64 bor-linux-mips64le
+.PHONY: bor-linux-arm bor-linux-arm-5 bor-linux-arm-6 bor-linux-arm-7 bor-linux-arm64
+.PHONY: bor-darwin bor-darwin-386 bor-darwin-amd64
+.PHONY: bor-windows bor-windows-386 bor-windows-amd64
GOBIN = $(shell pwd)/build/bin
GO ?= latest
-geth:
- build/env.sh go run build/ci.go install ./cmd/geth
+bor:
+ build/env.sh go run build/ci.go install ./cmd/bor
@echo "Done building."
- @echo "Run \"$(GOBIN)/geth\" to launch geth."
+ @echo "Run \"$(GOBIN)/bor\" to launch bor."
all:
build/env.sh go run build/ci.go install
@@ -22,12 +22,12 @@ all:
android:
build/env.sh go run build/ci.go aar --local
@echo "Done building."
- @echo "Import \"$(GOBIN)/geth.aar\" to use the library."
+ @echo "Import \"$(GOBIN)/bor.aar\" to use the library."
ios:
build/env.sh go run build/ci.go xcode --local
@echo "Done building."
- @echo "Import \"$(GOBIN)/Geth.framework\" to use the library."
+ @echo "Import \"$(GOBIN)/bor.framework\" to use the library."
test: all
build/env.sh go run build/ci.go test
@@ -54,92 +54,92 @@ devtools:
# Cross Compilation Targets (xgo)
-geth-cross: geth-linux geth-darwin geth-windows geth-android geth-ios
+bor-cross: bor-linux bor-darwin bor-windows bor-android bor-ios
@echo "Full cross compilation done:"
- @ls -ld $(GOBIN)/geth-*
+ @ls -ld $(GOBIN)/bor-*
-geth-linux: geth-linux-386 geth-linux-amd64 geth-linux-arm geth-linux-mips64 geth-linux-mips64le
+bor-linux: bor-linux-386 bor-linux-amd64 bor-linux-arm bor-linux-mips64 bor-linux-mips64le
@echo "Linux cross compilation done:"
- @ls -ld $(GOBIN)/geth-linux-*
+ @ls -ld $(GOBIN)/bor-linux-*
-geth-linux-386:
- build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=linux/386 -v ./cmd/geth
+bor-linux-386:
+ build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=linux/386 -v ./cmd/bor
@echo "Linux 386 cross compilation done:"
- @ls -ld $(GOBIN)/geth-linux-* | grep 386
+ @ls -ld $(GOBIN)/bor-linux-* | grep 386
-geth-linux-amd64:
- build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=linux/amd64 -v ./cmd/geth
+bor-linux-amd64:
+ build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=linux/amd64 -v ./cmd/bor
@echo "Linux amd64 cross compilation done:"
- @ls -ld $(GOBIN)/geth-linux-* | grep amd64
+ @ls -ld $(GOBIN)/bor-linux-* | grep amd64
-geth-linux-arm: geth-linux-arm-5 geth-linux-arm-6 geth-linux-arm-7 geth-linux-arm64
+bor-linux-arm: bor-linux-arm-5 bor-linux-arm-6 bor-linux-arm-7 bor-linux-arm64
@echo "Linux ARM cross compilation done:"
- @ls -ld $(GOBIN)/geth-linux-* | grep arm
+ @ls -ld $(GOBIN)/bor-linux-* | grep arm
-geth-linux-arm-5:
- build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=linux/arm-5 -v ./cmd/geth
+bor-linux-arm-5:
+ build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=linux/arm-5 -v ./cmd/bor
@echo "Linux ARMv5 cross compilation done:"
- @ls -ld $(GOBIN)/geth-linux-* | grep arm-5
+ @ls -ld $(GOBIN)/bor-linux-* | grep arm-5
-geth-linux-arm-6:
- build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=linux/arm-6 -v ./cmd/geth
+bor-linux-arm-6:
+ build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=linux/arm-6 -v ./cmd/bor
@echo "Linux ARMv6 cross compilation done:"
- @ls -ld $(GOBIN)/geth-linux-* | grep arm-6
+ @ls -ld $(GOBIN)/bor-linux-* | grep arm-6
-geth-linux-arm-7:
- build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=linux/arm-7 -v ./cmd/geth
+bor-linux-arm-7:
+ build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=linux/arm-7 -v ./cmd/bor
@echo "Linux ARMv7 cross compilation done:"
- @ls -ld $(GOBIN)/geth-linux-* | grep arm-7
+ @ls -ld $(GOBIN)/bor-linux-* | grep arm-7
-geth-linux-arm64:
- build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=linux/arm64 -v ./cmd/geth
+bor-linux-arm64:
+ build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=linux/arm64 -v ./cmd/bor
@echo "Linux ARM64 cross compilation done:"
- @ls -ld $(GOBIN)/geth-linux-* | grep arm64
+ @ls -ld $(GOBIN)/bor-linux-* | grep arm64
-geth-linux-mips:
- build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=linux/mips --ldflags '-extldflags "-static"' -v ./cmd/geth
+bor-linux-mips:
+ build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=linux/mips --ldflags '-extldflags "-static"' -v ./cmd/bor
@echo "Linux MIPS cross compilation done:"
- @ls -ld $(GOBIN)/geth-linux-* | grep mips
+ @ls -ld $(GOBIN)/bor-linux-* | grep mips
-geth-linux-mipsle:
- build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=linux/mipsle --ldflags '-extldflags "-static"' -v ./cmd/geth
+bor-linux-mipsle:
+ build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=linux/mipsle --ldflags '-extldflags "-static"' -v ./cmd/bor
@echo "Linux MIPSle cross compilation done:"
- @ls -ld $(GOBIN)/geth-linux-* | grep mipsle
+ @ls -ld $(GOBIN)/bor-linux-* | grep mipsle
-geth-linux-mips64:
- build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=linux/mips64 --ldflags '-extldflags "-static"' -v ./cmd/geth
+bor-linux-mips64:
+ build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=linux/mips64 --ldflags '-extldflags "-static"' -v ./cmd/bor
@echo "Linux MIPS64 cross compilation done:"
- @ls -ld $(GOBIN)/geth-linux-* | grep mips64
+ @ls -ld $(GOBIN)/bor-linux-* | grep mips64
-geth-linux-mips64le:
- build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=linux/mips64le --ldflags '-extldflags "-static"' -v ./cmd/geth
+bor-linux-mips64le:
+ build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=linux/mips64le --ldflags '-extldflags "-static"' -v ./cmd/bor
@echo "Linux MIPS64le cross compilation done:"
- @ls -ld $(GOBIN)/geth-linux-* | grep mips64le
+ @ls -ld $(GOBIN)/bor-linux-* | grep mips64le
-geth-darwin: geth-darwin-386 geth-darwin-amd64
+bor-darwin: bor-darwin-386 bor-darwin-amd64
@echo "Darwin cross compilation done:"
- @ls -ld $(GOBIN)/geth-darwin-*
+ @ls -ld $(GOBIN)/bor-darwin-*
-geth-darwin-386:
- build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=darwin/386 -v ./cmd/geth
+bor-darwin-386:
+ build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=darwin/386 -v ./cmd/bor
@echo "Darwin 386 cross compilation done:"
- @ls -ld $(GOBIN)/geth-darwin-* | grep 386
+ @ls -ld $(GOBIN)/bor-darwin-* | grep 386
-geth-darwin-amd64:
- build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=darwin/amd64 -v ./cmd/geth
+bor-darwin-amd64:
+ build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=darwin/amd64 -v ./cmd/bor
@echo "Darwin amd64 cross compilation done:"
- @ls -ld $(GOBIN)/geth-darwin-* | grep amd64
+ @ls -ld $(GOBIN)/bor-darwin-* | grep amd64
-geth-windows: geth-windows-386 geth-windows-amd64
+bor-windows: bor-windows-386 bor-windows-amd64
@echo "Windows cross compilation done:"
- @ls -ld $(GOBIN)/geth-windows-*
+ @ls -ld $(GOBIN)/bor-windows-*
-geth-windows-386:
- build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=windows/386 -v ./cmd/geth
+bor-windows-386:
+ build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=windows/386 -v ./cmd/bor
@echo "Windows 386 cross compilation done:"
- @ls -ld $(GOBIN)/geth-windows-* | grep 386
+ @ls -ld $(GOBIN)/bor-windows-* | grep 386
-geth-windows-amd64:
- build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=windows/amd64 -v ./cmd/geth
+bor-windows-amd64:
+ build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=windows/amd64 -v ./cmd/bor
@echo "Windows amd64 cross compilation done:"
- @ls -ld $(GOBIN)/geth-windows-* | grep amd64
+ @ls -ld $(GOBIN)/bor-windows-* | grep amd64
diff --git a/README.md b/README.md
index fd25941543..fa5c73c4cd 100644
--- a/README.md
+++ b/README.md
@@ -2,9 +2,7 @@
Official Golang implementation of the Ethereum protocol.
-[](https://godoc.org/github.com/ethereum/go-ethereum)
+[](https://godoc.org/github.com/ethereum/go-ethereum)
[](https://goreportcard.com/report/github.com/ethereum/go-ethereum)
[](https://travis-ci.org/ethereum/go-ethereum)
[](https://discord.gg/nthXNEv)
@@ -63,14 +61,15 @@ $ geth console
```
This command will:
- * Start `geth` in fast sync mode (default, can be changed with the `--syncmode` flag),
- causing it to download more data in exchange for avoiding processing the entire history
- of the Ethereum network, which is very CPU intensive.
- * Start up `geth`'s built-in interactive [JavaScript console](https://github.com/ethereum/go-ethereum/wiki/JavaScript-Console),
- (via the trailing `console` subcommand) through which you can invoke all official [`web3` methods](https://github.com/ethereum/wiki/wiki/JavaScript-API)
- as well as `geth`'s own [management APIs](https://github.com/ethereum/go-ethereum/wiki/Management-APIs).
- This tool is optional and if you leave it out you can always attach to an already running
- `geth` instance with `geth attach`.
+
+- Start `geth` in fast sync mode (default, can be changed with the `--syncmode` flag),
+ causing it to download more data in exchange for avoiding processing the entire history
+ of the Ethereum network, which is very CPU intensive.
+- Start up `geth`'s built-in interactive [JavaScript console](https://github.com/ethereum/go-ethereum/wiki/JavaScript-Console),
+ (via the trailing `console` subcommand) through which you can invoke all official [`web3` methods](https://github.com/ethereum/wiki/wiki/JavaScript-API)
+ as well as `geth`'s own [management APIs](https://github.com/ethereum/go-ethereum/wiki/Management-APIs).
+ This tool is optional and if you leave it out you can always attach to an already running
+ `geth` instance with `geth attach`.
### A Full node on the Ethereum test network
@@ -89,28 +88,28 @@ useful on the testnet too. Please see above for their explanations if you've ski
Specifying the `--testnet` flag, however, will reconfigure your `geth` instance a bit:
- * Instead of using the default data directory (`~/.ethereum` on Linux for example), `geth`
- will nest itself one level deeper into a `testnet` subfolder (`~/.ethereum/testnet` on
- Linux). Note, on OSX and Linux this also means that attaching to a running testnet node
- requires the use of a custom endpoint since `geth attach` will try to attach to a
- production node endpoint by default. E.g.
- `geth attach geth --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}}/bor.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.
@@ -229,7 +229,7 @@ var dashboardContent = `geth --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}}/bor.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.
diff --git a/node/config_test.go b/node/config_test.go index 00c24a2391..319932bbd8 100644 --- a/node/config_test.go +++ b/node/config_test.go @@ -85,15 +85,15 @@ 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"}, + {"", "bor.ipc", false, filepath.Join(os.TempDir(), "bor.ipc")}, + {"data", "bor.ipc", false, "data/bor.ipc"}, + {"data", "./bor.ipc", false, "./bor.ipc"}, + {"data", "/bor.ipc", false, "/bor.ipc"}, {"", "", true, ``}, {"data", "", true, ``}, - {"", "geth.ipc", true, `\\.\pipe\geth.ipc`}, - {"data", "geth.ipc", true, `\\.\pipe\geth.ipc`}, - {"data", `\\.\pipe\geth.ipc`, true, `\\.\pipe\geth.ipc`}, + {"", "bor.ipc", true, `\\.\pipe\bor.ipc`}, + {"data", "bor.ipc", true, `\\.\pipe\bor.ipc`}, + {"data", `\\.\pipe\bor.ipc`, true, `\\.\pipe\bor.ipc`}, } for i, test := range tests { // Only run when platform/test match