diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index a332b815d0..3aba98d628 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -2,15 +2,15 @@
Before you do a feature request please check and make sure that it isn't possible
through some other means. The JavaScript enabled console is a powerful feature
-in the right hands. Please check our [Bitchin' tricks](https://github.com/ethereum/go-ethereum/wiki/bitchin-tricks) wiki page for more info
+in the right hands. Please check our [Bitchin' tricks](https://github.com/burnout/go-burnout/wiki/bitchin-tricks) wiki page for more info
and help.
## Contributing
-If you'd like to contribute to go-ethereum please fork, fix, commit and
+If you'd like to contribute to go-burnout please fork, fix, commit and
send a pull request. Commits which do not comply with the coding standards
are ignored (use gofmt!).
-See [Developers' Guide](https://github.com/ethereum/go-ethereum/wiki/Developers'-Guide)
+See [Developers' Guide](https://github.com/burnout/go-burnout/wiki/Developers'-Guide)
for more details on configuring your environment, testing, and
dependency management.
diff --git a/.gitmodules b/.gitmodules
index 32bdb3b6e5..4b706fe90c 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,3 +1,3 @@
[submodule "tests"]
path = tests/testdata
- url = https://github.com/ethereum/tests
+ url = https://github.com/burnout/tests
diff --git a/.mailmap b/.mailmap
index d51c7b6093..cc85161492 100644
--- a/.mailmap
+++ b/.mailmap
@@ -1,7 +1,7 @@
-Jeffrey Wilcke
-Jeffrey Wilcke
-Jeffrey Wilcke
-Jeffrey Wilcke
+Jeffrey Wilcke
+Jeffrey Wilcke
+Jeffrey Wilcke
+Jeffrey Wilcke
Viktor Trón
@@ -12,7 +12,7 @@ Nick Savers
Maran Hidskes
Taylor Gerring
-Taylor Gerring
+Taylor Gerring
Bas van Kervel
Bas van Kervel
@@ -58,8 +58,8 @@ Nick Dodson
Jason Carver
Jason Carver
-Joseph Chow
-Joseph Chow ethers
+Joseph Chow
+Joseph Chow ethers
Enrique Fynn
diff --git a/.travis.yml b/.travis.yml
index 8a7f65e3d6..26867d2644 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,5 +1,5 @@
language: go
-go_import_path: github.com/ethereum/go-ethereum
+go_import_path: github.com/burnout/go-burnout
sudo: false
matrix:
include:
@@ -68,7 +68,7 @@ matrix:
- fakeroot
script:
# Build for the primary platforms that Trusty can manage
- - go run build/ci.go debsrc -signer "Go Ethereum Linux Builder " -upload ppa:ethereum/ethereum
+ - go run build/ci.go debsrc -signer "Go Burnout Linux Builder " -upload ppa:burnout/burnout
- go run build/ci.go install
- go run build/ci.go archive -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
- go run build/ci.go install -arch 386
@@ -144,8 +144,8 @@ matrix:
- mv android-ndk-r14b $HOME
- export ANDROID_NDK=$HOME/android-ndk-r14b
- - mkdir -p $GOPATH/src/github.com/ethereum
- - ln -s `pwd` $GOPATH/src/github.com/ethereum
+ - mkdir -p $GOPATH/src/github.com/burnout
+ - ln -s `pwd` $GOPATH/src/github.com/burnout
- go run build/ci.go aar -signer ANDROID_SIGNING_KEY -deploy https://oss.sonatype.org -upload gethstore/builds
# This builder does the OSX Azure, iOS CocoaPods and iOS Azure uploads
diff --git a/AUTHORS b/AUTHORS
index faa19d281c..364f56e218 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -1,4 +1,4 @@
-# This is the official list of go-ethereum authors for copyright purposes.
+# This is the official list of go-burnout authors for copyright purposes.
Ales Katona
Alex Leverington
@@ -29,10 +29,10 @@ Jae Kwon
Jamie Pitts
Jason Carver
Jeff R. Allen
-Jeffrey Wilcke
+Jeffrey Wilcke
Jens Agerberg
Jonathan Brown
-Joseph Chow
+Joseph Chow
Justin Clark-Casey
Justin Drake
Kenji Siu
diff --git a/COPYING b/COPYING
index 8d66e87723..1afeed0044 100644
--- a/COPYING
+++ b/COPYING
@@ -1,7 +1,7 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
- Copyright (C) 2014 The go-ethereum Authors.
+ Copyright (C) 2014 The go-burnout Authors.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
diff --git a/Dockerfile b/Dockerfile
index eae8924997..b4f429439b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,14 +3,14 @@ FROM golang:1.9-alpine as builder
RUN apk add --no-cache make gcc musl-dev linux-headers
-ADD . /go-ethereum
-RUN cd /go-ethereum && make geth
+ADD . /go-burnout
+RUN cd /go-burnout && make geth
# Pull Geth into a second stage deploy alpine container
FROM alpine:latest
RUN apk add --no-cache ca-certificates
-COPY --from=builder /go-ethereum/build/bin/geth /usr/local/bin/
+COPY --from=builder /go-burnout/build/bin/geth /usr/local/bin/
EXPOSE 8545 8546 30303 30303/udp
ENTRYPOINT ["geth"]
diff --git a/README.md b/README.md
index ab741fcc90..9fcfe7cc16 100644
--- a/README.md
+++ b/README.md
@@ -1,19 +1,19 @@
-## Go Ethereum
+## Go Burnout
-Official golang implementation of the Ethereum protocol.
+Official golang implementation of the Burnout protocol.
[](https://godoc.org/github.com/ethereum/go-ethereum)
-[](https://gitter.im/ethereum/go-ethereum?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
+)](https://godoc.org/github.com/burnout/go-burnout)
+[](https://gitter.im/burnout/go-burnout?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
Automated builds are available for stable releases and the unstable master branch.
-Binary archives are published at https://geth.ethereum.org/downloads/.
+Binary archives are published at https://geth.burnout.org/downloads/.
## Building the source
For prerequisites and detailed build instructions please read the
-[Installation Instructions](https://github.com/ethereum/go-ethereum/wiki/Building-Ethereum)
+[Installation Instructions](https://github.com/burnout/go-burnout/wiki/Building-Burnout)
on the wiki.
Building geth requires both a Go (version 1.7 or later) and a C compiler.
@@ -28,29 +28,29 @@ or, to build the full suite of utilities:
## Executables
-The go-ethereum project comes with several wrappers/executables found in the `cmd` directory.
+The go-burnout project comes with several wrappers/executables found in the `cmd` directory.
| Command | Description |
|:----------:|-------------|
-| **`geth`** | Our main Ethereum CLI client. It is the entry point into the Ethereum network (main-, test- or private net), capable of running as a full node (default) archive node (retaining all historical state) or a light node (retrieving data live). It can be used by other processes as a gateway into the Ethereum network via JSON RPC endpoints exposed on top of HTTP, WebSocket and/or IPC transports. `geth --help` and the [CLI Wiki page](https://github.com/ethereum/go-ethereum/wiki/Command-Line-Options) for command line options. |
-| `abigen` | Source code generator to convert Ethereum contract definitions into easy to use, compile-time type-safe Go packages. It operates on plain [Ethereum contract ABIs](https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI) with expanded functionality if the contract bytecode is also available. However it also accepts Solidity source files, making development much more streamlined. Please see our [Native DApps](https://github.com/ethereum/go-ethereum/wiki/Native-DApps:-Go-bindings-to-Ethereum-contracts) wiki page for details. |
-| `bootnode` | Stripped down version of our Ethereum client implementation that only takes part in the network node discovery protocol, but does not run any of the higher level application protocols. It can be used as a lightweight bootstrap node to aid in finding peers in private networks. |
-| `evm` | Developer utility version of the EVM (Ethereum Virtual Machine) that is capable of running bytecode snippets within a configurable environment and execution mode. Its purpose is to allow insolated, fine-grained debugging of EVM opcodes (e.g. `evm --code 60ff60ff --debug`). |
-| `gethrpctest` | Developer utility tool to support our [ethereum/rpc-test](https://github.com/ethereum/rpc-tests) test suite which validates baseline conformity to the [Ethereum JSON RPC](https://github.com/ethereum/wiki/wiki/JSON-RPC) specs. Please see the [test suite's readme](https://github.com/ethereum/rpc-tests/blob/master/README.md) for details. |
-| `rlpdump` | Developer utility tool to convert binary RLP ([Recursive Length Prefix](https://github.com/ethereum/wiki/wiki/RLP)) dumps (data encoding used by the Ethereum protocol both network as well as consensus wise) to user friendlier hierarchical representation (e.g. `rlpdump --hex CE0183FFFFFFC4C304050583616263`). |
+| **`geth`** | Our main Burnout CLI client. It is the entry point into the Burnout network (main-, test- or private net), capable of running as a full node (default) archive node (retaining all historical state) or a light node (retrieving data live). It can be used by other processes as a gateway into the Burnout network via JSON RPC endpoints exposed on top of HTTP, WebSocket and/or IPC transports. `geth --help` and the [CLI Wiki page](https://github.com/burnout/go-burnout/wiki/Command-Line-Options) for command line options. |
+| `abigen` | Source code generator to convert Burnout contract definitions into easy to use, compile-time type-safe Go packages. It operates on plain [Burnout contract ABIs](https://github.com/burnout/wiki/wiki/Burnout-Contract-ABI) with expanded functionality if the contract bytecode is also available. However it also accepts Solidity source files, making development much more streamlined. Please see our [Native DApps](https://github.com/burnout/go-burnout/wiki/Native-DApps:-Go-bindings-to-Burnout-contracts) wiki page for details. |
+| `bootnode` | Stripped down version of our Burnout client implementation that only takes part in the network node discovery protocol, but does not run any of the higher level application protocols. It can be used as a lightweight bootstrap node to aid in finding peers in private networks. |
+| `evm` | Developer utility version of the EVM (Burnout Virtual Machine) that is capable of running bytecode snippets within a configurable environment and execution mode. Its purpose is to allow insolated, fine-grained debugging of EVM opcodes (e.g. `evm --code 60ff60ff --debug`). |
+| `gethrpctest` | Developer utility tool to support our [burnout/rpc-test](https://github.com/burnout/rpc-tests) test suite which validates baseline conformity to the [Burnout JSON RPC](https://github.com/burnout/wiki/wiki/JSON-RPC) specs. Please see the [test suite's readme](https://github.com/burnout/rpc-tests/blob/master/README.md) for details. |
+| `rlpdump` | Developer utility tool to convert binary RLP ([Recursive Length Prefix](https://github.com/burnout/wiki/wiki/RLP)) dumps (data encoding used by the Burnout protocol both network as well as consensus wise) to user friendlier hierarchical representation (e.g. `rlpdump --hex CE0183FFFFFFC4C304050583616263`). |
| `swarm` | swarm daemon and tools. This is the entrypoint for the swarm network. `swarm --help` for command line options and subcommands. See https://swarm-guide.readthedocs.io for swarm documentation. |
-| `puppeth` | a CLI wizard that aids in creating a new Ethereum network. |
+| `puppeth` | a CLI wizard that aids in creating a new Burnout network. |
## Running geth
Going through all the possible command line flags is out of scope here (please consult our
-[CLI Wiki page](https://github.com/ethereum/go-ethereum/wiki/Command-Line-Options)), but we've
+[CLI Wiki page](https://github.com/burnout/go-burnout/wiki/Command-Line-Options)), but we've
enumerated a few common parameter combos to get you up to speed quickly on how you can run your
own Geth instance.
-### Full node on the main Ethereum network
+### Full node on the main Burnout network
-By far the most common scenario is people wanting to simply interact with the Ethereum network:
+By far the most common scenario is people wanting to simply interact with the Burnout network:
create accounts; transfer funds; deploy and interact with contracts. For this particular use-case
the user doesn't care about years-old historical data, so we can fast-sync quickly to the current
state of the network. To do so:
@@ -62,19 +62,19 @@ $ geth --fast --cache=512 console
This command will:
* Start geth in fast sync mode (`--fast`), causing it to download more data in exchange for avoiding
- processing the entire history of the Ethereum network, which is very CPU intensive.
+ processing the entire history of the Burnout network, which is very CPU intensive.
* Bump the memory allowance of the database to 512MB (`--cache=512`), which can help significantly in
sync times especially for HDD users. This flag is optional and you can set it as high or as low as
you'd like, though we'd recommend the 512MB - 2GB range.
- * 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).
+ * Start up Geth's built-in interactive [JavaScript console](https://github.com/burnout/go-burnout/wiki/JavaScript-Console),
+ (via the trailing `console` subcommand) through which you can invoke all official [`web3` methods](https://github.com/burnout/wiki/wiki/JavaScript-API)
+ as well as Geth's own [management APIs](https://github.com/burnout/go-burnout/wiki/Management-APIs).
This too is optional and if you leave it out you can always attach to an already running Geth instance
with `geth attach`.
-### Full node on the Ethereum test network
+### Full node on the Burnout test network
-Transitioning towards developers, if you'd like to play around with creating Ethereum contracts, you
+Transitioning towards developers, if you'd like to play around with creating Burnout contracts, you
almost certainly would like to do that without any real money involved until you get the hang of the
entire system. In other words, instead of attaching to the main network, you want to join the **test**
network with your node, which is fully equivalent to the main network, but with play-Ether only.
@@ -89,12 +89,12 @@ here.
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
+ * Instead of using the default data directory (`~/.burnout` on Linux for example), Geth will nest
+ itself one level deeper into a `testnet` subfolder (`~/.burnout/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 /testnet/geth.ipc`. Windows users are not affected by this.
- * Instead of connecting the main Ethereum network, the client will connect to the test network,
+ * Instead of connecting the main Burnout network, the client will connect to the test network,
which uses different P2P bootnodes, different network IDs and genesis states.
*Note: Although there are some internal protective measures to prevent transactions from crossing
@@ -120,22 +120,22 @@ $ geth --your-favourite-flags dumpconfig
#### Docker quick start
-One of the quickest ways to get Ethereum up and running on your machine is by using Docker:
+One of the quickest ways to get Burnout up and running on your machine is by using Docker:
```
-docker run -d --name ethereum-node -v /Users/alice/ethereum:/root \
+docker run -d --name burnout-node -v /Users/alice/burnout:/root \
-p 8545:8545 -p 30303:30303 \
- ethereum/client-go --fast --cache=512
+ burnout/client-go --fast --cache=512
```
This will start geth in fast sync mode with a DB memory allowance of 512MB just as the above command does. It will also create a persistent volume in your home directory for saving your blockchain as well as map the default ports. There is also an `alpine` tag available for a slim version of the image.
### Programatically interfacing Geth nodes
-As a developer, sooner rather than later you'll want to start interacting with Geth and the Ethereum
+As a developer, sooner rather than later you'll want to start interacting with Geth and the Burnout
network via your own programs and not manually through the console. To aid this, Geth has built in
-support for a JSON-RPC based APIs ([standard APIs](https://github.com/ethereum/wiki/wiki/JSON-RPC) and
-[Geth specific APIs](https://github.com/ethereum/go-ethereum/wiki/Management-APIs)). These can be
+support for a JSON-RPC based APIs ([standard APIs](https://github.com/burnout/wiki/wiki/JSON-RPC) and
+[Geth specific APIs](https://github.com/burnout/go-burnout/wiki/Management-APIs)). These can be
exposed via HTTP, WebSockets and IPC (unix sockets on unix based platforms, and named pipes on Windows).
The IPC interface is enabled by default and exposes all the APIs supported by Geth, whereas the HTTP
@@ -147,15 +147,15 @@ HTTP based JSON-RPC API options:
* `--rpc` Enable the HTTP-RPC server
* `--rpcaddr` HTTP-RPC server listening interface (default: "localhost")
* `--rpcport` HTTP-RPC server listening port (default: 8545)
- * `--rpcapi` API's offered over the HTTP-RPC interface (default: "eth,net,web3")
+ * `--rpcapi` API's offered over the HTTP-RPC interface (default: "brn,net,web3")
* `--rpccorsdomain` Comma separated list of domains from which to accept cross origin requests (browser enforced)
* `--ws` Enable the WS-RPC server
* `--wsaddr` WS-RPC server listening interface (default: "localhost")
* `--wsport` WS-RPC server listening port (default: 8546)
- * `--wsapi` API's offered over the WS-RPC interface (default: "eth,net,web3")
+ * `--wsapi` API's offered over the WS-RPC interface (default: "brn,net,web3")
* `--wsorigins` Origins from which to accept websockets requests
* `--ipcdisable` Disable the IPC-RPC server
- * `--ipcapi` API's offered over the IPC-RPC interface (default: "admin,debug,eth,miner,net,personal,shh,txpool,web3")
+ * `--ipcapi` API's offered over the IPC-RPC interface (default: "admin,debug,brn,miner,net,personal,shh,txpool,web3")
* `--ipcpath` Filename for IPC socket/pipe within the datadir (explicit paths escape it)
You'll need to use your own programming environments' capabilities (libraries, tools, etc) to connect
@@ -163,7 +163,7 @@ via HTTP, WS or IPC to a Geth node configured with the above flags and you'll ne
on all transports. You can reuse the same connection for multiple requests!
**Note: Please understand the security implications of opening up an HTTP/WS based transport before
-doing so! Hackers on the internet are actively trying to subvert Ethereum nodes with exposed APIs!
+doing so! Hackers on the internet are actively trying to subvert Burnout nodes with exposed APIs!
Further, all browser tabs can access locally running webservers, so malicious webpages could try to
subvert locally available APIs!**
@@ -227,7 +227,7 @@ $ bootnode --genkey=boot.key
$ bootnode --nodekey=boot.key
```
-With the bootnode online, it will display an [`enode` URL](https://github.com/ethereum/wiki/wiki/enode-url-format)
+With the bootnode online, it will display an [`enode` URL](https://github.com/burnout/wiki/wiki/enode-url-format)
that other nodes can use to connect to it and exchange peer information. Make sure to replace the
displayed IP address information (most probably `[::]`) with your externally accessible IP to get the
actual `enode` URL.
@@ -250,9 +250,9 @@ need to configure a miner to process transactions and create new blocks for you.
#### Running a private miner
-Mining on the public Ethereum network is a complex task as it's only feasible using GPUs, requiring
+Mining on the public Burnout network is a complex task as it's only feasible using GPUs, requiring
an OpenCL or CUDA enabled `ethminer` instance. For information on such a setup, please consult the
-[EtherMining subreddit](https://www.reddit.com/r/EtherMining/) and the [Genoil miner](https://github.com/Genoil/cpp-ethereum)
+[EtherMining subreddit](https://www.reddit.com/r/EtherMining/) and the [Genoil miner](https://github.com/Genoil/cpp-burnout)
repository.
In a private network setting however, a single CPU miner instance is more than enough for practical
@@ -273,9 +273,9 @@ limit blocks converge to (`--targetgaslimit`) and the price transactions are acc
Thank you for considering to help out with the source code! We welcome contributions from
anyone on the internet, and are grateful for even the smallest of fixes!
-If you'd like to contribute to go-ethereum, please fork, fix, commit and send a pull request
+If you'd like to contribute to go-burnout, please fork, fix, commit and send a pull request
for the maintainers to review and merge into the main code base. If you wish to submit more
-complex changes though, please check up with the core devs first on [our gitter channel](https://gitter.im/ethereum/go-ethereum)
+complex changes though, please check up with the core devs first on [our gitter channel](https://gitter.im/burnout/go-burnout)
to ensure those changes are in line with the general philosophy of the project and/or get some
early feedback which can make both your efforts much lighter as well as our review and merge
procedures quick and simple.
@@ -286,17 +286,17 @@ Please make sure your contributions adhere to our coding guidelines:
* Code must be documented adhering to the official Go [commentary](https://golang.org/doc/effective_go.html#commentary) guidelines.
* Pull requests need to be based on and opened against the `master` branch.
* Commit messages should be prefixed with the package(s) they modify.
- * E.g. "eth, rpc: make trace configs optional"
+ * E.g. "brn, rpc: make trace configs optional"
-Please see the [Developers' Guide](https://github.com/ethereum/go-ethereum/wiki/Developers'-Guide)
+Please see the [Developers' Guide](https://github.com/burnout/go-burnout/wiki/Developers'-Guide)
for more details on configuring your environment, managing project dependencies and testing procedures.
## License
-The go-ethereum library (i.e. all code outside of the `cmd` directory) is licensed under the
+The go-burnout library (i.e. all code outside of the `cmd` directory) is licensed under the
[GNU Lesser General Public License v3.0](https://www.gnu.org/licenses/lgpl-3.0.en.html), also
included in our repository in the `COPYING.LESSER` file.
-The go-ethereum binaries (i.e. all code inside of the `cmd` directory) is licensed under the
+The go-burnout binaries (i.e. all code inside of the `cmd` directory) is licensed under the
[GNU General Public License v3.0](https://www.gnu.org/licenses/gpl-3.0.en.html), also included
in our repository in the `COPYING` file.
diff --git a/accounts/abi/abi.go b/accounts/abi/abi.go
index 2a06d474b8..f3845605cb 100644
--- a/accounts/abi/abi.go
+++ b/accounts/abi/abi.go
@@ -1,18 +1,18 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package abi
@@ -23,7 +23,7 @@ import (
"reflect"
"strings"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/burnout/go-burnout/common"
)
// The ABI holds information about a contract's context and available
diff --git a/accounts/abi/abi_test.go b/accounts/abi/abi_test.go
index a3aa9446ef..2345870f39 100644
--- a/accounts/abi/abi_test.go
+++ b/accounts/abi/abi_test.go
@@ -1,18 +1,18 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package abi
@@ -25,8 +25,8 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/crypto"
)
// formatSilceOutput add padding to the value and adds a size
diff --git a/accounts/abi/argument.go b/accounts/abi/argument.go
index 4691318ce7..3781c07d51 100644
--- a/accounts/abi/argument.go
+++ b/accounts/abi/argument.go
@@ -1,18 +1,18 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package abi
diff --git a/accounts/abi/bind/auth.go b/accounts/abi/bind/auth.go
index e6bb0c3b52..c9ccc1a47e 100644
--- a/accounts/abi/bind/auth.go
+++ b/accounts/abi/bind/auth.go
@@ -1,18 +1,18 @@
-// Copyright 2016 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2016 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package bind
@@ -22,10 +22,10 @@ import (
"io"
"io/ioutil"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/burnout/go-burnout/accounts/keystore"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/crypto"
)
// NewTransactor is a utility method to easily create a transaction signer from
diff --git a/accounts/abi/bind/backend.go b/accounts/abi/bind/backend.go
index 25b61928e1..5df9b9ddfc 100644
--- a/accounts/abi/bind/backend.go
+++ b/accounts/abi/bind/backend.go
@@ -1,18 +1,18 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package bind
@@ -21,9 +21,9 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/burnout/go-burnout"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/core/types"
)
var (
@@ -47,9 +47,9 @@ type ContractCaller interface {
// CodeAt returns the code of the given account. This is needed to differentiate
// between contract internal errors and the local chain being out of sync.
CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error)
- // ContractCall executes an Ethereum contract call with the specified data as the
+ // ContractCall executes an Burnout contract call with the specified data as the
// input.
- CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
+ CallContract(ctx context.Context, call burnout.CallMsg, blockNumber *big.Int) ([]byte, error)
}
// DeployBackend wraps the operations needed by WaitMined and WaitDeployed.
@@ -64,8 +64,8 @@ type DeployBackend interface {
type PendingContractCaller interface {
// PendingCodeAt returns the code of the given account in the pending state.
PendingCodeAt(ctx context.Context, contract common.Address) ([]byte, error)
- // PendingCallContract executes an Ethereum contract call against the pending state.
- PendingCallContract(ctx context.Context, call ethereum.CallMsg) ([]byte, error)
+ // PendingCallContract executes an Burnout contract call against the pending state.
+ PendingCallContract(ctx context.Context, call burnout.CallMsg) ([]byte, error)
}
// ContractTransactor defines the methods needed to allow operating with contract
@@ -85,7 +85,7 @@ type ContractTransactor interface {
// There is no guarantee that this is the true gas limit requirement as other
// transactions may be added or removed by miners, but it should provide a basis
// for setting a reasonable default.
- EstimateGas(ctx context.Context, call ethereum.CallMsg) (usedGas *big.Int, err error)
+ EstimateGas(ctx context.Context, call burnout.CallMsg) (usedGas *big.Int, err error)
// SendTransaction injects the transaction into the pending pool for execution.
SendTransaction(ctx context.Context, tx *types.Transaction) error
}
diff --git a/accounts/abi/bind/backends/simulated.go b/accounts/abi/bind/backends/simulated.go
index 0621e81c2b..b363225a52 100644
--- a/accounts/abi/bind/backends/simulated.go
+++ b/accounts/abi/bind/backends/simulated.go
@@ -1,18 +1,18 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package backends
@@ -24,17 +24,17 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/burnout/go-burnout"
+ "github.com/burnout/go-burnout/accounts/abi/bind"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/common/math"
+ "github.com/burnout/go-burnout/consensus/ethash"
+ "github.com/burnout/go-burnout/core"
+ "github.com/burnout/go-burnout/core/state"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/core/vm"
+ "github.com/burnout/go-burnout/brndb"
+ "github.com/burnout/go-burnout/params"
)
// This nil assignment ensures compile time that SimulatedBackend implements bind.ContractBackend.
@@ -45,8 +45,8 @@ var errBlockNumberUnsupported = errors.New("SimulatedBackend cannot access block
// SimulatedBackend implements bind.ContractBackend, simulating a blockchain in
// the background. Its main purpose is to allow easily testing contract bindings.
type SimulatedBackend struct {
- database ethdb.Database // In memory database to store our testing data
- blockchain *core.BlockChain // Ethereum blockchain to handle the consensus
+ database brndb.Database // In memory database to store our testing data
+ blockchain *core.BlockChain // Burnout blockchain to handle the consensus
mu sync.Mutex
pendingBlock *types.Block // Currently pending block that will be imported on request
@@ -58,7 +58,7 @@ type SimulatedBackend struct {
// NewSimulatedBackend creates a new binding backend using a simulated blockchain
// for testing purposes.
func NewSimulatedBackend(alloc core.GenesisAlloc) *SimulatedBackend {
- database, _ := ethdb.NewMemDatabase()
+ database, _ := brndb.NewMemDatabase()
genesis := core.Genesis{Config: params.AllProtocolChanges, Alloc: alloc}
genesis.MustCommit(database)
blockchain, _ := core.NewBlockChain(database, genesis.Config, ethash.NewFaker(), vm.Config{})
@@ -157,7 +157,7 @@ func (b *SimulatedBackend) PendingCodeAt(ctx context.Context, contract common.Ad
}
// CallContract executes a contract call.
-func (b *SimulatedBackend) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error) {
+func (b *SimulatedBackend) CallContract(ctx context.Context, call burnout.CallMsg, blockNumber *big.Int) ([]byte, error) {
b.mu.Lock()
defer b.mu.Unlock()
@@ -173,7 +173,7 @@ func (b *SimulatedBackend) CallContract(ctx context.Context, call ethereum.CallM
}
// PendingCallContract executes a contract call on the pending state.
-func (b *SimulatedBackend) PendingCallContract(ctx context.Context, call ethereum.CallMsg) ([]byte, error) {
+func (b *SimulatedBackend) PendingCallContract(ctx context.Context, call burnout.CallMsg) ([]byte, error) {
b.mu.Lock()
defer b.mu.Unlock()
defer b.pendingState.RevertToSnapshot(b.pendingState.Snapshot())
@@ -199,7 +199,7 @@ func (b *SimulatedBackend) SuggestGasPrice(ctx context.Context) (*big.Int, error
// EstimateGas executes the requested code against the currently pending block/state and
// returns the used amount of gas.
-func (b *SimulatedBackend) EstimateGas(ctx context.Context, call ethereum.CallMsg) (*big.Int, error) {
+func (b *SimulatedBackend) EstimateGas(ctx context.Context, call burnout.CallMsg) (*big.Int, error) {
b.mu.Lock()
defer b.mu.Unlock()
@@ -235,7 +235,7 @@ func (b *SimulatedBackend) EstimateGas(ctx context.Context, call ethereum.CallMs
// callContract implemens common code between normal and pending contract calls.
// state is modified during execution, make sure to copy it if necessary.
-func (b *SimulatedBackend) callContract(ctx context.Context, call ethereum.CallMsg, block *types.Block, statedb *state.StateDB) ([]byte, *big.Int, bool, error) {
+func (b *SimulatedBackend) callContract(ctx context.Context, call burnout.CallMsg, block *types.Block, statedb *state.StateDB) ([]byte, *big.Int, bool, error) {
// Ensure message is initialized properly.
if call.GasPrice == nil {
call.GasPrice = big.NewInt(1)
@@ -305,7 +305,7 @@ func (b *SimulatedBackend) AdjustTime(adjustment time.Duration) error {
// callmsg implements core.Message to allow passing it as a transaction simulator.
type callmsg struct {
- ethereum.CallMsg
+ burnout.CallMsg
}
func (m callmsg) From() common.Address { return m.CallMsg.From }
diff --git a/accounts/abi/bind/base.go b/accounts/abi/bind/base.go
index b40bd65e80..60b1728504 100644
--- a/accounts/abi/bind/base.go
+++ b/accounts/abi/bind/base.go
@@ -1,18 +1,18 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package bind
@@ -22,11 +22,11 @@ import (
"fmt"
"math/big"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/accounts/abi"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/burnout/go-burnout"
+ "github.com/burnout/go-burnout/accounts/abi"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/crypto"
)
// SignerFn is a signer function callback when a contract requires a method to
@@ -42,9 +42,9 @@ type CallOpts struct {
}
// TransactOpts is the collection of authorization data required to create a
-// valid Ethereum transaction.
+// valid Burnout transaction.
type TransactOpts struct {
- From common.Address // Ethereum account to send the transaction from
+ From common.Address // Burnout account to send the transaction from
Nonce *big.Int // Nonce to use for the transaction execution (nil = use pending state)
Signer SignerFn // Method to use for signing the transaction (mandatory)
@@ -56,11 +56,11 @@ type TransactOpts struct {
}
// BoundContract is the base wrapper object that reflects a contract on the
-// Ethereum network. It contains a collection of methods that are used by the
+// Burnout network. It contains a collection of methods that are used by the
// higher level contract bindings to operate.
type BoundContract struct {
- address common.Address // Deployment address of the contract on the Ethereum blockchain
- abi abi.ABI // Reflect based ABI to access the correct Ethereum methods
+ address common.Address // Deployment address of the contract on the Burnout blockchain
+ abi abi.ABI // Reflect based ABI to access the correct Burnout methods
caller ContractCaller // Read interface to interact with the blockchain
transactor ContractTransactor // Write interface to interact with the blockchain
}
@@ -76,7 +76,7 @@ func NewBoundContract(address common.Address, abi abi.ABI, caller ContractCaller
}
}
-// DeployContract deploys a contract onto the Ethereum blockchain and binds the
+// DeployContract deploys a contract onto the Burnout blockchain and binds the
// deployment address with a Go wrapper.
func DeployContract(opts *TransactOpts, abi abi.ABI, bytecode []byte, backend ContractBackend, params ...interface{}) (common.Address, *types.Transaction, *BoundContract, error) {
// Otherwise try to deploy the contract
@@ -109,7 +109,7 @@ func (c *BoundContract) Call(opts *CallOpts, result interface{}, method string,
return err
}
var (
- msg = ethereum.CallMsg{From: opts.From, To: &c.address, Data: input}
+ msg = burnout.CallMsg{From: opts.From, To: &c.address, Data: input}
ctx = ensureContext(opts.Context)
code []byte
output []byte
@@ -199,7 +199,7 @@ func (c *BoundContract) transact(opts *TransactOpts, contract *common.Address, i
}
}
// If the contract surely has code (or code is not needed), estimate the transaction
- msg := ethereum.CallMsg{From: opts.From, To: contract, Value: value, Data: input}
+ msg := burnout.CallMsg{From: opts.From, To: contract, Value: value, Data: input}
gasLimit, err = c.transactor.EstimateGas(ensureContext(opts.Context), msg)
if err != nil {
return nil, fmt.Errorf("failed to estimate gas needed: %v", err)
diff --git a/accounts/abi/bind/bind.go b/accounts/abi/bind/bind.go
index f587580884..30d4a50a43 100644
--- a/accounts/abi/bind/bind.go
+++ b/accounts/abi/bind/bind.go
@@ -1,23 +1,23 @@
-// Copyright 2016 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2016 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
-// Package bind generates Ethereum contract Go bindings.
+// Package bind generates Burnout contract Go bindings.
//
-// Detailed usage document and tutorial available on the go-ethereum Wiki page:
-// https://github.com/ethereum/go-ethereum/wiki/Native-DApps:-Go-bindings-to-Ethereum-contracts
+// Detailed usage document and tutorial available on the go-burnout Wiki page:
+// https://github.com/burnout/go-burnout/wiki/Native-DApps:-Go-bindings-to-Burnout-contracts
package bind
import (
@@ -28,7 +28,7 @@ import (
"text/template"
"unicode"
- "github.com/ethereum/go-ethereum/accounts/abi"
+ "github.com/burnout/go-burnout/accounts/abi"
"golang.org/x/tools/imports"
)
diff --git a/accounts/abi/bind/bind_test.go b/accounts/abi/bind/bind_test.go
index 43ed53b922..421e97e384 100644
--- a/accounts/abi/bind/bind_test.go
+++ b/accounts/abi/bind/bind_test.go
@@ -1,18 +1,18 @@
-// Copyright 2016 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2016 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package bind
@@ -26,7 +26,7 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/burnout/go-burnout/common"
"golang.org/x/tools/imports"
)
@@ -58,7 +58,7 @@ var bindTests = []struct {
// Test that all the official sample contracts bind correctly
{
`Token`,
- `https://ethereum.org/token`,
+ `https://burnout.org/token`,
`60606040526040516107fd3803806107fd83398101604052805160805160a05160c051929391820192909101600160a060020a0333166000908152600360209081526040822086905581548551838052601f6002600019610100600186161502019093169290920482018390047f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56390810193919290918801908390106100e857805160ff19168380011785555b506101189291505b8082111561017157600081556001016100b4565b50506002805460ff19168317905550505050610658806101a56000396000f35b828001600101855582156100ac579182015b828111156100ac5782518260005055916020019190600101906100fa565b50508060016000509080519060200190828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061017557805160ff19168380011785555b506100c89291506100b4565b5090565b82800160010185558215610165579182015b8281111561016557825182600050559160200191906001019061018756606060405236156100775760e060020a600035046306fdde03811461007f57806323b872dd146100dc578063313ce5671461010e57806370a082311461011a57806395d89b4114610132578063a9059cbb1461018e578063cae9ca51146101bd578063dc3080f21461031c578063dd62ed3e14610341575b610365610002565b61036760008054602060026001831615610100026000190190921691909104601f810182900490910260809081016040526060828152929190828280156104eb5780601f106104c0576101008083540402835291602001916104eb565b6103d5600435602435604435600160a060020a038316600090815260036020526040812054829010156104f357610002565b6103e760025460ff1681565b6103d560043560036020526000908152604090205481565b610367600180546020600282841615610100026000190190921691909104601f810182900490910260809081016040526060828152929190828280156104eb5780601f106104c0576101008083540402835291602001916104eb565b610365600435602435600160a060020a033316600090815260036020526040902054819010156103f157610002565b60806020604435600481810135601f8101849004909302840160405260608381526103d5948235946024803595606494939101919081908382808284375094965050505050505060006000836004600050600033600160a060020a03168152602001908152602001600020600050600087600160a060020a031681526020019081526020016000206000508190555084905080600160a060020a0316638f4ffcb1338630876040518560e060020a0281526004018085600160a060020a0316815260200184815260200183600160a060020a03168152602001806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600f02600301f150905090810190601f1680156102f25780820380516001836020036101000a031916815260200191505b50955050505050506000604051808303816000876161da5a03f11561000257505050509392505050565b6005602090815260043560009081526040808220909252602435815220546103d59081565b60046020818152903560009081526040808220909252602435815220546103d59081565b005b60405180806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600f02600301f150905090810190601f1680156103c75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b60408051918252519081900360200190f35b6060908152602090f35b600160a060020a03821660009081526040902054808201101561041357610002565b806003600050600033600160a060020a03168152602001908152602001600020600082828250540392505081905550806003600050600084600160a060020a0316815260200190815260200160002060008282825054019250508190555081600160a060020a031633600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b820191906000526020600020905b8154815290600101906020018083116104ce57829003601f168201915b505050505081565b600160a060020a03831681526040812054808301101561051257610002565b600160a060020a0380851680835260046020908152604080852033949094168086529382528085205492855260058252808520938552929052908220548301111561055c57610002565b816003600050600086600160a060020a03168152602001908152602001600020600082828250540392505081905550816003600050600085600160a060020a03168152602001908152602001600020600082828250540192505081905550816005600050600086600160a060020a03168152602001908152602001600020600050600033600160a060020a0316815260200190815260200160002060008282825054019250508190555082600160a060020a031633600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a3939250505056`,
`[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[],"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"},{"name":"_extraData","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"success","type":"bool"}],"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"spentAllowance","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"inputs":[{"name":"initialSupply","type":"uint256"},{"name":"tokenName","type":"string"},{"name":"decimalUnits","type":"uint8"},{"name":"tokenSymbol","type":"string"}],"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"}]`,
`
@@ -69,7 +69,7 @@ var bindTests = []struct {
},
{
`Crowdsale`,
- `https://ethereum.org/crowdsale`,
+ `https://burnout.org/crowdsale`,
`606060408190526007805460ff1916905560a0806105a883396101006040529051608051915160c05160e05160008054600160a060020a03199081169095178155670de0b6b3a7640000958602600155603c9093024201600355930260045560058054909216909217905561052f90819061007990396000f36060604052361561006c5760e060020a600035046301cb3b20811461008257806329dcb0cf1461014457806338af3eed1461014d5780636e66f6e91461015f5780637a3a0e84146101715780637b3e5e7b1461017a578063a035b1fe14610183578063dc0d3dff1461018c575b61020060075460009060ff161561032357610002565b61020060035460009042106103205760025460015490106103cb576002548154600160a060020a0316908290606082818181858883f150915460025460408051600160a060020a039390931683526020830191909152818101869052517fe842aea7a5f1b01049d752008c53c52890b1a6daf660cf39e8eec506112bbdf6945090819003909201919050a15b60405160008054600160a060020a039081169230909116319082818181858883f150506007805460ff1916600117905550505050565b6103a160035481565b6103ab600054600160a060020a031681565b6103ab600554600160a060020a031681565b6103a160015481565b6103a160025481565b6103a160045481565b6103be60043560068054829081101561000257506000526002027ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f8101547ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d409190910154600160a060020a03919091169082565b005b505050815481101561000257906000526020600020906002020160005060008201518160000160006101000a815481600160a060020a030219169083021790555060208201518160010160005055905050806002600082828250540192505081905550600560009054906101000a9004600160a060020a0316600160a060020a031663a9059cbb3360046000505484046040518360e060020a0281526004018083600160a060020a03168152602001828152602001925050506000604051808303816000876161da5a03f11561000257505060408051600160a060020a03331681526020810184905260018183015290517fe842aea7a5f1b01049d752008c53c52890b1a6daf660cf39e8eec506112bbdf692509081900360600190a15b50565b5060a0604052336060908152346080819052600680546001810180835592939282908280158290116102025760020281600202836000526020600020918201910161020291905b8082111561039d57805473ffffffffffffffffffffffffffffffffffffffff19168155600060019190910190815561036a565b5090565b6060908152602090f35b600160a060020a03166060908152602090f35b6060918252608052604090f35b5b60065481101561010e576006805482908110156100025760009182526002027ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0190600680549254600160a060020a0316928490811015610002576002027ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d40015460405190915082818181858883f19350505050507fe842aea7a5f1b01049d752008c53c52890b1a6daf660cf39e8eec506112bbdf660066000508281548110156100025760008290526002027ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f01548154600160a060020a039190911691908490811015610002576002027ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d40015460408051600160a060020a0394909416845260208401919091526000838201525191829003606001919050a16001016103cc56`,
`[{"constant":false,"inputs":[],"name":"checkGoalReached","outputs":[],"type":"function"},{"constant":true,"inputs":[],"name":"deadline","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"beneficiary","outputs":[{"name":"","type":"address"}],"type":"function"},{"constant":true,"inputs":[],"name":"tokenReward","outputs":[{"name":"","type":"address"}],"type":"function"},{"constant":true,"inputs":[],"name":"fundingGoal","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"amountRaised","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"price","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"funders","outputs":[{"name":"addr","type":"address"},{"name":"amount","type":"uint256"}],"type":"function"},{"inputs":[{"name":"ifSuccessfulSendTo","type":"address"},{"name":"fundingGoalInEthers","type":"uint256"},{"name":"durationInMinutes","type":"uint256"},{"name":"etherCostOfEachToken","type":"uint256"},{"name":"addressOfTokenUsedAsReward","type":"address"}],"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"backer","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"isContribution","type":"bool"}],"name":"FundTransfer","type":"event"}]`,
`
@@ -80,7 +80,7 @@ var bindTests = []struct {
},
{
`DAO`,
- `https://ethereum.org/dao`,
+ `https://burnout.org/dao`,
`606060405260405160808061145f833960e06040529051905160a05160c05160008054600160a060020a03191633179055600184815560028490556003839055600780549182018082558280158290116100b8576003028160030283600052602060002091820191016100b891906101c8565b50506060919091015160029190910155600160a060020a0381166000146100a65760008054600160a060020a031916821790555b505050506111f18061026e6000396000f35b505060408051608081018252600080825260208281018290528351908101845281815292820192909252426060820152600780549194509250811015610002579081527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6889050815181546020848101517401000000000000000000000000000000000000000002600160a060020a03199290921690921760a060020a60ff021916178255604083015180516001848101805460008281528690209195600293821615610100026000190190911692909204601f9081018390048201949192919091019083901061023e57805160ff19168380011785555b50610072929150610226565b5050600060028201556001015b8082111561023a578054600160a860020a031916815560018181018054600080835592600290821615610100026000190190911604601f81901061020c57506101bb565b601f0160209004906000526020600020908101906101bb91905b8082111561023a5760008155600101610226565b5090565b828001600101855582156101af579182015b828111156101af57825182600050559160200191906001019061025056606060405236156100b95760e060020a6000350463013cf08b81146100bb578063237e9492146101285780633910682114610281578063400e3949146102995780635daf08ca146102a257806369bd34361461032f5780638160f0b5146103385780638da5cb5b146103415780639644fcbd14610353578063aa02a90f146103be578063b1050da5146103c7578063bcca1fd3146104b5578063d3c0715b146104dc578063eceb29451461058d578063f2fde38b1461067b575b005b61069c6004356004805482908110156100025790600052602060002090600a02016000506005810154815460018301546003840154600485015460068601546007870154600160a060020a03959095169750929560020194919360ff828116946101009093041692919089565b60408051602060248035600481810135601f81018590048502860185019096528585526107759581359591946044949293909201918190840183828082843750949650505050505050600060006004600050848154811015610002575090527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19e600a8402908101547f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b909101904210806101e65750600481015460ff165b8061026757508060000160009054906101000a9004600160a060020a03168160010160005054846040518084600160a060020a0316606060020a0281526014018381526020018280519060200190808383829060006004602084601f0104600f02600301f15090500193505050506040518091039020816007016000505414155b8061027757506001546005820154105b1561109257610002565b61077560043560066020526000908152604090205481565b61077560055481565b61078760043560078054829081101561000257506000526003026000805160206111d18339815191528101547fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68a820154600160a060020a0382169260a060020a90920460ff16917fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c689019084565b61077560025481565b61077560015481565b610830600054600160a060020a031681565b604080516020604435600481810135601f81018490048402850184019095528484526100b9948135946024803595939460649492939101918190840183828082843750949650505050505050600080548190600160a060020a03908116339091161461084d57610002565b61077560035481565b604080516020604435600481810135601f8101849004840285018401909552848452610775948135946024803595939460649492939101918190840183828082843750506040805160209735808a0135601f81018a90048a0283018a019093528282529698976084979196506024909101945090925082915084018382808284375094965050505050505033600160a060020a031660009081526006602052604081205481908114806104ab5750604081205460078054909190811015610002579082526003026000805160206111d1833981519152015460a060020a900460ff16155b15610ce557610002565b6100b960043560243560443560005433600160a060020a03908116911614610b1857610002565b604080516020604435600481810135601f810184900484028501840190955284845261077594813594602480359593946064949293910191819084018382808284375094965050505050505033600160a060020a031660009081526006602052604081205481908114806105835750604081205460078054909190811015610002579082526003026000805160206111d18339815191520181505460a060020a900460ff16155b15610f1d57610002565b604080516020606435600481810135601f81018490048402850184019095528484526107759481359460248035956044359560849492019190819084018382808284375094965050505050505060006000600460005086815481101561000257908252600a027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b01815090508484846040518084600160a060020a0316606060020a0281526014018381526020018280519060200190808383829060006004602084601f0104600f02600301f150905001935050505060405180910390208160070160005054149150610cdc565b6100b960043560005433600160a060020a03908116911614610f0857610002565b604051808a600160a060020a031681526020018981526020018060200188815260200187815260200186815260200185815260200184815260200183815260200182810382528981815460018160011615610100020316600290048152602001915080546001816001161561010002031660029004801561075e5780601f106107335761010080835404028352916020019161075e565b820191906000526020600020905b81548152906001019060200180831161074157829003601f168201915b50509a505050505050505050505060405180910390f35b60408051918252519081900360200190f35b60408051600160a060020a038616815260208101859052606081018390526080918101828152845460026001821615610100026000190190911604928201839052909160a08301908590801561081e5780601f106107f35761010080835404028352916020019161081e565b820191906000526020600020905b81548152906001019060200180831161080157829003601f168201915b50509550505050505060405180910390f35b60408051600160a060020a03929092168252519081900360200190f35b600160a060020a03851660009081526006602052604081205414156108a957604060002060078054918290556001820180825582801582901161095c5760030281600302836000526020600020918201910161095c9190610a4f565b600160a060020a03851660009081526006602052604090205460078054919350908390811015610002575060005250600381026000805160206111d183398151915201805474ff0000000000000000000000000000000000000000191660a060020a85021781555b60408051600160a060020a03871681526020810186905281517f27b022af4a8347100c7a041ce5ccf8e14d644ff05de696315196faae8cd50c9b929181900390910190a15050505050565b505050915081506080604051908101604052808681526020018581526020018481526020014281526020015060076000508381548110156100025790600052602060002090600302016000508151815460208481015160a060020a02600160a060020a03199290921690921774ff00000000000000000000000000000000000000001916178255604083015180516001848101805460008281528690209195600293821615610100026000190190911692909204601f90810183900482019491929190910190839010610ad357805160ff19168380011785555b50610b03929150610abb565b5050600060028201556001015b80821115610acf57805474ffffffffffffffffffffffffffffffffffffffffff1916815560018181018054600080835592600290821615610100026000190190911604601f819010610aa15750610a42565b601f016020900490600052602060002090810190610a4291905b80821115610acf5760008155600101610abb565b5090565b82800160010185558215610a36579182015b82811115610a36578251826000505591602001919060010190610ae5565b50506060919091015160029190910155610911565b600183905560028290556003819055604080518481526020810184905280820183905290517fa439d3fa452be5e0e1e24a8145e715f4fd8b9c08c96a42fd82a855a85e5d57de9181900360600190a1505050565b50508585846040518084600160a060020a0316606060020a0281526014018381526020018280519060200190808383829060006004602084601f0104600f02600301f150905001935050505060405180910390208160070160005081905550600260005054603c024201816003016000508190555060008160040160006101000a81548160ff0219169083021790555060008160040160016101000a81548160ff02191690830217905550600081600501600050819055507f646fec02522b41e7125cfc859a64fd4f4cefd5dc3b6237ca0abe251ded1fa881828787876040518085815260200184600160a060020a03168152602001838152602001806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600f02600301f150905090810190601f168015610cc45780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a1600182016005555b50949350505050565b6004805460018101808355909190828015829011610d1c57600a0281600a028360005260206000209182019101610d1c9190610db8565b505060048054929450918491508110156100025790600052602060002090600a02016000508054600160a060020a031916871781556001818101879055855160028381018054600082815260209081902096975091959481161561010002600019011691909104601f90810182900484019391890190839010610ed857805160ff19168380011785555b50610b6c929150610abb565b50506001015b80821115610acf578054600160a060020a03191681556000600182810182905560028381018054848255909281161561010002600019011604601f819010610e9c57505b5060006003830181905560048301805461ffff191690556005830181905560068301819055600783018190556008830180548282559082526020909120610db2916002028101905b80821115610acf57805474ffffffffffffffffffffffffffffffffffffffffff1916815560018181018054600080835592600290821615610100026000190190911604601f819010610eba57505b5050600101610e44565b601f016020900490600052602060002090810190610dfc9190610abb565b601f016020900490600052602060002090810190610e929190610abb565b82800160010185558215610da6579182015b82811115610da6578251826000505591602001919060010190610eea565b60008054600160a060020a0319168217905550565b600480548690811015610002576000918252600a027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b01905033600160a060020a0316600090815260098201602052604090205490915060ff1660011415610f8457610002565b33600160a060020a031660009081526009820160205260409020805460ff1916600190811790915560058201805490910190558315610fcd576006810180546001019055610fda565b6006810180546000190190555b7fc34f869b7ff431b034b7b9aea9822dac189a685e0b015c7d1be3add3f89128e8858533866040518085815260200184815260200183600160a060020a03168152602001806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600f02600301f150905090810190601f16801561107a5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a1509392505050565b6006810154600354901315611158578060000160009054906101000a9004600160a060020a0316600160a060020a03168160010160005054670de0b6b3a76400000284604051808280519060200190808383829060006004602084601f0104600f02600301f150905090810190601f1680156111225780820380516001836020036101000a031916815260200191505b5091505060006040518083038185876185025a03f15050505060048101805460ff191660011761ff00191661010017905561116d565b60048101805460ff191660011761ff00191690555b60068101546005820154600483015460408051888152602081019490945283810192909252610100900460ff166060830152517fd220b7272a8b6d0d7d6bcdace67b936a8f175e6d5c1b3ee438b72256b32ab3af9181900360800190a1509291505056a66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688`,
`[{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"proposals","outputs":[{"name":"recipient","type":"address"},{"name":"amount","type":"uint256"},{"name":"description","type":"string"},{"name":"votingDeadline","type":"uint256"},{"name":"executed","type":"bool"},{"name":"proposalPassed","type":"bool"},{"name":"numberOfVotes","type":"uint256"},{"name":"currentResult","type":"int256"},{"name":"proposalHash","type":"bytes32"}],"type":"function"},{"constant":false,"inputs":[{"name":"proposalNumber","type":"uint256"},{"name":"transactionBytecode","type":"bytes"}],"name":"executeProposal","outputs":[{"name":"result","type":"int256"}],"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"memberId","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"numProposals","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"members","outputs":[{"name":"member","type":"address"},{"name":"canVote","type":"bool"},{"name":"name","type":"string"},{"name":"memberSince","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"debatingPeriodInMinutes","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"minimumQuorum","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"type":"function"},{"constant":false,"inputs":[{"name":"targetMember","type":"address"},{"name":"canVote","type":"bool"},{"name":"memberName","type":"string"}],"name":"changeMembership","outputs":[],"type":"function"},{"constant":true,"inputs":[],"name":"majorityMargin","outputs":[{"name":"","type":"int256"}],"type":"function"},{"constant":false,"inputs":[{"name":"beneficiary","type":"address"},{"name":"etherAmount","type":"uint256"},{"name":"JobDescription","type":"string"},{"name":"transactionBytecode","type":"bytes"}],"name":"newProposal","outputs":[{"name":"proposalID","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[{"name":"minimumQuorumForProposals","type":"uint256"},{"name":"minutesForDebate","type":"uint256"},{"name":"marginOfVotesForMajority","type":"int256"}],"name":"changeVotingRules","outputs":[],"type":"function"},{"constant":false,"inputs":[{"name":"proposalNumber","type":"uint256"},{"name":"supportsProposal","type":"bool"},{"name":"justificationText","type":"string"}],"name":"vote","outputs":[{"name":"voteID","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[{"name":"proposalNumber","type":"uint256"},{"name":"beneficiary","type":"address"},{"name":"etherAmount","type":"uint256"},{"name":"transactionBytecode","type":"bytes"}],"name":"checkProposalCode","outputs":[{"name":"codeChecksOut","type":"bool"}],"type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"type":"function"},{"inputs":[{"name":"minimumQuorumForProposals","type":"uint256"},{"name":"minutesForDebate","type":"uint256"},{"name":"marginOfVotesForMajority","type":"int256"},{"name":"congressLeader","type":"address"}],"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"proposalID","type":"uint256"},{"indexed":false,"name":"recipient","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"description","type":"string"}],"name":"ProposalAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"proposalID","type":"uint256"},{"indexed":false,"name":"position","type":"bool"},{"indexed":false,"name":"voter","type":"address"},{"indexed":false,"name":"justification","type":"string"}],"name":"Voted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"proposalID","type":"uint256"},{"indexed":false,"name":"result","type":"int256"},{"indexed":false,"name":"quorum","type":"uint256"},{"indexed":false,"name":"active","type":"bool"}],"name":"ProposalTallied","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"member","type":"address"},{"indexed":false,"name":"isMember","type":"bool"}],"name":"MembershipChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"minimumQuorum","type":"uint256"},{"indexed":false,"name":"debatingPeriodInMinutes","type":"uint256"},{"indexed":false,"name":"majorityMargin","type":"int256"}],"name":"ChangeOfRules","type":"event"}]`,
`
@@ -457,13 +457,13 @@ func TestBindings(t *testing.T) {
if !common.FileExist(gocmd) {
t.Skip("go sdk not found for testing")
}
- // Skip the test if the go-ethereum sources are symlinked (https://github.com/golang/go/issues/14845)
+ // Skip the test if the go-burnout sources are symlinked (https://github.com/golang/go/issues/14845)
linkTestCode := fmt.Sprintf("package linktest\nfunc CheckSymlinks(){\nfmt.Println(backends.NewSimulatedBackend(nil))\n}")
linkTestDeps, err := imports.Process(os.TempDir(), []byte(linkTestCode), nil)
if err != nil {
t.Fatalf("failed check for goimports symlink bug: %v", err)
}
- if !strings.Contains(string(linkTestDeps), "go-ethereum") {
+ if !strings.Contains(string(linkTestDeps), "go-burnout") {
t.Skip("symlinked environment doesn't support bind (https://github.com/golang/go/issues/14845)")
}
// Create a temporary workspace for the test suite
diff --git a/accounts/abi/bind/template.go b/accounts/abi/bind/template.go
index d07610e7c2..b785db897f 100644
--- a/accounts/abi/bind/template.go
+++ b/accounts/abi/bind/template.go
@@ -1,22 +1,22 @@
-// Copyright 2016 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2016 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package bind
-import "github.com/ethereum/go-ethereum/accounts/abi"
+import "github.com/burnout/go-burnout/accounts/abi"
// tmplData is the data structure required to fill the binding template.
type tmplData struct {
@@ -65,7 +65,7 @@ package {{.Package}}
// {{.Type}}Bin is the compiled bytecode used for deploying new contracts.
const {{.Type}}Bin = ` + "`" + `{{.InputBin}}` + "`" + `
- // Deploy{{.Type}} deploys a new Ethereum contract, binding an instance of {{.Type}} to it.
+ // Deploy{{.Type}} deploys a new Burnout contract, binding an instance of {{.Type}} to it.
func Deploy{{.Type}}(auth *bind.TransactOpts, backend bind.ContractBackend {{range .Constructor.Inputs}}, {{.Name}} {{bindtype .Type}}{{end}}) (common.Address, *types.Transaction, *{{.Type}}, error) {
parsed, err := abi.JSON(strings.NewReader({{.Type}}ABI))
if err != nil {
@@ -79,23 +79,23 @@ package {{.Package}}
}
{{end}}
- // {{.Type}} is an auto generated Go binding around an Ethereum contract.
+ // {{.Type}} is an auto generated Go binding around an Burnout contract.
type {{.Type}} struct {
{{.Type}}Caller // Read-only binding to the contract
{{.Type}}Transactor // Write-only binding to the contract
}
- // {{.Type}}Caller is an auto generated read-only Go binding around an Ethereum contract.
+ // {{.Type}}Caller is an auto generated read-only Go binding around an Burnout contract.
type {{.Type}}Caller struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
- // {{.Type}}Transactor is an auto generated write-only Go binding around an Ethereum contract.
+ // {{.Type}}Transactor is an auto generated write-only Go binding around an Burnout contract.
type {{.Type}}Transactor struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
- // {{.Type}}Session is an auto generated Go binding around an Ethereum contract,
+ // {{.Type}}Session is an auto generated Go binding around an Burnout contract,
// with pre-set call and transact options.
type {{.Type}}Session struct {
Contract *{{.Type}} // Generic contract binding to set the session for
@@ -103,31 +103,31 @@ package {{.Package}}
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
- // {{.Type}}CallerSession is an auto generated read-only Go binding around an Ethereum contract,
+ // {{.Type}}CallerSession is an auto generated read-only Go binding around an Burnout contract,
// with pre-set call options.
type {{.Type}}CallerSession struct {
Contract *{{.Type}}Caller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
- // {{.Type}}TransactorSession is an auto generated write-only Go binding around an Ethereum contract,
+ // {{.Type}}TransactorSession is an auto generated write-only Go binding around an Burnout contract,
// with pre-set transact options.
type {{.Type}}TransactorSession struct {
Contract *{{.Type}}Transactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
- // {{.Type}}Raw is an auto generated low-level Go binding around an Ethereum contract.
+ // {{.Type}}Raw is an auto generated low-level Go binding around an Burnout contract.
type {{.Type}}Raw struct {
Contract *{{.Type}} // Generic contract binding to access the raw methods on
}
- // {{.Type}}CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
+ // {{.Type}}CallerRaw is an auto generated low-level read-only Go binding around an Burnout contract.
type {{.Type}}CallerRaw struct {
Contract *{{.Type}}Caller // Generic read-only contract binding to access the raw methods on
}
- // {{.Type}}TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
+ // {{.Type}}TransactorRaw is an auto generated low-level write-only Go binding around an Burnout contract.
type {{.Type}}TransactorRaw struct {
Contract *{{.Type}}Transactor // Generic write-only contract binding to access the raw methods on
}
@@ -274,8 +274,8 @@ const tmplSourceJava = `
package {{.Package}};
-import org.ethereum.geth.*;
-import org.ethereum.geth.internal.*;
+import org.burnout.geth.*;
+import org.burnout.geth.internal.*;
{{range $contract := .Contracts}}
public class {{.Type}} {
@@ -286,8 +286,8 @@ import org.ethereum.geth.internal.*;
// BYTECODE is the compiled bytecode used for deploying new contracts.
public final static byte[] BYTECODE = "{{.InputBin}}".getBytes();
- // deploy deploys a new Ethereum contract, binding an instance of {{.Type}} to it.
- public static {{.Type}} deploy(TransactOpts auth, EthereumClient client{{range .Constructor.Inputs}}, {{bindtype .Type}} {{.Name}}{{end}}) throws Exception {
+ // deploy deploys a new Burnout contract, binding an instance of {{.Type}} to it.
+ public static {{.Type}} deploy(TransactOpts auth, BurnoutClient client{{range .Constructor.Inputs}}, {{bindtype .Type}} {{.Name}}{{end}}) throws Exception {
Interfaces args = Geth.newInterfaces({{(len .Constructor.Inputs)}});
{{range $index, $element := .Constructor.Inputs}}
args.set({{$index}}, Geth.newInterface()); args.get({{$index}}).set{{namedtype (bindtype .Type) .Type}}({{.Name}});
@@ -303,17 +303,17 @@ import org.ethereum.geth.internal.*;
}
{{end}}
- // Ethereum address where this contract is located at.
+ // Burnout address where this contract is located at.
public final Address Address;
- // Ethereum transaction in which this contract was deployed (if known!).
+ // Burnout transaction in which this contract was deployed (if known!).
public final Transaction Deployer;
// Contract instance bound to a blockchain address.
private final BoundContract Contract;
// Creates a new instance of {{.Type}}, bound to a specific deployed contract.
- public {{.Type}}(Address address, EthereumClient client) throws Exception {
+ public {{.Type}}(Address address, BurnoutClient client) throws Exception {
this(Geth.bindContract(address, ABI, client));
}
diff --git a/accounts/abi/bind/util.go b/accounts/abi/bind/util.go
index d129993ca1..39b1c39cd9 100644
--- a/accounts/abi/bind/util.go
+++ b/accounts/abi/bind/util.go
@@ -1,18 +1,18 @@
-// Copyright 2016 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2016 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package bind
@@ -21,9 +21,9 @@ import (
"fmt"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/log"
)
// WaitMined waits for tx to be mined on the blockchain.
diff --git a/accounts/abi/bind/util_test.go b/accounts/abi/bind/util_test.go
index d24aa721e5..0010ba67e5 100644
--- a/accounts/abi/bind/util_test.go
+++ b/accounts/abi/bind/util_test.go
@@ -1,18 +1,18 @@
-// Copyright 2016 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2016 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package bind_test
@@ -22,12 +22,12 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/burnout/go-burnout/accounts/abi/bind"
+ "github.com/burnout/go-burnout/accounts/abi/bind/backends"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/core"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/crypto"
)
var testKey, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291")
diff --git a/accounts/abi/doc.go b/accounts/abi/doc.go
index 8242068582..84c20cbd84 100644
--- a/accounts/abi/doc.go
+++ b/accounts/abi/doc.go
@@ -1,23 +1,23 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
-// Package abi implements the Ethereum ABI (Application Binary
+// Package abi implements the Burnout ABI (Application Binary
// Interface).
//
-// The Ethereum ABI is strongly typed, known at compile time
+// The Burnout ABI is strongly typed, known at compile time
// and static. This ABI will handle basic type casting; unsigned
// to signed and visa versa. It does not handle slice casting such
// as unsigned slice to signed slice. Bit size type casting is also
diff --git a/accounts/abi/error.go b/accounts/abi/error.go
index 420acf4182..94c060a5fb 100644
--- a/accounts/abi/error.go
+++ b/accounts/abi/error.go
@@ -1,18 +1,18 @@
-// Copyright 2016 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2016 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package abi
diff --git a/accounts/abi/event.go b/accounts/abi/event.go
index 51ab842418..3d151c3331 100644
--- a/accounts/abi/event.go
+++ b/accounts/abi/event.go
@@ -1,18 +1,18 @@
-// Copyright 2016 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2016 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package abi
@@ -20,8 +20,8 @@ import (
"fmt"
"strings"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/crypto"
)
// Event is an event potentially triggered by the EVM's LOG mechanism. The Event
diff --git a/accounts/abi/event_test.go b/accounts/abi/event_test.go
index b5054a0329..57dbabcc3a 100644
--- a/accounts/abi/event_test.go
+++ b/accounts/abi/event_test.go
@@ -1,18 +1,18 @@
-// Copyright 2016 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2016 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package abi
@@ -20,8 +20,8 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/crypto"
)
func TestEventId(t *testing.T) {
diff --git a/accounts/abi/method.go b/accounts/abi/method.go
index 62b3d29575..db5e2a17ca 100644
--- a/accounts/abi/method.go
+++ b/accounts/abi/method.go
@@ -1,18 +1,18 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package abi
@@ -21,7 +21,7 @@ import (
"reflect"
"strings"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/burnout/go-burnout/crypto"
)
// Callable method given a `Name` and whether the method is a constant.
diff --git a/accounts/abi/numbers.go b/accounts/abi/numbers.go
index 5d3efff52e..8922242618 100644
--- a/accounts/abi/numbers.go
+++ b/accounts/abi/numbers.go
@@ -1,18 +1,18 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package abi
@@ -20,8 +20,8 @@ import (
"math/big"
"reflect"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/common/math"
)
var (
diff --git a/accounts/abi/numbers_test.go b/accounts/abi/numbers_test.go
index b9ff5aef17..c45a790d6e 100644
--- a/accounts/abi/numbers_test.go
+++ b/accounts/abi/numbers_test.go
@@ -1,18 +1,18 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package abi
diff --git a/accounts/abi/pack.go b/accounts/abi/pack.go
index 4d8a3f0318..ebcfb99dbb 100644
--- a/accounts/abi/pack.go
+++ b/accounts/abi/pack.go
@@ -1,18 +1,18 @@
-// Copyright 2016 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2016 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package abi
@@ -20,8 +20,8 @@ import (
"math/big"
"reflect"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/common/math"
)
// packBytesSlice packs the given bytes as [L, V] as the canonical representation
diff --git a/accounts/abi/pack_test.go b/accounts/abi/pack_test.go
index c6cfb56ea0..5fde568631 100644
--- a/accounts/abi/pack_test.go
+++ b/accounts/abi/pack_test.go
@@ -1,18 +1,18 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package abi
@@ -24,7 +24,7 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/burnout/go-burnout/common"
)
func TestPack(t *testing.T) {
diff --git a/accounts/abi/reflect.go b/accounts/abi/reflect.go
index 8fa75df07f..6fec9c9482 100644
--- a/accounts/abi/reflect.go
+++ b/accounts/abi/reflect.go
@@ -1,18 +1,18 @@
-// Copyright 2016 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2016 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package abi
diff --git a/accounts/abi/type.go b/accounts/abi/type.go
index 5f20babb3f..a63daed694 100644
--- a/accounts/abi/type.go
+++ b/accounts/abi/type.go
@@ -1,18 +1,18 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package abi
diff --git a/accounts/abi/type_test.go b/accounts/abi/type_test.go
index 984a5bb4c1..68631f5ac8 100644
--- a/accounts/abi/type_test.go
+++ b/accounts/abi/type_test.go
@@ -1,18 +1,18 @@
-// Copyright 2016 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2016 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package abi
@@ -21,7 +21,7 @@ import (
"reflect"
"testing"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/burnout/go-burnout/common"
)
// typeWithoutStringer is a alias for the Type type which simply doesn't implement
diff --git a/accounts/abi/unpack.go b/accounts/abi/unpack.go
index fc41c88ac7..57a76152f8 100644
--- a/accounts/abi/unpack.go
+++ b/accounts/abi/unpack.go
@@ -1,18 +1,18 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package abi
@@ -22,7 +22,7 @@ import (
"math/big"
"reflect"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/burnout/go-burnout/common"
)
// toGoSliceType parses the input and casts it to the proper slice defined by the ABI
diff --git a/accounts/abi/unpack_test.go b/accounts/abi/unpack_test.go
index 8e3afee4e6..2d9e4d37fb 100644
--- a/accounts/abi/unpack_test.go
+++ b/accounts/abi/unpack_test.go
@@ -1,18 +1,18 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package abi
@@ -24,7 +24,7 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/burnout/go-burnout/common"
)
func TestSimpleMethodUnpack(t *testing.T) {
diff --git a/accounts/accounts.go b/accounts/accounts.go
index 76951e1a42..740255c580 100644
--- a/accounts/accounts.go
+++ b/accounts/accounts.go
@@ -1,35 +1,35 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2017 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
-// Package accounts implements high level Ethereum account management.
+// Package accounts implements high level Burnout account management.
package accounts
import (
"math/big"
- ethereum "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/event"
+ burnout "github.com/burnout/go-burnout"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/event"
)
-// Account represents an Ethereum account located at a specific location defined
+// Account represents an Burnout account located at a specific location defined
// by the optional URL field.
type Account struct {
- Address common.Address `json:"address"` // Ethereum account address derived from the key
+ Address common.Address `json:"address"` // Burnout account address derived from the key
URL URL `json:"url"` // Optional resource locator within a backend
}
@@ -85,7 +85,7 @@ type Wallet interface {
//
// You can disable automatic account discovery by calling SelfDerive with a nil
// chain state reader.
- SelfDerive(base DerivationPath, chain ethereum.ChainStateReader)
+ SelfDerive(base DerivationPath, chain burnout.ChainStateReader)
// SignHash requests the wallet to sign the given hash.
//
diff --git a/accounts/errors.go b/accounts/errors.go
index 64da8821c8..51f6ae8c15 100644
--- a/accounts/errors.go
+++ b/accounts/errors.go
@@ -1,18 +1,18 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2017 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package accounts
diff --git a/accounts/hd.go b/accounts/hd.go
index 277f688e48..60b0956753 100644
--- a/accounts/hd.go
+++ b/accounts/hd.go
@@ -1,18 +1,18 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2017 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package accounts
@@ -50,10 +50,10 @@ var DefaultLedgerBaseDerivationPath = DerivationPath{0x80000000 + 44, 0x80000000
// The BIP-44 spec https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki
// defines that the `purpose` be 44' (or 0x8000002C) for crypto currencies, and
// SLIP-44 https://github.com/satoshilabs/slips/blob/master/slip-0044.md assigns
-// the `coin_type` 60' (or 0x8000003C) to Ethereum.
+// the `coin_type` 60' (or 0x8000003C) to Burnout.
//
-// The root path for Ethereum is m/44'/60'/0'/0 according to the specification
-// from https://github.com/ethereum/EIPs/issues/84, albeit it's not set in stone
+// The root path for Burnout is m/44'/60'/0'/0 according to the specification
+// from https://github.com/burnout/EIPs/issues/84, albeit it's not set in stone
// yet whether accounts should increment the last component or the children of
// that. We will go with the simpler approach of incrementing the last component.
type DerivationPath []uint32
diff --git a/accounts/hd_test.go b/accounts/hd_test.go
index b6b23230dc..329f597e74 100644
--- a/accounts/hd_test.go
+++ b/accounts/hd_test.go
@@ -1,18 +1,18 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2017 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package accounts
diff --git a/accounts/keystore/account_cache.go b/accounts/keystore/account_cache.go
index dc6ac6ccb3..0f8dd069f5 100644
--- a/accounts/keystore/account_cache.go
+++ b/accounts/keystore/account_cache.go
@@ -1,18 +1,18 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2017 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package keystore
@@ -28,9 +28,9 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/burnout/go-burnout/accounts"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/log"
)
// Minimum amount of time between cache reloads. This limit applies if the platform does
diff --git a/accounts/keystore/account_cache_test.go b/accounts/keystore/account_cache_test.go
index ab8aa9e6c3..5a98998848 100644
--- a/accounts/keystore/account_cache_test.go
+++ b/accounts/keystore/account_cache_test.go
@@ -1,18 +1,18 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2017 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package keystore
@@ -28,8 +28,8 @@ import (
"github.com/cespare/cp"
"github.com/davecgh/go-spew/spew"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/burnout/go-burnout/accounts"
+ "github.com/burnout/go-burnout/common"
)
var (
@@ -95,7 +95,7 @@ func TestWatchNoDir(t *testing.T) {
// Create ks but not the directory that it watches.
rand.Seed(time.Now().UnixNano())
- dir := filepath.Join(os.TempDir(), fmt.Sprintf("eth-keystore-watch-test-%d-%d", os.Getpid(), rand.Int()))
+ dir := filepath.Join(os.TempDir(), fmt.Sprintf("brn-keystore-watch-test-%d-%d", os.Getpid(), rand.Int()))
ks := NewKeyStore(dir, LightScryptN, LightScryptP)
list := ks.Accounts()
diff --git a/accounts/keystore/key.go b/accounts/keystore/key.go
index 211fa863d7..719374ad0e 100644
--- a/accounts/keystore/key.go
+++ b/accounts/keystore/key.go
@@ -1,18 +1,18 @@
-// Copyright 2014 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2014 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package keystore
@@ -29,9 +29,9 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/burnout/go-burnout/accounts"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/crypto"
"github.com/pborman/uuid"
)
diff --git a/accounts/keystore/keystore.go b/accounts/keystore/keystore.go
index 80ccd37419..d8ab75010c 100644
--- a/accounts/keystore/keystore.go
+++ b/accounts/keystore/keystore.go
@@ -1,23 +1,23 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2017 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
// Package keystore implements encrypted storage of secp256k1 private keys.
//
// Keys are stored as encrypted JSON files according to the Web3 Secret Storage specification.
-// See https://github.com/ethereum/wiki/wiki/Web3-Secret-Storage-Definition for more information.
+// See https://github.com/burnout/wiki/wiki/Web3-Secret-Storage-Definition for more information.
package keystore
import (
@@ -33,11 +33,11 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/event"
+ "github.com/burnout/go-burnout/accounts"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/crypto"
+ "github.com/burnout/go-burnout/event"
)
var (
@@ -472,7 +472,7 @@ func (ks *KeyStore) Update(a accounts.Account, passphrase, newPassphrase string)
return ks.storage.StoreKey(a.URL.Path, key, newPassphrase)
}
-// ImportPreSaleKey decrypts the given Ethereum presale wallet and stores
+// ImportPreSaleKey decrypts the given Burnout presale wallet and stores
// a key file in the key directory. The key file is encrypted with the same passphrase.
func (ks *KeyStore) ImportPreSaleKey(keyJSON []byte, passphrase string) (accounts.Account, error) {
a, _, err := importPreSaleKey(ks.storage, keyJSON, passphrase)
diff --git a/accounts/keystore/keystore_passphrase.go b/accounts/keystore/keystore_passphrase.go
index 535608a600..c595270314 100644
--- a/accounts/keystore/keystore_passphrase.go
+++ b/accounts/keystore/keystore_passphrase.go
@@ -1,25 +1,25 @@
-// Copyright 2014 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2014 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
/*
This key store behaves as KeyStorePlain with the difference that
the private key is encrypted and on disk uses another JSON encoding.
-The crypto is documented at https://github.com/ethereum/wiki/wiki/Web3-Secret-Storage-Definition
+The crypto is documented at https://github.com/burnout/wiki/wiki/Web3-Secret-Storage-Definition
*/
@@ -35,10 +35,10 @@ import (
"io/ioutil"
"path/filepath"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/crypto/randentropy"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/common/math"
+ "github.com/burnout/go-burnout/crypto"
+ "github.com/burnout/go-burnout/crypto/randentropy"
"github.com/pborman/uuid"
"golang.org/x/crypto/pbkdf2"
"golang.org/x/crypto/scrypt"
diff --git a/accounts/keystore/keystore_passphrase_test.go b/accounts/keystore/keystore_passphrase_test.go
index 630682cebd..fb6e73eea6 100644
--- a/accounts/keystore/keystore_passphrase_test.go
+++ b/accounts/keystore/keystore_passphrase_test.go
@@ -1,18 +1,18 @@
-// Copyright 2016 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2016 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package keystore
@@ -20,7 +20,7 @@ import (
"io/ioutil"
"testing"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/burnout/go-burnout/common"
)
const (
diff --git a/accounts/keystore/keystore_plain.go b/accounts/keystore/keystore_plain.go
index b490ca72b8..58cc3bade4 100644
--- a/accounts/keystore/keystore_plain.go
+++ b/accounts/keystore/keystore_plain.go
@@ -1,18 +1,18 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package keystore
@@ -22,7 +22,7 @@ import (
"os"
"path/filepath"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/burnout/go-burnout/common"
)
type keyStorePlain struct {
diff --git a/accounts/keystore/keystore_plain_test.go b/accounts/keystore/keystore_plain_test.go
index a1c3bc4b6c..3d9cfd40b7 100644
--- a/accounts/keystore/keystore_plain_test.go
+++ b/accounts/keystore/keystore_plain_test.go
@@ -1,18 +1,18 @@
-// Copyright 2014 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2014 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package keystore
@@ -27,8 +27,8 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/crypto"
)
func tmpKeyStoreIface(t *testing.T, encrypted bool) (dir string, ks keyStore) {
@@ -121,7 +121,7 @@ func TestImportPreSaleKey(t *testing.T) {
}
}
-// Test and utils for the key store tests in the Ethereum JSON tests;
+// Test and utils for the key store tests in the Burnout JSON tests;
// testdataKeyStoreTests/basic_tests.json
type KeyStoreTestV3 struct {
Json encryptedKeyJSONV3
diff --git a/accounts/keystore/keystore_test.go b/accounts/keystore/keystore_test.go
index 132b74439e..da3eae95bd 100644
--- a/accounts/keystore/keystore_test.go
+++ b/accounts/keystore/keystore_test.go
@@ -1,18 +1,18 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2017 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package keystore
@@ -26,9 +26,9 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/event"
+ "github.com/burnout/go-burnout/accounts"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/event"
)
var testSigData = make([]byte, 32)
@@ -353,7 +353,7 @@ func TestWalletNotifications(t *testing.T) {
}
func tmpKeyStore(t *testing.T, encrypted bool) (string, *KeyStore) {
- d, err := ioutil.TempDir("", "eth-keystore-test")
+ d, err := ioutil.TempDir("", "brn-keystore-test")
if err != nil {
t.Fatal(err)
}
diff --git a/accounts/keystore/keystore_wallet.go b/accounts/keystore/keystore_wallet.go
index 758fdfe364..f3b134f7ed 100644
--- a/accounts/keystore/keystore_wallet.go
+++ b/accounts/keystore/keystore_wallet.go
@@ -1,27 +1,27 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2017 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package keystore
import (
"math/big"
- ethereum "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/core/types"
+ burnout "github.com/burnout/go-burnout"
+ "github.com/burnout/go-burnout/accounts"
+ "github.com/burnout/go-burnout/core/types"
)
// keystoreWallet implements the accounts.Wallet interface for the original
@@ -76,7 +76,7 @@ func (w *keystoreWallet) Derive(path accounts.DerivationPath, pin bool) (account
// SelfDerive implements accounts.Wallet, but is a noop for plain wallets since
// there is no notion of hierarchical account derivation for plain keystore accounts.
-func (w *keystoreWallet) SelfDerive(base accounts.DerivationPath, chain ethereum.ChainStateReader) {}
+func (w *keystoreWallet) SelfDerive(base accounts.DerivationPath, chain burnout.ChainStateReader) {}
// SignHash implements accounts.Wallet, attempting to sign the given hash with
// the given account. If the wallet does not wrap this particular account, an
diff --git a/accounts/keystore/presale.go b/accounts/keystore/presale.go
index ed900ad085..0994ac3e79 100644
--- a/accounts/keystore/presale.go
+++ b/accounts/keystore/presale.go
@@ -1,18 +1,18 @@
-// Copyright 2016 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2016 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package keystore
@@ -25,8 +25,8 @@ import (
"errors"
"fmt"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/burnout/go-burnout/accounts"
+ "github.com/burnout/go-burnout/crypto"
"github.com/pborman/uuid"
"golang.org/x/crypto/pbkdf2"
)
@@ -61,7 +61,7 @@ func decryptPreSaleKey(fileContent []byte, password string) (key *Key, err error
iv := encSeedBytes[:16]
cipherText := encSeedBytes[16:]
/*
- See https://github.com/ethereum/pyethsaletool
+ See https://github.com/burnout/pyethsaletool
pyethsaletool generates the encryption key from password by
2000 rounds of PBKDF2 with HMAC-SHA-256 using password as salt (:().
diff --git a/accounts/keystore/watch.go b/accounts/keystore/watch.go
index f4d6477912..2ff3c96e3f 100644
--- a/accounts/keystore/watch.go
+++ b/accounts/keystore/watch.go
@@ -1,18 +1,18 @@
-// Copyright 2016 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2016 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
// +build darwin,!ios freebsd linux,!arm64 netbsd solaris
@@ -21,7 +21,7 @@ package keystore
import (
"time"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/burnout/go-burnout/log"
"github.com/rjeczalik/notify"
)
diff --git a/accounts/keystore/watch_fallback.go b/accounts/keystore/watch_fallback.go
index 7c5e9cb2e2..1ad7bb697c 100644
--- a/accounts/keystore/watch_fallback.go
+++ b/accounts/keystore/watch_fallback.go
@@ -1,18 +1,18 @@
-// Copyright 2016 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2016 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
// +build ios linux,arm64 windows !darwin,!freebsd,!linux,!netbsd,!solaris
diff --git a/accounts/manager.go b/accounts/manager.go
index 78ddb13683..331f6e1ada 100644
--- a/accounts/manager.go
+++ b/accounts/manager.go
@@ -1,18 +1,18 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2017 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package accounts
@@ -21,7 +21,7 @@ import (
"sort"
"sync"
- "github.com/ethereum/go-ethereum/event"
+ "github.com/burnout/go-burnout/event"
)
// Manager is an overarching account manager that can communicate with various
diff --git a/accounts/url.go b/accounts/url.go
index 47f9d8ee4b..9b6397f630 100644
--- a/accounts/url.go
+++ b/accounts/url.go
@@ -1,18 +1,18 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2017 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package accounts
@@ -33,7 +33,7 @@ import (
// references to the original version, whereas the latter is important to ensure
// one single canonical form opposed to many allowed ones by the RFC 3986 spec.
//
-// As such, these URLs should not be used outside of the scope of an Ethereum
+// As such, these URLs should not be used outside of the scope of an Burnout
// wallet or account.
type URL struct {
Scheme string // Protocol scheme to identify a capable account backend
diff --git a/accounts/usbwallet/hub.go b/accounts/usbwallet/hub.go
index 7069d25311..be3fc52c68 100644
--- a/accounts/usbwallet/hub.go
+++ b/accounts/usbwallet/hub.go
@@ -1,18 +1,18 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2017 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package usbwallet
@@ -22,9 +22,9 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/burnout/go-burnout/accounts"
+ "github.com/burnout/go-burnout/event"
+ "github.com/burnout/go-burnout/log"
"github.com/karalabe/hid"
)
diff --git a/accounts/usbwallet/internal/trezor/messages.pb.go b/accounts/usbwallet/internal/trezor/messages.pb.go
index 15bb6fb73b..317bb429da 100644
--- a/accounts/usbwallet/internal/trezor/messages.pb.go
+++ b/accounts/usbwallet/internal/trezor/messages.pb.go
@@ -70,17 +70,17 @@ const (
MessageType_MessageType_SignIdentity MessageType = 53
MessageType_MessageType_SignedIdentity MessageType = 54
MessageType_MessageType_GetFeatures MessageType = 55
- MessageType_MessageType_EthereumGetAddress MessageType = 56
- MessageType_MessageType_EthereumAddress MessageType = 57
- MessageType_MessageType_EthereumSignTx MessageType = 58
- MessageType_MessageType_EthereumTxRequest MessageType = 59
- MessageType_MessageType_EthereumTxAck MessageType = 60
+ MessageType_MessageType_BurnoutGetAddress MessageType = 56
+ MessageType_MessageType_BurnoutAddress MessageType = 57
+ MessageType_MessageType_BurnoutSignTx MessageType = 58
+ MessageType_MessageType_BurnoutTxRequest MessageType = 59
+ MessageType_MessageType_BurnoutTxAck MessageType = 60
MessageType_MessageType_GetECDHSessionKey MessageType = 61
MessageType_MessageType_ECDHSessionKey MessageType = 62
MessageType_MessageType_SetU2FCounter MessageType = 63
- MessageType_MessageType_EthereumSignMessage MessageType = 64
- MessageType_MessageType_EthereumVerifyMessage MessageType = 65
- MessageType_MessageType_EthereumMessageSignature MessageType = 66
+ MessageType_MessageType_BurnoutSignMessage MessageType = 64
+ MessageType_MessageType_BurnoutVerifyMessage MessageType = 65
+ MessageType_MessageType_BurnoutMessageSignature MessageType = 66
MessageType_MessageType_DebugLinkDecision MessageType = 100
MessageType_MessageType_DebugLinkGetState MessageType = 101
MessageType_MessageType_DebugLinkState MessageType = 102
@@ -146,17 +146,17 @@ var MessageType_name = map[int32]string{
53: "MessageType_SignIdentity",
54: "MessageType_SignedIdentity",
55: "MessageType_GetFeatures",
- 56: "MessageType_EthereumGetAddress",
- 57: "MessageType_EthereumAddress",
- 58: "MessageType_EthereumSignTx",
- 59: "MessageType_EthereumTxRequest",
- 60: "MessageType_EthereumTxAck",
+ 56: "MessageType_BurnoutGetAddress",
+ 57: "MessageType_BurnoutAddress",
+ 58: "MessageType_BurnoutSignTx",
+ 59: "MessageType_BurnoutTxRequest",
+ 60: "MessageType_BurnoutTxAck",
61: "MessageType_GetECDHSessionKey",
62: "MessageType_ECDHSessionKey",
63: "MessageType_SetU2FCounter",
- 64: "MessageType_EthereumSignMessage",
- 65: "MessageType_EthereumVerifyMessage",
- 66: "MessageType_EthereumMessageSignature",
+ 64: "MessageType_BurnoutSignMessage",
+ 65: "MessageType_BurnoutVerifyMessage",
+ 66: "MessageType_BurnoutMessageSignature",
100: "MessageType_DebugLinkDecision",
101: "MessageType_DebugLinkGetState",
102: "MessageType_DebugLinkState",
@@ -221,17 +221,17 @@ var MessageType_value = map[string]int32{
"MessageType_SignIdentity": 53,
"MessageType_SignedIdentity": 54,
"MessageType_GetFeatures": 55,
- "MessageType_EthereumGetAddress": 56,
- "MessageType_EthereumAddress": 57,
- "MessageType_EthereumSignTx": 58,
- "MessageType_EthereumTxRequest": 59,
- "MessageType_EthereumTxAck": 60,
+ "MessageType_BurnoutGetAddress": 56,
+ "MessageType_BurnoutAddress": 57,
+ "MessageType_BurnoutSignTx": 58,
+ "MessageType_BurnoutTxRequest": 59,
+ "MessageType_BurnoutTxAck": 60,
"MessageType_GetECDHSessionKey": 61,
"MessageType_ECDHSessionKey": 62,
"MessageType_SetU2FCounter": 63,
- "MessageType_EthereumSignMessage": 64,
- "MessageType_EthereumVerifyMessage": 65,
- "MessageType_EthereumMessageSignature": 66,
+ "MessageType_BurnoutSignMessage": 64,
+ "MessageType_BurnoutVerifyMessage": 65,
+ "MessageType_BurnoutMessageSignature": 66,
"MessageType_DebugLinkDecision": 100,
"MessageType_DebugLinkGetState": 101,
"MessageType_DebugLinkState": 102,
@@ -954,29 +954,29 @@ func (m *GetAddress) GetScriptType() InputScriptType {
}
// *
-// Request: Ask device for Ethereum address corresponding to address_n path
+// Request: Ask device for Burnout address corresponding to address_n path
// @next PassphraseRequest
-// @next EthereumAddress
+// @next BurnoutAddress
// @next Failure
-type EthereumGetAddress struct {
+type BurnoutGetAddress struct {
AddressN []uint32 `protobuf:"varint,1,rep,name=address_n,json=addressN" json:"address_n,omitempty"`
ShowDisplay *bool `protobuf:"varint,2,opt,name=show_display,json=showDisplay" json:"show_display,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
-func (m *EthereumGetAddress) Reset() { *m = EthereumGetAddress{} }
-func (m *EthereumGetAddress) String() string { return proto.CompactTextString(m) }
-func (*EthereumGetAddress) ProtoMessage() {}
-func (*EthereumGetAddress) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{22} }
+func (m *BurnoutGetAddress) Reset() { *m = BurnoutGetAddress{} }
+func (m *BurnoutGetAddress) String() string { return proto.CompactTextString(m) }
+func (*BurnoutGetAddress) ProtoMessage() {}
+func (*BurnoutGetAddress) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{22} }
-func (m *EthereumGetAddress) GetAddressN() []uint32 {
+func (m *BurnoutGetAddress) GetAddressN() []uint32 {
if m != nil {
return m.AddressN
}
return nil
}
-func (m *EthereumGetAddress) GetShowDisplay() bool {
+func (m *BurnoutGetAddress) GetShowDisplay() bool {
if m != nil && m.ShowDisplay != nil {
return *m.ShowDisplay
}
@@ -1004,19 +1004,19 @@ func (m *Address) GetAddress() string {
}
// *
-// Response: Contains an Ethereum address derived from device private seed
-// @prev EthereumGetAddress
-type EthereumAddress struct {
+// Response: Contains an Burnout address derived from device private seed
+// @prev BurnoutGetAddress
+type BurnoutAddress struct {
Address []byte `protobuf:"bytes,1,req,name=address" json:"address,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
-func (m *EthereumAddress) Reset() { *m = EthereumAddress{} }
-func (m *EthereumAddress) String() string { return proto.CompactTextString(m) }
-func (*EthereumAddress) ProtoMessage() {}
-func (*EthereumAddress) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{24} }
+func (m *BurnoutAddress) Reset() { *m = BurnoutAddress{} }
+func (m *BurnoutAddress) String() string { return proto.CompactTextString(m) }
+func (*BurnoutAddress) ProtoMessage() {}
+func (*BurnoutAddress) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{24} }
-func (m *EthereumAddress) GetAddress() []byte {
+func (m *BurnoutAddress) GetAddress() []byte {
if m != nil {
return m.Address
}
@@ -2006,9 +2006,9 @@ func (m *TxAck) GetTx() *TransactionType {
// Note: the first at most 1024 bytes of data MUST be transmitted as part of this message.
// @next PassphraseRequest
// @next PinMatrixRequest
-// @next EthereumTxRequest
+// @next BurnoutTxRequest
// @next Failure
-type EthereumSignTx struct {
+type BurnoutSignTx struct {
AddressN []uint32 `protobuf:"varint,1,rep,name=address_n,json=addressN" json:"address_n,omitempty"`
Nonce []byte `protobuf:"bytes,2,opt,name=nonce" json:"nonce,omitempty"`
GasPrice []byte `protobuf:"bytes,3,opt,name=gas_price,json=gasPrice" json:"gas_price,omitempty"`
@@ -2021,68 +2021,68 @@ type EthereumSignTx struct {
XXX_unrecognized []byte `json:"-"`
}
-func (m *EthereumSignTx) Reset() { *m = EthereumSignTx{} }
-func (m *EthereumSignTx) String() string { return proto.CompactTextString(m) }
-func (*EthereumSignTx) ProtoMessage() {}
-func (*EthereumSignTx) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{49} }
+func (m *BurnoutSignTx) Reset() { *m = BurnoutSignTx{} }
+func (m *BurnoutSignTx) String() string { return proto.CompactTextString(m) }
+func (*BurnoutSignTx) ProtoMessage() {}
+func (*BurnoutSignTx) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{49} }
-func (m *EthereumSignTx) GetAddressN() []uint32 {
+func (m *BurnoutSignTx) GetAddressN() []uint32 {
if m != nil {
return m.AddressN
}
return nil
}
-func (m *EthereumSignTx) GetNonce() []byte {
+func (m *BurnoutSignTx) GetNonce() []byte {
if m != nil {
return m.Nonce
}
return nil
}
-func (m *EthereumSignTx) GetGasPrice() []byte {
+func (m *BurnoutSignTx) GetGasPrice() []byte {
if m != nil {
return m.GasPrice
}
return nil
}
-func (m *EthereumSignTx) GetGasLimit() []byte {
+func (m *BurnoutSignTx) GetGasLimit() []byte {
if m != nil {
return m.GasLimit
}
return nil
}
-func (m *EthereumSignTx) GetTo() []byte {
+func (m *BurnoutSignTx) GetTo() []byte {
if m != nil {
return m.To
}
return nil
}
-func (m *EthereumSignTx) GetValue() []byte {
+func (m *BurnoutSignTx) GetValue() []byte {
if m != nil {
return m.Value
}
return nil
}
-func (m *EthereumSignTx) GetDataInitialChunk() []byte {
+func (m *BurnoutSignTx) GetDataInitialChunk() []byte {
if m != nil {
return m.DataInitialChunk
}
return nil
}
-func (m *EthereumSignTx) GetDataLength() uint32 {
+func (m *BurnoutSignTx) GetDataLength() uint32 {
if m != nil && m.DataLength != nil {
return *m.DataLength
}
return 0
}
-func (m *EthereumSignTx) GetChainId() uint32 {
+func (m *BurnoutSignTx) GetChainId() uint32 {
if m != nil && m.ChainId != nil {
return *m.ChainId
}
@@ -2093,9 +2093,9 @@ func (m *EthereumSignTx) GetChainId() uint32 {
// Response: Device asks for more data from transaction payload, or returns the signature.
// If data_length is set, device awaits that many more bytes of payload.
// Otherwise, the signature_* fields contain the computed transaction signature. All three fields will be present.
-// @prev EthereumSignTx
-// @next EthereumTxAck
-type EthereumTxRequest struct {
+// @prev BurnoutSignTx
+// @next BurnoutTxAck
+type BurnoutTxRequest struct {
DataLength *uint32 `protobuf:"varint,1,opt,name=data_length,json=dataLength" json:"data_length,omitempty"`
SignatureV *uint32 `protobuf:"varint,2,opt,name=signature_v,json=signatureV" json:"signature_v,omitempty"`
SignatureR []byte `protobuf:"bytes,3,opt,name=signature_r,json=signatureR" json:"signature_r,omitempty"`
@@ -2103,33 +2103,33 @@ type EthereumTxRequest struct {
XXX_unrecognized []byte `json:"-"`
}
-func (m *EthereumTxRequest) Reset() { *m = EthereumTxRequest{} }
-func (m *EthereumTxRequest) String() string { return proto.CompactTextString(m) }
-func (*EthereumTxRequest) ProtoMessage() {}
-func (*EthereumTxRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{50} }
+func (m *BurnoutTxRequest) Reset() { *m = BurnoutTxRequest{} }
+func (m *BurnoutTxRequest) String() string { return proto.CompactTextString(m) }
+func (*BurnoutTxRequest) ProtoMessage() {}
+func (*BurnoutTxRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{50} }
-func (m *EthereumTxRequest) GetDataLength() uint32 {
+func (m *BurnoutTxRequest) GetDataLength() uint32 {
if m != nil && m.DataLength != nil {
return *m.DataLength
}
return 0
}
-func (m *EthereumTxRequest) GetSignatureV() uint32 {
+func (m *BurnoutTxRequest) GetSignatureV() uint32 {
if m != nil && m.SignatureV != nil {
return *m.SignatureV
}
return 0
}
-func (m *EthereumTxRequest) GetSignatureR() []byte {
+func (m *BurnoutTxRequest) GetSignatureR() []byte {
if m != nil {
return m.SignatureR
}
return nil
}
-func (m *EthereumTxRequest) GetSignatureS() []byte {
+func (m *BurnoutTxRequest) GetSignatureS() []byte {
if m != nil {
return m.SignatureS
}
@@ -2138,19 +2138,19 @@ func (m *EthereumTxRequest) GetSignatureS() []byte {
// *
// Request: Transaction payload data.
-// @prev EthereumTxRequest
-// @next EthereumTxRequest
-type EthereumTxAck struct {
+// @prev BurnoutTxRequest
+// @next BurnoutTxRequest
+type BurnoutTxAck struct {
DataChunk []byte `protobuf:"bytes,1,opt,name=data_chunk,json=dataChunk" json:"data_chunk,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
-func (m *EthereumTxAck) Reset() { *m = EthereumTxAck{} }
-func (m *EthereumTxAck) String() string { return proto.CompactTextString(m) }
-func (*EthereumTxAck) ProtoMessage() {}
-func (*EthereumTxAck) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{51} }
+func (m *BurnoutTxAck) Reset() { *m = BurnoutTxAck{} }
+func (m *BurnoutTxAck) String() string { return proto.CompactTextString(m) }
+func (*BurnoutTxAck) ProtoMessage() {}
+func (*BurnoutTxAck) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{51} }
-func (m *EthereumTxAck) GetDataChunk() []byte {
+func (m *BurnoutTxAck) GetDataChunk() []byte {
if m != nil {
return m.DataChunk
}
@@ -2159,27 +2159,27 @@ func (m *EthereumTxAck) GetDataChunk() []byte {
// *
// Request: Ask device to sign message
-// @next EthereumMessageSignature
+// @next BurnoutMessageSignature
// @next Failure
-type EthereumSignMessage struct {
+type BurnoutSignMessage struct {
AddressN []uint32 `protobuf:"varint,1,rep,name=address_n,json=addressN" json:"address_n,omitempty"`
Message []byte `protobuf:"bytes,2,req,name=message" json:"message,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
-func (m *EthereumSignMessage) Reset() { *m = EthereumSignMessage{} }
-func (m *EthereumSignMessage) String() string { return proto.CompactTextString(m) }
-func (*EthereumSignMessage) ProtoMessage() {}
-func (*EthereumSignMessage) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{52} }
+func (m *BurnoutSignMessage) Reset() { *m = BurnoutSignMessage{} }
+func (m *BurnoutSignMessage) String() string { return proto.CompactTextString(m) }
+func (*BurnoutSignMessage) ProtoMessage() {}
+func (*BurnoutSignMessage) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{52} }
-func (m *EthereumSignMessage) GetAddressN() []uint32 {
+func (m *BurnoutSignMessage) GetAddressN() []uint32 {
if m != nil {
return m.AddressN
}
return nil
}
-func (m *EthereumSignMessage) GetMessage() []byte {
+func (m *BurnoutSignMessage) GetMessage() []byte {
if m != nil {
return m.Message
}
@@ -2190,33 +2190,33 @@ func (m *EthereumSignMessage) GetMessage() []byte {
// Request: Ask device to verify message
// @next Success
// @next Failure
-type EthereumVerifyMessage struct {
+type BurnoutVerifyMessage struct {
Address []byte `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
Signature []byte `protobuf:"bytes,2,opt,name=signature" json:"signature,omitempty"`
Message []byte `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
-func (m *EthereumVerifyMessage) Reset() { *m = EthereumVerifyMessage{} }
-func (m *EthereumVerifyMessage) String() string { return proto.CompactTextString(m) }
-func (*EthereumVerifyMessage) ProtoMessage() {}
-func (*EthereumVerifyMessage) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{53} }
+func (m *BurnoutVerifyMessage) Reset() { *m = BurnoutVerifyMessage{} }
+func (m *BurnoutVerifyMessage) String() string { return proto.CompactTextString(m) }
+func (*BurnoutVerifyMessage) ProtoMessage() {}
+func (*BurnoutVerifyMessage) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{53} }
-func (m *EthereumVerifyMessage) GetAddress() []byte {
+func (m *BurnoutVerifyMessage) GetAddress() []byte {
if m != nil {
return m.Address
}
return nil
}
-func (m *EthereumVerifyMessage) GetSignature() []byte {
+func (m *BurnoutVerifyMessage) GetSignature() []byte {
if m != nil {
return m.Signature
}
return nil
}
-func (m *EthereumVerifyMessage) GetMessage() []byte {
+func (m *BurnoutVerifyMessage) GetMessage() []byte {
if m != nil {
return m.Message
}
@@ -2225,26 +2225,26 @@ func (m *EthereumVerifyMessage) GetMessage() []byte {
// *
// Response: Signed message
-// @prev EthereumSignMessage
-type EthereumMessageSignature struct {
+// @prev BurnoutSignMessage
+type BurnoutMessageSignature struct {
Address []byte `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
Signature []byte `protobuf:"bytes,2,opt,name=signature" json:"signature,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
-func (m *EthereumMessageSignature) Reset() { *m = EthereumMessageSignature{} }
-func (m *EthereumMessageSignature) String() string { return proto.CompactTextString(m) }
-func (*EthereumMessageSignature) ProtoMessage() {}
-func (*EthereumMessageSignature) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{54} }
+func (m *BurnoutMessageSignature) Reset() { *m = BurnoutMessageSignature{} }
+func (m *BurnoutMessageSignature) String() string { return proto.CompactTextString(m) }
+func (*BurnoutMessageSignature) ProtoMessage() {}
+func (*BurnoutMessageSignature) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{54} }
-func (m *EthereumMessageSignature) GetAddress() []byte {
+func (m *BurnoutMessageSignature) GetAddress() []byte {
if m != nil {
return m.Address
}
return nil
}
-func (m *EthereumMessageSignature) GetSignature() []byte {
+func (m *BurnoutMessageSignature) GetSignature() []byte {
if m != nil {
return m.Signature
}
@@ -2806,9 +2806,9 @@ func init() {
proto.RegisterType((*GetPublicKey)(nil), "GetPublicKey")
proto.RegisterType((*PublicKey)(nil), "PublicKey")
proto.RegisterType((*GetAddress)(nil), "GetAddress")
- proto.RegisterType((*EthereumGetAddress)(nil), "EthereumGetAddress")
+ proto.RegisterType((*BurnoutGetAddress)(nil), "BurnoutGetAddress")
proto.RegisterType((*Address)(nil), "Address")
- proto.RegisterType((*EthereumAddress)(nil), "EthereumAddress")
+ proto.RegisterType((*BurnoutAddress)(nil), "BurnoutAddress")
proto.RegisterType((*WipeDevice)(nil), "WipeDevice")
proto.RegisterType((*LoadDevice)(nil), "LoadDevice")
proto.RegisterType((*ResetDevice)(nil), "ResetDevice")
@@ -2833,12 +2833,12 @@ func init() {
proto.RegisterType((*SimpleSignTx)(nil), "SimpleSignTx")
proto.RegisterType((*TxRequest)(nil), "TxRequest")
proto.RegisterType((*TxAck)(nil), "TxAck")
- proto.RegisterType((*EthereumSignTx)(nil), "EthereumSignTx")
- proto.RegisterType((*EthereumTxRequest)(nil), "EthereumTxRequest")
- proto.RegisterType((*EthereumTxAck)(nil), "EthereumTxAck")
- proto.RegisterType((*EthereumSignMessage)(nil), "EthereumSignMessage")
- proto.RegisterType((*EthereumVerifyMessage)(nil), "EthereumVerifyMessage")
- proto.RegisterType((*EthereumMessageSignature)(nil), "EthereumMessageSignature")
+ proto.RegisterType((*BurnoutSignTx)(nil), "BurnoutSignTx")
+ proto.RegisterType((*BurnoutTxRequest)(nil), "BurnoutTxRequest")
+ proto.RegisterType((*BurnoutTxAck)(nil), "BurnoutTxAck")
+ proto.RegisterType((*BurnoutSignMessage)(nil), "BurnoutSignMessage")
+ proto.RegisterType((*BurnoutVerifyMessage)(nil), "BurnoutVerifyMessage")
+ proto.RegisterType((*BurnoutMessageSignature)(nil), "BurnoutMessageSignature")
proto.RegisterType((*SignIdentity)(nil), "SignIdentity")
proto.RegisterType((*SignedIdentity)(nil), "SignedIdentity")
proto.RegisterType((*GetECDHSessionKey)(nil), "GetECDHSessionKey")
diff --git a/accounts/usbwallet/internal/trezor/messages.proto b/accounts/usbwallet/internal/trezor/messages.proto
index 178956457e..5f45670f26 100644
--- a/accounts/usbwallet/internal/trezor/messages.proto
+++ b/accounts/usbwallet/internal/trezor/messages.proto
@@ -69,17 +69,17 @@ enum MessageType {
MessageType_SignIdentity = 53 [(wire_in) = true];
MessageType_SignedIdentity = 54 [(wire_out) = true];
MessageType_GetFeatures = 55 [(wire_in) = true];
- MessageType_EthereumGetAddress = 56 [(wire_in) = true];
- MessageType_EthereumAddress = 57 [(wire_out) = true];
- MessageType_EthereumSignTx = 58 [(wire_in) = true];
- MessageType_EthereumTxRequest = 59 [(wire_out) = true];
- MessageType_EthereumTxAck = 60 [(wire_in) = true];
+ MessageType_BurnoutGetAddress = 56 [(wire_in) = true];
+ MessageType_BurnoutAddress = 57 [(wire_out) = true];
+ MessageType_BurnoutSignTx = 58 [(wire_in) = true];
+ MessageType_BurnoutTxRequest = 59 [(wire_out) = true];
+ MessageType_BurnoutTxAck = 60 [(wire_in) = true];
MessageType_GetECDHSessionKey = 61 [(wire_in) = true];
MessageType_ECDHSessionKey = 62 [(wire_out) = true];
MessageType_SetU2FCounter = 63 [(wire_in) = true];
- MessageType_EthereumSignMessage = 64 [(wire_in) = true];
- MessageType_EthereumVerifyMessage = 65 [(wire_in) = true];
- MessageType_EthereumMessageSignature = 66 [(wire_out) = true];
+ MessageType_BurnoutSignMessage = 64 [(wire_in) = true];
+ MessageType_BurnoutVerifyMessage = 65 [(wire_in) = true];
+ MessageType_BurnoutMessageSignature = 66 [(wire_out) = true];
MessageType_DebugLinkDecision = 100 [(wire_debug_in) = true, (wire_tiny) = true];
MessageType_DebugLinkGetState = 101 [(wire_debug_in) = true];
MessageType_DebugLinkState = 102 [(wire_debug_out) = true];
@@ -316,12 +316,12 @@ message GetAddress {
}
/**
- * Request: Ask device for Ethereum address corresponding to address_n path
+ * Request: Ask device for Burnout address corresponding to address_n path
* @next PassphraseRequest
- * @next EthereumAddress
+ * @next BurnoutAddress
* @next Failure
*/
-message EthereumGetAddress {
+message BurnoutGetAddress {
repeated uint32 address_n = 1; // BIP-32 path to derive the key from master node
optional bool show_display = 2; // optionally show on display before sending the result
}
@@ -335,11 +335,11 @@ message Address {
}
/**
- * Response: Contains an Ethereum address derived from device private seed
- * @prev EthereumGetAddress
+ * Response: Contains an Burnout address derived from device private seed
+ * @prev BurnoutGetAddress
*/
-message EthereumAddress {
- required bytes address = 1; // Coin address as an Ethereum 160 bit hash
+message BurnoutAddress {
+ required bytes address = 1; // Coin address as an Burnout 160 bit hash
}
/**
@@ -640,10 +640,10 @@ message TxAck {
* Note: the first at most 1024 bytes of data MUST be transmitted as part of this message.
* @next PassphraseRequest
* @next PinMatrixRequest
- * @next EthereumTxRequest
+ * @next BurnoutTxRequest
* @next Failure
*/
-message EthereumSignTx {
+message BurnoutSignTx {
repeated uint32 address_n = 1; // BIP-32 path to derive the key from master node
optional bytes nonce = 2; // <=256 bit unsigned big endian
optional bytes gas_price = 3; // <=256 bit unsigned big endian (in wei)
@@ -659,10 +659,10 @@ message EthereumSignTx {
* Response: Device asks for more data from transaction payload, or returns the signature.
* If data_length is set, device awaits that many more bytes of payload.
* Otherwise, the signature_* fields contain the computed transaction signature. All three fields will be present.
- * @prev EthereumSignTx
- * @next EthereumTxAck
+ * @prev BurnoutSignTx
+ * @next BurnoutTxAck
*/
-message EthereumTxRequest {
+message BurnoutTxRequest {
optional uint32 data_length = 1; // Number of bytes being requested (<= 1024)
optional uint32 signature_v = 2; // Computed signature (recovery parameter, limited to 27 or 28)
optional bytes signature_r = 3; // Computed signature R component (256 bit)
@@ -671,23 +671,23 @@ message EthereumTxRequest {
/**
* Request: Transaction payload data.
- * @prev EthereumTxRequest
- * @next EthereumTxRequest
+ * @prev BurnoutTxRequest
+ * @next BurnoutTxRequest
*/
-message EthereumTxAck {
+message BurnoutTxAck {
optional bytes data_chunk = 1; // Bytes from transaction payload (<= 1024 bytes)
}
////////////////////////////////////////
-// Ethereum: Message signing messages //
+// Burnout: Message signing messages //
////////////////////////////////////////
/**
* Request: Ask device to sign message
- * @next EthereumMessageSignature
+ * @next BurnoutMessageSignature
* @next Failure
*/
-message EthereumSignMessage {
+message BurnoutSignMessage {
repeated uint32 address_n = 1; // BIP-32 path to derive the key from master node
required bytes message = 2; // message to be signed
}
@@ -697,7 +697,7 @@ message EthereumSignMessage {
* @next Success
* @next Failure
*/
-message EthereumVerifyMessage {
+message BurnoutVerifyMessage {
optional bytes address = 1; // address to verify
optional bytes signature = 2; // signature to verify
optional bytes message = 3; // message to verify
@@ -705,9 +705,9 @@ message EthereumVerifyMessage {
/**
* Response: Signed message
- * @prev EthereumSignMessage
+ * @prev BurnoutSignMessage
*/
-message EthereumMessageSignature {
+message BurnoutMessageSignature {
optional bytes address = 1; // address used to sign the message
optional bytes signature = 2; // signature of the message
}
diff --git a/accounts/usbwallet/internal/trezor/trezor.go b/accounts/usbwallet/internal/trezor/trezor.go
index 487aeb5f81..31122e4c39 100644
--- a/accounts/usbwallet/internal/trezor/trezor.go
+++ b/accounts/usbwallet/internal/trezor/trezor.go
@@ -1,18 +1,18 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2017 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
// This file contains the implementation for interacting with the Trezor hardware
// wallets. The wire protocol spec can be found on the SatoshiLabs website:
diff --git a/accounts/usbwallet/internal/trezor/types.pb.go b/accounts/usbwallet/internal/trezor/types.pb.go
index 25b7672d23..801a73cf49 100644
--- a/accounts/usbwallet/internal/trezor/types.pb.go
+++ b/accounts/usbwallet/internal/trezor/types.pb.go
@@ -42,9 +42,9 @@ It has these top-level messages:
GetPublicKey
PublicKey
GetAddress
- EthereumGetAddress
+ BurnoutGetAddress
Address
- EthereumAddress
+ BurnoutAddress
WipeDevice
LoadDevice
ResetDevice
@@ -69,12 +69,12 @@ It has these top-level messages:
SimpleSignTx
TxRequest
TxAck
- EthereumSignTx
- EthereumTxRequest
- EthereumTxAck
- EthereumSignMessage
- EthereumVerifyMessage
- EthereumMessageSignature
+ BurnoutSignTx
+ BurnoutTxRequest
+ BurnoutTxAck
+ BurnoutSignMessage
+ BurnoutVerifyMessage
+ BurnoutMessageSignature
SignIdentity
SignedIdentity
GetECDHSessionKey
diff --git a/accounts/usbwallet/ledger.go b/accounts/usbwallet/ledger.go
index f5def61d23..a2201b8d53 100644
--- a/accounts/usbwallet/ledger.go
+++ b/accounts/usbwallet/ledger.go
@@ -1,22 +1,22 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2017 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
// This file contains the implementation for interacting with the Ledger hardware
// wallets. The wire protocol spec can be found in the Ledger Blue GitHub repo:
-// https://raw.githubusercontent.com/LedgerHQ/blue-app-eth/master/doc/ethapp.asc
+// https://raw.githubusercontent.com/LedgerHQ/blue-app-brn/master/doc/ethapp.asc
package usbwallet
@@ -28,12 +28,12 @@ import (
"io"
"math/big"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/burnout/go-burnout/accounts"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/common/hexutil"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/log"
+ "github.com/burnout/go-burnout/rlp"
)
// ledgerOpcode is an enumeration encoding the supported Ledger opcodes.
@@ -48,8 +48,8 @@ type ledgerParam1 byte
type ledgerParam2 byte
const (
- ledgerOpRetrieveAddress ledgerOpcode = 0x02 // Returns the public key and Ethereum address for a given BIP 32 path
- ledgerOpSignTransaction ledgerOpcode = 0x04 // Signs an Ethereum transaction after having the user validate the parameters
+ ledgerOpRetrieveAddress ledgerOpcode = 0x02 // Returns the public key and Burnout address for a given BIP 32 path
+ ledgerOpSignTransaction ledgerOpcode = 0x04 // Signs an Burnout transaction after having the user validate the parameters
ledgerOpGetConfiguration ledgerOpcode = 0x06 // Returns specific wallet application configuration
ledgerP1DirectlyFetchAddress ledgerParam1 = 0x00 // Return address directly from the wallet
@@ -92,15 +92,15 @@ func (w *ledgerDriver) Status() (string, error) {
return fmt.Sprintf("Failed: %v", w.failure), w.failure
}
if w.browser {
- return "Ethereum app in browser mode", w.failure
+ return "Burnout app in browser mode", w.failure
}
if w.offline() {
- return "Ethereum app offline", w.failure
+ return "Burnout app offline", w.failure
}
- return fmt.Sprintf("Ethereum app v%d.%d.%d online", w.version[0], w.version[1], w.version[2]), w.failure
+ return fmt.Sprintf("Burnout app v%d.%d.%d online", w.version[0], w.version[1], w.version[2]), w.failure
}
-// offline returns whether the wallet and the Ethereum app is offline or not.
+// offline returns whether the wallet and the Burnout app is offline or not.
//
// The method assumes that the state lock is held!
func (w *ledgerDriver) offline() bool {
@@ -115,13 +115,13 @@ func (w *ledgerDriver) Open(device io.ReadWriter, passphrase string) error {
_, err := w.ledgerDerive(accounts.DefaultBaseDerivationPath)
if err != nil {
- // Ethereum app is not running or in browser mode, nothing more to do, return
+ // Burnout app is not running or in browser mode, nothing more to do, return
if err == errLedgerReplyInvalidHeader {
w.browser = true
}
return nil
}
- // Try to resolve the Ethereum app's version, will fail prior to v1.0.2
+ // Try to resolve the Burnout app's version, will fail prior to v1.0.2
if w.version, err = w.ledgerVersion(); err != nil {
w.version = [3]byte{1, 0, 0} // Assume worst case, can't verify if v1.0.0 or v1.0.1
}
@@ -146,7 +146,7 @@ func (w *ledgerDriver) Heartbeat() error {
}
// Derive implements usbwallet.driver, sending a derivation request to the Ledger
-// and returning the Ethereum address located on that derivation path.
+// and returning the Burnout address located on that derivation path.
func (w *ledgerDriver) Derive(path accounts.DerivationPath) (common.Address, error) {
return w.ledgerDerive(path)
}
@@ -154,11 +154,11 @@ func (w *ledgerDriver) Derive(path accounts.DerivationPath) (common.Address, err
// SignTx implements usbwallet.driver, sending the transaction to the Ledger and
// waiting for the user to confirm or deny the transaction.
//
-// Note, if the version of the Ethereum application running on the Ledger wallet is
+// Note, if the version of the Burnout application running on the Ledger wallet is
// too old to sign EIP-155 transactions, but such is requested nonetheless, an error
// will be returned opposed to silently signing in Homestead mode.
func (w *ledgerDriver) SignTx(path accounts.DerivationPath, tx *types.Transaction, chainID *big.Int) (common.Address, *types.Transaction, error) {
- // If the Ethereum app doesn't run, abort
+ // If the Burnout app doesn't run, abort
if w.offline() {
return common.Address{}, nil, accounts.ErrWalletClosed
}
@@ -170,7 +170,7 @@ func (w *ledgerDriver) SignTx(path accounts.DerivationPath, tx *types.Transactio
return w.ledgerSign(path, tx, chainID)
}
-// ledgerVersion retrieves the current version of the Ethereum wallet app running
+// ledgerVersion retrieves the current version of the Burnout wallet app running
// on the Ledger wallet.
//
// The version retrieval protocol is defined as follows:
@@ -202,7 +202,7 @@ func (w *ledgerDriver) ledgerVersion() ([3]byte, error) {
return version, nil
}
-// ledgerDerive retrieves the currently active Ethereum address from a Ledger
+// ledgerDerive retrieves the currently active Burnout address from a Ledger
// wallet at the specified derivation path.
//
// The address derivation protocol is defined as follows:
@@ -230,8 +230,8 @@ func (w *ledgerDriver) ledgerVersion() ([3]byte, error) {
// ------------------------+-------------------
// Public Key length | 1 byte
// Uncompressed Public Key | arbitrary
-// Ethereum address length | 1 byte
-// Ethereum address | 40 bytes hex ascii
+// Burnout address length | 1 byte
+// Burnout address | 40 bytes hex ascii
// Chain code if requested | 32 bytes
func (w *ledgerDriver) ledgerDerive(derivationPath []uint32) (common.Address, error) {
// Flatten the derivation path into the Ledger request
@@ -251,13 +251,13 @@ func (w *ledgerDriver) ledgerDerive(derivationPath []uint32) (common.Address, er
}
reply = reply[1+int(reply[0]):]
- // Extract the Ethereum hex address string
+ // Extract the Burnout hex address string
if len(reply) < 1 || len(reply) < 1+int(reply[0]) {
return common.Address{}, errors.New("reply lacks address entry")
}
hexstr := reply[1 : 1+int(reply[0])]
- // Decode the hex sting into an Ethereum address and return
+ // Decode the hex sting into an Burnout address and return
var address common.Address
hex.Decode(address[:], hexstr)
return address, nil
@@ -340,7 +340,7 @@ func (w *ledgerDriver) ledgerSign(derivationPath []uint32, tx *types.Transaction
payload = payload[chunk:]
op = ledgerP1ContTransactionData
}
- // Extract the Ethereum signature and do a sanity validation
+ // Extract the Burnout signature and do a sanity validation
if len(reply) != 65 {
return common.Address{}, nil, errors.New("reply lacks signature")
}
diff --git a/accounts/usbwallet/trezor.go b/accounts/usbwallet/trezor.go
index 159cb2ea97..b1b7cf31ba 100644
--- a/accounts/usbwallet/trezor.go
+++ b/accounts/usbwallet/trezor.go
@@ -1,18 +1,18 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2017 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
// This file contains the implementation for interacting with the Trezor hardware
// wallets. The wire protocol spec can be found on the SatoshiLabs website:
@@ -27,12 +27,12 @@ import (
"io"
"math/big"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/accounts/usbwallet/internal/trezor"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/burnout/go-burnout/accounts"
+ "github.com/burnout/go-burnout/accounts/usbwallet/internal/trezor"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/common/hexutil"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/log"
"github.com/golang/protobuf/proto"
)
@@ -64,7 +64,7 @@ func newTrezorDriver(logger log.Logger) driver {
}
// Status implements accounts.Wallet, always whether the Trezor is opened, closed
-// or whether the Ethereum app was not started on it.
+// or whether the Burnout app was not started on it.
func (w *trezorDriver) Status() (string, error) {
if w.failure != nil {
return fmt.Sprintf("Failed: %v", w.failure), w.failure
@@ -145,7 +145,7 @@ func (w *trezorDriver) Heartbeat() error {
}
// Derive implements usbwallet.driver, sending a derivation request to the Trezor
-// and returning the Ethereum address located on that derivation path.
+// and returning the Burnout address located on that derivation path.
func (w *trezorDriver) Derive(path accounts.DerivationPath) (common.Address, error) {
return w.trezorDerive(path)
}
@@ -160,10 +160,10 @@ func (w *trezorDriver) SignTx(path accounts.DerivationPath, tx *types.Transactio
}
// trezorDerive sends a derivation request to the Trezor device and returns the
-// Ethereum address located on that path.
+// Burnout address located on that path.
func (w *trezorDriver) trezorDerive(derivationPath []uint32) (common.Address, error) {
- address := new(trezor.EthereumAddress)
- if _, err := w.trezorExchange(&trezor.EthereumGetAddress{AddressN: derivationPath}, address); err != nil {
+ address := new(trezor.BurnoutAddress)
+ if _, err := w.trezorExchange(&trezor.BurnoutGetAddress{AddressN: derivationPath}, address); err != nil {
return common.Address{}, err
}
return common.BytesToAddress(address.GetAddress()), nil
@@ -176,7 +176,7 @@ func (w *trezorDriver) trezorSign(derivationPath []uint32, tx *types.Transaction
data := tx.Data()
length := uint32(len(data))
- request := &trezor.EthereumSignTx{
+ request := &trezor.BurnoutSignTx{
AddressN: derivationPath,
Nonce: new(big.Int).SetUint64(tx.Nonce()).Bytes(),
GasPrice: tx.GasPrice().Bytes(),
@@ -197,7 +197,7 @@ func (w *trezorDriver) trezorSign(derivationPath []uint32, tx *types.Transaction
request.ChainId = &id
}
// Send the initiation message and stream content until a signature is returned
- response := new(trezor.EthereumTxRequest)
+ response := new(trezor.BurnoutTxRequest)
if _, err := w.trezorExchange(request, response); err != nil {
return common.Address{}, nil, err
}
@@ -205,11 +205,11 @@ func (w *trezorDriver) trezorSign(derivationPath []uint32, tx *types.Transaction
chunk := data[:*response.DataLength]
data = data[*response.DataLength:]
- if _, err := w.trezorExchange(&trezor.EthereumTxAck{DataChunk: chunk}, response); err != nil {
+ if _, err := w.trezorExchange(&trezor.BurnoutTxAck{DataChunk: chunk}, response); err != nil {
return common.Address{}, nil, err
}
}
- // Extract the Ethereum signature and do a sanity validation
+ // Extract the Burnout signature and do a sanity validation
if len(response.GetSignatureR()) == 0 || len(response.GetSignatureS()) == 0 || response.GetSignatureV() == 0 {
return common.Address{}, nil, errors.New("reply lacks signature")
}
diff --git a/accounts/usbwallet/wallet.go b/accounts/usbwallet/wallet.go
index 8b3b5a5224..93b79e83ed 100644
--- a/accounts/usbwallet/wallet.go
+++ b/accounts/usbwallet/wallet.go
@@ -1,18 +1,18 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2017 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
// Package usbwallet implements support for USB hardware wallets.
package usbwallet
@@ -25,11 +25,11 @@ import (
"sync"
"time"
- ethereum "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
+ burnout "github.com/burnout/go-burnout"
+ "github.com/burnout/go-burnout/accounts"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/log"
"github.com/karalabe/hid"
)
@@ -59,7 +59,7 @@ type driver interface {
// is still online and healthy.
Heartbeat() error
- // Derive sends a derivation request to the USB device and returns the Ethereum
+ // Derive sends a derivation request to the USB device and returns the Burnout
// address located on that path.
Derive(path accounts.DerivationPath) (common.Address, error)
@@ -84,7 +84,7 @@ type wallet struct {
deriveNextPath accounts.DerivationPath // Next derivation path for account auto-discovery
deriveNextAddr common.Address // Next derived account address for auto-discovery
- deriveChain ethereum.ChainStateReader // Blockchain state reader to discover used account with
+ deriveChain burnout.ChainStateReader // Blockchain state reader to discover used account with
deriveReq chan chan struct{} // Channel to request a self-derivation on
deriveQuit chan chan error // Channel to terminate the self-deriver with
@@ -346,7 +346,7 @@ func (w *wallet) selfDerive() {
context = context.Background()
)
for empty := false; !empty; {
- // Retrieve the next derived Ethereum account
+ // Retrieve the next derived Burnout account
if nextAddr == (common.Address{}) {
if nextAddr, err = w.driver.Derive(nextPath); err != nil {
w.log.Warn("USB wallet account derivation failed", "err", err)
@@ -484,7 +484,7 @@ func (w *wallet) Derive(path accounts.DerivationPath, pin bool) (accounts.Accoun
// user used previously (based on the chain state), but ones that he/she did not
// explicitly pin to the wallet manually. To avoid chain head monitoring, self
// derivation only runs during account listing (and even then throttled).
-func (w *wallet) SelfDerive(base accounts.DerivationPath, chain ethereum.ChainStateReader) {
+func (w *wallet) SelfDerive(base accounts.DerivationPath, chain burnout.ChainStateReader) {
w.stateLock.Lock()
defer w.stateLock.Unlock()
@@ -505,7 +505,7 @@ func (w *wallet) SignHash(account accounts.Account, hash []byte) ([]byte, error)
// wallet to request a confirmation from the user. It returns either the signed
// transaction or a failure if the user denied the transaction.
//
-// Note, if the version of the Ethereum application running on the Ledger wallet is
+// Note, if the version of the Burnout application running on the Ledger wallet is
// too old to sign EIP-155 transactions, but such is requested nonetheless, an error
// will be returned opposed to silently signing in Homestead mode.
func (w *wallet) SignTx(account accounts.Account, tx *types.Transaction, chainID *big.Int) (*types.Transaction, error) {
diff --git a/appveyor.yml b/appveyor.yml
index 78b11fa9d6..18a4fce1f6 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -1,7 +1,7 @@
os: Visual Studio 2015
# Clone directly into GOPATH.
-clone_folder: C:\gopath\src\github.com\ethereum\go-ethereum
+clone_folder: C:\gopath\src\github.com\burnout\go-burnout
clone_depth: 5
version: "{branch}.{build}"
environment:
diff --git a/bmt/bmt.go b/bmt/bmt.go
index d62365bb1f..6581f8aa3f 100644
--- a/bmt/bmt.go
+++ b/bmt/bmt.go
@@ -1,18 +1,18 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2017 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
// Package bmt provides a binary merkle tree implementation
package bmt
diff --git a/bmt/bmt_r.go b/bmt/bmt_r.go
index 649093ee3a..77157acf6c 100644
--- a/bmt/bmt_r.go
+++ b/bmt/bmt_r.go
@@ -1,18 +1,18 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2017 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
// simple nonconcurrent reference implementation for hashsize segment based
// Binary Merkle tree hash on arbitrary but fixed maximum chunksize
diff --git a/bmt/bmt_test.go b/bmt/bmt_test.go
index 57df83060a..803db53adb 100644
--- a/bmt/bmt_test.go
+++ b/bmt/bmt_test.go
@@ -1,18 +1,18 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2017 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package bmt
@@ -28,7 +28,7 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/crypto/sha3"
+ "github.com/burnout/go-burnout/crypto/sha3"
)
const (
diff --git a/eth/api.go b/brn/api.go
similarity index 83%
rename from eth/api.go
rename to brn/api.go
index e91f51bb99..df5de8f96f 100644
--- a/eth/api.go
+++ b/brn/api.go
@@ -1,20 +1,20 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
-package eth
+package brn
import (
"bytes"
@@ -28,58 +28,58 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/miner"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/rpc"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/common/hexutil"
+ "github.com/burnout/go-burnout/core"
+ "github.com/burnout/go-burnout/core/state"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/core/vm"
+ "github.com/burnout/go-burnout/internal/ethapi"
+ "github.com/burnout/go-burnout/log"
+ "github.com/burnout/go-burnout/miner"
+ "github.com/burnout/go-burnout/params"
+ "github.com/burnout/go-burnout/rlp"
+ "github.com/burnout/go-burnout/rpc"
+ "github.com/burnout/go-burnout/trie"
)
const defaultTraceTimeout = 5 * time.Second
-// PublicEthereumAPI provides an API to access Ethereum full node-related
+// PublicBurnoutAPI provides an API to access Burnout full node-related
// information.
-type PublicEthereumAPI struct {
- e *Ethereum
+type PublicBurnoutAPI struct {
+ e *Burnout
}
-// NewPublicEthereumAPI creates a new Ethereum protocol API for full nodes.
-func NewPublicEthereumAPI(e *Ethereum) *PublicEthereumAPI {
- return &PublicEthereumAPI{e}
+// NewPublicBurnoutAPI creates a new Burnout protocol API for full nodes.
+func NewPublicBurnoutAPI(e *Burnout) *PublicBurnoutAPI {
+ return &PublicBurnoutAPI{e}
}
// Etherbase is the address that mining rewards will be send to
-func (api *PublicEthereumAPI) Etherbase() (common.Address, error) {
+func (api *PublicBurnoutAPI) Etherbase() (common.Address, error) {
return api.e.Etherbase()
}
// Coinbase is the address that mining rewards will be send to (alias for Etherbase)
-func (api *PublicEthereumAPI) Coinbase() (common.Address, error) {
+func (api *PublicBurnoutAPI) Coinbase() (common.Address, error) {
return api.Etherbase()
}
// Hashrate returns the POW hashrate
-func (api *PublicEthereumAPI) Hashrate() hexutil.Uint64 {
+func (api *PublicBurnoutAPI) Hashrate() hexutil.Uint64 {
return hexutil.Uint64(api.e.Miner().HashRate())
}
// PublicMinerAPI provides an API to control the miner.
// It offers only methods that operate on data that pose no security risk when it is publicly accessible.
type PublicMinerAPI struct {
- e *Ethereum
+ e *Burnout
agent *miner.RemoteAgent
}
// NewPublicMinerAPI create a new PublicMinerAPI instance.
-func NewPublicMinerAPI(e *Ethereum) *PublicMinerAPI {
+func NewPublicMinerAPI(e *Burnout) *PublicMinerAPI {
agent := miner.NewRemoteAgent(e.BlockChain(), e.Engine())
e.Miner().Register(agent)
@@ -125,11 +125,11 @@ func (api *PublicMinerAPI) SubmitHashrate(hashrate hexutil.Uint64, id common.Has
// PrivateMinerAPI provides private RPC methods to control the miner.
// These methods can be abused by external users and must be considered insecure for use by untrusted users.
type PrivateMinerAPI struct {
- e *Ethereum
+ e *Burnout
}
// NewPrivateMinerAPI create a new RPC service which controls the miner of this node.
-func NewPrivateMinerAPI(e *Ethereum) *PrivateMinerAPI {
+func NewPrivateMinerAPI(e *Burnout) *PrivateMinerAPI {
return &PrivateMinerAPI{e: e}
}
@@ -205,16 +205,16 @@ func (api *PrivateMinerAPI) GetHashrate() uint64 {
return uint64(api.e.miner.HashRate())
}
-// PrivateAdminAPI is the collection of Ethereum full node-related APIs
+// PrivateAdminAPI is the collection of Burnout full node-related APIs
// exposed over the private admin endpoint.
type PrivateAdminAPI struct {
- eth *Ethereum
+ brn *Burnout
}
// NewPrivateAdminAPI creates a new API definition for the full node private
-// admin methods of the Ethereum service.
-func NewPrivateAdminAPI(eth *Ethereum) *PrivateAdminAPI {
- return &PrivateAdminAPI{eth: eth}
+// admin methods of the Burnout service.
+func NewPrivateAdminAPI(brn *Burnout) *PrivateAdminAPI {
+ return &PrivateAdminAPI{brn: brn}
}
// ExportChain exports the current blockchain into a local file.
@@ -233,7 +233,7 @@ func (api *PrivateAdminAPI) ExportChain(file string) (bool, error) {
}
// Export the blockchain
- if err := api.eth.BlockChain().Export(writer); err != nil {
+ if err := api.brn.BlockChain().Export(writer); err != nil {
return false, err
}
return true, nil
@@ -285,12 +285,12 @@ func (api *PrivateAdminAPI) ImportChain(file string) (bool, error) {
break
}
- if hasAllBlocks(api.eth.BlockChain(), blocks) {
+ if hasAllBlocks(api.brn.BlockChain(), blocks) {
blocks = blocks[:0]
continue
}
// Import the batch and reset the buffer
- if _, err := api.eth.BlockChain().InsertChain(blocks); err != nil {
+ if _, err := api.brn.BlockChain().InsertChain(blocks); err != nil {
return false, fmt.Errorf("batch %d: failed to insert: %v", batch, err)
}
blocks = blocks[:0]
@@ -298,16 +298,16 @@ func (api *PrivateAdminAPI) ImportChain(file string) (bool, error) {
return true, nil
}
-// PublicDebugAPI is the collection of Ethereum full node APIs exposed
+// PublicDebugAPI is the collection of Burnout full node APIs exposed
// over the public debugging endpoint.
type PublicDebugAPI struct {
- eth *Ethereum
+ brn *Burnout
}
// NewPublicDebugAPI creates a new API definition for the full node-
-// related public debug methods of the Ethereum service.
-func NewPublicDebugAPI(eth *Ethereum) *PublicDebugAPI {
- return &PublicDebugAPI{eth: eth}
+// related public debug methods of the Burnout service.
+func NewPublicDebugAPI(brn *Burnout) *PublicDebugAPI {
+ return &PublicDebugAPI{brn: brn}
}
// DumpBlock retrieves the entire state of the database at a given block.
@@ -316,36 +316,36 @@ func (api *PublicDebugAPI) DumpBlock(blockNr rpc.BlockNumber) (state.Dump, error
// If we're dumping the pending state, we need to request
// both the pending block as well as the pending state from
// the miner and operate on those
- _, stateDb := api.eth.miner.Pending()
+ _, stateDb := api.brn.miner.Pending()
return stateDb.RawDump(), nil
}
var block *types.Block
if blockNr == rpc.LatestBlockNumber {
- block = api.eth.blockchain.CurrentBlock()
+ block = api.brn.blockchain.CurrentBlock()
} else {
- block = api.eth.blockchain.GetBlockByNumber(uint64(blockNr))
+ block = api.brn.blockchain.GetBlockByNumber(uint64(blockNr))
}
if block == nil {
return state.Dump{}, fmt.Errorf("block #%d not found", blockNr)
}
- stateDb, err := api.eth.BlockChain().StateAt(block.Root())
+ stateDb, err := api.brn.BlockChain().StateAt(block.Root())
if err != nil {
return state.Dump{}, err
}
return stateDb.RawDump(), nil
}
-// PrivateDebugAPI is the collection of Ethereum full node APIs exposed over
+// PrivateDebugAPI is the collection of Burnout full node APIs exposed over
// the private debugging endpoint.
type PrivateDebugAPI struct {
config *params.ChainConfig
- eth *Ethereum
+ brn *Burnout
}
// NewPrivateDebugAPI creates a new API definition for the full node-related
-// private debug methods of the Ethereum service.
-func NewPrivateDebugAPI(config *params.ChainConfig, eth *Ethereum) *PrivateDebugAPI {
- return &PrivateDebugAPI{config: config, eth: eth}
+// private debug methods of the Burnout service.
+func NewPrivateDebugAPI(config *params.ChainConfig, brn *Burnout) *PrivateDebugAPI {
+ return &PrivateDebugAPI{config: config, brn: brn}
}
// BlockTraceResult is the returned value when replaying a block to check for
@@ -397,11 +397,11 @@ func (api *PrivateDebugAPI) TraceBlockByNumber(blockNr rpc.BlockNumber, config *
switch blockNr {
case rpc.PendingBlockNumber:
// Pending block is only known by the miner
- block = api.eth.miner.PendingBlock()
+ block = api.brn.miner.PendingBlock()
case rpc.LatestBlockNumber:
- block = api.eth.blockchain.CurrentBlock()
+ block = api.brn.blockchain.CurrentBlock()
default:
- block = api.eth.blockchain.GetBlockByNumber(uint64(blockNr))
+ block = api.brn.blockchain.GetBlockByNumber(uint64(blockNr))
}
if block == nil {
@@ -419,7 +419,7 @@ func (api *PrivateDebugAPI) TraceBlockByNumber(blockNr rpc.BlockNumber, config *
// TraceBlockByHash processes the block by hash.
func (api *PrivateDebugAPI) TraceBlockByHash(hash common.Hash, config *vm.LogConfig) BlockTraceResult {
// Fetch the block that we aim to reprocess
- block := api.eth.BlockChain().GetBlockByHash(hash)
+ block := api.brn.BlockChain().GetBlockByHash(hash)
if block == nil {
return BlockTraceResult{Error: fmt.Sprintf("block #%x not found", hash)}
}
@@ -436,7 +436,7 @@ func (api *PrivateDebugAPI) TraceBlockByHash(hash common.Hash, config *vm.LogCon
func (api *PrivateDebugAPI) traceBlock(block *types.Block, logConfig *vm.LogConfig) (bool, []vm.StructLog, error) {
// Validate and reprocess the block
var (
- blockchain = api.eth.BlockChain()
+ blockchain = api.brn.BlockChain()
validator = blockchain.Validator()
processor = blockchain.Processor()
)
@@ -447,7 +447,7 @@ func (api *PrivateDebugAPI) traceBlock(block *types.Block, logConfig *vm.LogConf
Debug: true,
Tracer: structLogger,
}
- if err := api.eth.engine.VerifyHeader(blockchain, block.Header(), true); err != nil {
+ if err := api.brn.engine.VerifyHeader(blockchain, block.Header(), true); err != nil {
return false, structLogger.StructLogs(), err
}
statedb, err := blockchain.StateAt(blockchain.GetBlock(block.ParentHash(), block.NumberU64()-1).Root())
@@ -512,7 +512,7 @@ func (api *PrivateDebugAPI) TraceTransaction(ctx context.Context, txHash common.
}
// Retrieve the tx from the chain and the containing block
- tx, blockHash, _, txIndex := core.GetTransaction(api.eth.ChainDb(), txHash)
+ tx, blockHash, _, txIndex := core.GetTransaction(api.brn.ChainDb(), txHash)
if tx == nil {
return nil, fmt.Errorf("transaction %x not found", txHash)
}
@@ -545,15 +545,15 @@ func (api *PrivateDebugAPI) TraceTransaction(ctx context.Context, txHash common.
// computeTxEnv returns the execution environment of a certain transaction.
func (api *PrivateDebugAPI) computeTxEnv(blockHash common.Hash, txIndex int) (core.Message, vm.Context, *state.StateDB, error) {
// Create the parent state.
- block := api.eth.BlockChain().GetBlockByHash(blockHash)
+ block := api.brn.BlockChain().GetBlockByHash(blockHash)
if block == nil {
return nil, vm.Context{}, nil, fmt.Errorf("block %x not found", blockHash)
}
- parent := api.eth.BlockChain().GetBlock(block.ParentHash(), block.NumberU64()-1)
+ parent := api.brn.BlockChain().GetBlock(block.ParentHash(), block.NumberU64()-1)
if parent == nil {
return nil, vm.Context{}, nil, fmt.Errorf("block parent %x not found", block.ParentHash())
}
- statedb, err := api.eth.BlockChain().StateAt(parent.Root())
+ statedb, err := api.brn.BlockChain().StateAt(parent.Root())
if err != nil {
return nil, vm.Context{}, nil, err
}
@@ -564,7 +564,7 @@ func (api *PrivateDebugAPI) computeTxEnv(blockHash common.Hash, txIndex int) (co
for idx, tx := range txs {
// Assemble the transaction call message
msg, _ := tx.AsMessage(signer)
- context := core.NewEVMContext(msg, block.Header(), api.eth.BlockChain(), nil)
+ context := core.NewEVMContext(msg, block.Header(), api.brn.BlockChain(), nil)
if idx == txIndex {
return msg, context, statedb, nil
}
@@ -582,14 +582,14 @@ func (api *PrivateDebugAPI) computeTxEnv(blockHash common.Hash, txIndex int) (co
// Preimage is a debug API function that returns the preimage for a sha3 hash, if known.
func (api *PrivateDebugAPI) Preimage(ctx context.Context, hash common.Hash) (hexutil.Bytes, error) {
- db := core.PreimageTable(api.eth.ChainDb())
+ db := core.PreimageTable(api.brn.ChainDb())
return db.Get(hash.Bytes())
}
// GetBadBLocks returns a list of the last 'bad blocks' that the client has seen on the network
// and returns them as a JSON list of block-hashes
func (api *PrivateDebugAPI) GetBadBlocks(ctx context.Context) ([]core.BadBlockArgs, error) {
- return api.eth.BlockChain().BadBlocks()
+ return api.brn.BlockChain().BadBlocks()
}
// StorageRangeResult is the result of a debug_storageRangeAt API call.
diff --git a/eth/api_backend.go b/brn/api_backend.go
similarity index 62%
rename from eth/api_backend.go
rename to brn/api_backend.go
index 91f392f94f..c4f5712d6b 100644
--- a/eth/api_backend.go
+++ b/brn/api_backend.go
@@ -1,90 +1,90 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
-package eth
+package brn
import (
"context"
"math/big"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/bloombits"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/gasprice"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/burnout/go-burnout/accounts"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/common/math"
+ "github.com/burnout/go-burnout/core"
+ "github.com/burnout/go-burnout/core/bloombits"
+ "github.com/burnout/go-burnout/core/state"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/core/vm"
+ "github.com/burnout/go-burnout/brn/downloader"
+ "github.com/burnout/go-burnout/brn/gasprice"
+ "github.com/burnout/go-burnout/brndb"
+ "github.com/burnout/go-burnout/event"
+ "github.com/burnout/go-burnout/params"
+ "github.com/burnout/go-burnout/rpc"
)
// EthApiBackend implements ethapi.Backend for full nodes
type EthApiBackend struct {
- eth *Ethereum
+ brn *Burnout
gpo *gasprice.Oracle
}
func (b *EthApiBackend) ChainConfig() *params.ChainConfig {
- return b.eth.chainConfig
+ return b.brn.chainConfig
}
func (b *EthApiBackend) CurrentBlock() *types.Block {
- return b.eth.blockchain.CurrentBlock()
+ return b.brn.blockchain.CurrentBlock()
}
func (b *EthApiBackend) SetHead(number uint64) {
- b.eth.protocolManager.downloader.Cancel()
- b.eth.blockchain.SetHead(number)
+ b.brn.protocolManager.downloader.Cancel()
+ b.brn.blockchain.SetHead(number)
}
func (b *EthApiBackend) HeaderByNumber(ctx context.Context, blockNr rpc.BlockNumber) (*types.Header, error) {
// Pending block is only known by the miner
if blockNr == rpc.PendingBlockNumber {
- block := b.eth.miner.PendingBlock()
+ block := b.brn.miner.PendingBlock()
return block.Header(), nil
}
// Otherwise resolve and return the block
if blockNr == rpc.LatestBlockNumber {
- return b.eth.blockchain.CurrentBlock().Header(), nil
+ return b.brn.blockchain.CurrentBlock().Header(), nil
}
- return b.eth.blockchain.GetHeaderByNumber(uint64(blockNr)), nil
+ return b.brn.blockchain.GetHeaderByNumber(uint64(blockNr)), nil
}
func (b *EthApiBackend) BlockByNumber(ctx context.Context, blockNr rpc.BlockNumber) (*types.Block, error) {
// Pending block is only known by the miner
if blockNr == rpc.PendingBlockNumber {
- block := b.eth.miner.PendingBlock()
+ block := b.brn.miner.PendingBlock()
return block, nil
}
// Otherwise resolve and return the block
if blockNr == rpc.LatestBlockNumber {
- return b.eth.blockchain.CurrentBlock(), nil
+ return b.brn.blockchain.CurrentBlock(), nil
}
- return b.eth.blockchain.GetBlockByNumber(uint64(blockNr)), nil
+ return b.brn.blockchain.GetBlockByNumber(uint64(blockNr)), nil
}
func (b *EthApiBackend) StateAndHeaderByNumber(ctx context.Context, blockNr rpc.BlockNumber) (*state.StateDB, *types.Header, error) {
// Pending state is only known by the miner
if blockNr == rpc.PendingBlockNumber {
- block, state := b.eth.miner.Pending()
+ block, state := b.brn.miner.Pending()
return state, block.Header(), nil
}
// Otherwise resolve the block number and return its state
@@ -92,56 +92,56 @@ func (b *EthApiBackend) StateAndHeaderByNumber(ctx context.Context, blockNr rpc.
if header == nil || err != nil {
return nil, nil, err
}
- stateDb, err := b.eth.BlockChain().StateAt(header.Root)
+ stateDb, err := b.brn.BlockChain().StateAt(header.Root)
return stateDb, header, err
}
func (b *EthApiBackend) GetBlock(ctx context.Context, blockHash common.Hash) (*types.Block, error) {
- return b.eth.blockchain.GetBlockByHash(blockHash), nil
+ return b.brn.blockchain.GetBlockByHash(blockHash), nil
}
func (b *EthApiBackend) GetReceipts(ctx context.Context, blockHash common.Hash) (types.Receipts, error) {
- return core.GetBlockReceipts(b.eth.chainDb, blockHash, core.GetBlockNumber(b.eth.chainDb, blockHash)), nil
+ return core.GetBlockReceipts(b.brn.chainDb, blockHash, core.GetBlockNumber(b.brn.chainDb, blockHash)), nil
}
func (b *EthApiBackend) GetTd(blockHash common.Hash) *big.Int {
- return b.eth.blockchain.GetTdByHash(blockHash)
+ return b.brn.blockchain.GetTdByHash(blockHash)
}
func (b *EthApiBackend) GetEVM(ctx context.Context, msg core.Message, state *state.StateDB, header *types.Header, vmCfg vm.Config) (*vm.EVM, func() error, error) {
state.SetBalance(msg.From(), math.MaxBig256)
vmError := func() error { return nil }
- context := core.NewEVMContext(msg, header, b.eth.BlockChain(), nil)
- return vm.NewEVM(context, state, b.eth.chainConfig, vmCfg), vmError, nil
+ context := core.NewEVMContext(msg, header, b.brn.BlockChain(), nil)
+ return vm.NewEVM(context, state, b.brn.chainConfig, vmCfg), vmError, nil
}
func (b *EthApiBackend) SubscribeRemovedLogsEvent(ch chan<- core.RemovedLogsEvent) event.Subscription {
- return b.eth.BlockChain().SubscribeRemovedLogsEvent(ch)
+ return b.brn.BlockChain().SubscribeRemovedLogsEvent(ch)
}
func (b *EthApiBackend) SubscribeChainEvent(ch chan<- core.ChainEvent) event.Subscription {
- return b.eth.BlockChain().SubscribeChainEvent(ch)
+ return b.brn.BlockChain().SubscribeChainEvent(ch)
}
func (b *EthApiBackend) SubscribeChainHeadEvent(ch chan<- core.ChainHeadEvent) event.Subscription {
- return b.eth.BlockChain().SubscribeChainHeadEvent(ch)
+ return b.brn.BlockChain().SubscribeChainHeadEvent(ch)
}
func (b *EthApiBackend) SubscribeChainSideEvent(ch chan<- core.ChainSideEvent) event.Subscription {
- return b.eth.BlockChain().SubscribeChainSideEvent(ch)
+ return b.brn.BlockChain().SubscribeChainSideEvent(ch)
}
func (b *EthApiBackend) SubscribeLogsEvent(ch chan<- []*types.Log) event.Subscription {
- return b.eth.BlockChain().SubscribeLogsEvent(ch)
+ return b.brn.BlockChain().SubscribeLogsEvent(ch)
}
func (b *EthApiBackend) SendTx(ctx context.Context, signedTx *types.Transaction) error {
- return b.eth.txPool.AddLocal(signedTx)
+ return b.brn.txPool.AddLocal(signedTx)
}
func (b *EthApiBackend) GetPoolTransactions() (types.Transactions, error) {
- pending, err := b.eth.txPool.Pending()
+ pending, err := b.brn.txPool.Pending()
if err != nil {
return nil, err
}
@@ -153,56 +153,56 @@ func (b *EthApiBackend) GetPoolTransactions() (types.Transactions, error) {
}
func (b *EthApiBackend) GetPoolTransaction(hash common.Hash) *types.Transaction {
- return b.eth.txPool.Get(hash)
+ return b.brn.txPool.Get(hash)
}
func (b *EthApiBackend) GetPoolNonce(ctx context.Context, addr common.Address) (uint64, error) {
- return b.eth.txPool.State().GetNonce(addr), nil
+ return b.brn.txPool.State().GetNonce(addr), nil
}
func (b *EthApiBackend) Stats() (pending int, queued int) {
- return b.eth.txPool.Stats()
+ return b.brn.txPool.Stats()
}
func (b *EthApiBackend) TxPoolContent() (map[common.Address]types.Transactions, map[common.Address]types.Transactions) {
- return b.eth.TxPool().Content()
+ return b.brn.TxPool().Content()
}
func (b *EthApiBackend) SubscribeTxPreEvent(ch chan<- core.TxPreEvent) event.Subscription {
- return b.eth.TxPool().SubscribeTxPreEvent(ch)
+ return b.brn.TxPool().SubscribeTxPreEvent(ch)
}
func (b *EthApiBackend) Downloader() *downloader.Downloader {
- return b.eth.Downloader()
+ return b.brn.Downloader()
}
func (b *EthApiBackend) ProtocolVersion() int {
- return b.eth.EthVersion()
+ return b.brn.EthVersion()
}
func (b *EthApiBackend) SuggestPrice(ctx context.Context) (*big.Int, error) {
return b.gpo.SuggestPrice(ctx)
}
-func (b *EthApiBackend) ChainDb() ethdb.Database {
- return b.eth.ChainDb()
+func (b *EthApiBackend) ChainDb() brndb.Database {
+ return b.brn.ChainDb()
}
func (b *EthApiBackend) EventMux() *event.TypeMux {
- return b.eth.EventMux()
+ return b.brn.EventMux()
}
func (b *EthApiBackend) AccountManager() *accounts.Manager {
- return b.eth.AccountManager()
+ return b.brn.AccountManager()
}
func (b *EthApiBackend) BloomStatus() (uint64, uint64) {
- sections, _, _ := b.eth.bloomIndexer.Sections()
+ sections, _, _ := b.brn.bloomIndexer.Sections()
return params.BloomBitsBlocks, sections
}
func (b *EthApiBackend) ServiceFilter(ctx context.Context, session *bloombits.MatcherSession) {
for i := 0; i < bloomFilterThreads; i++ {
- go session.Multiplex(bloomRetrievalBatch, bloomRetrievalWait, b.eth.bloomRequests)
+ go session.Multiplex(bloomRetrievalBatch, bloomRetrievalWait, b.brn.bloomRequests)
}
}
diff --git a/eth/api_test.go b/brn/api_test.go
similarity index 83%
rename from eth/api_test.go
rename to brn/api_test.go
index 49ce386886..9ad57b5208 100644
--- a/eth/api_test.go
+++ b/brn/api_test.go
@@ -1,29 +1,29 @@
-// Copyright 2016 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2016 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
-package eth
+package brn
import (
"reflect"
"testing"
"github.com/davecgh/go-spew/spew"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/ethdb"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/core/state"
+ "github.com/burnout/go-burnout/brndb"
)
var dumper = spew.ConfigState{Indent: " "}
@@ -31,7 +31,7 @@ var dumper = spew.ConfigState{Indent: " "}
func TestStorageRangeAt(t *testing.T) {
// Create a state where account 0x010000... has a few storage entries.
var (
- db, _ = ethdb.NewMemDatabase()
+ db, _ = brndb.NewMemDatabase()
state, _ = state.New(common.Hash{}, state.NewDatabase(db))
addr = common.Address{0x01}
keys = []common.Hash{ // hashes of Keys of storage
diff --git a/eth/backend.go b/brn/backend.go
similarity index 66%
rename from eth/backend.go
rename to brn/backend.go
index 99a1928fec..25aafb6413 100644
--- a/eth/backend.go
+++ b/brn/backend.go
@@ -1,21 +1,21 @@
-// Copyright 2014 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2014 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
-// Package eth implements the Ethereum protocol.
-package eth
+// Package brn implements the Burnout protocol.
+package brn
import (
"errors"
@@ -25,29 +25,29 @@ import (
"sync"
"sync/atomic"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/consensus/clique"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/bloombits"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/filters"
- "github.com/ethereum/go-ethereum/eth/gasprice"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/miner"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/burnout/go-burnout/accounts"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/common/hexutil"
+ "github.com/burnout/go-burnout/consensus"
+ "github.com/burnout/go-burnout/consensus/clique"
+ "github.com/burnout/go-burnout/consensus/ethash"
+ "github.com/burnout/go-burnout/core"
+ "github.com/burnout/go-burnout/core/bloombits"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/core/vm"
+ "github.com/burnout/go-burnout/brn/downloader"
+ "github.com/burnout/go-burnout/brn/filters"
+ "github.com/burnout/go-burnout/brn/gasprice"
+ "github.com/burnout/go-burnout/brndb"
+ "github.com/burnout/go-burnout/event"
+ "github.com/burnout/go-burnout/internal/ethapi"
+ "github.com/burnout/go-burnout/log"
+ "github.com/burnout/go-burnout/miner"
+ "github.com/burnout/go-burnout/node"
+ "github.com/burnout/go-burnout/p2p"
+ "github.com/burnout/go-burnout/params"
+ "github.com/burnout/go-burnout/rlp"
+ "github.com/burnout/go-burnout/rpc"
)
type LesServer interface {
@@ -56,13 +56,13 @@ type LesServer interface {
Protocols() []p2p.Protocol
}
-// Ethereum implements the Ethereum full node service.
-type Ethereum struct {
+// Burnout implements the Burnout full node service.
+type Burnout struct {
config *Config
chainConfig *params.ChainConfig
// Channel for shutting down the service
- shutdownChan chan bool // Channel for shutting down the ethereum
+ shutdownChan chan bool // Channel for shutting down the burnout
stopDbUpgrade func() error // stop chain db sequential key upgrade
// Handlers
@@ -72,7 +72,7 @@ type Ethereum struct {
lesServer LesServer
// DB interfaces
- chainDb ethdb.Database // Block chain database
+ chainDb brndb.Database // Block chain database
eventMux *event.TypeMux
engine consensus.Engine
@@ -93,15 +93,15 @@ type Ethereum struct {
lock sync.RWMutex // Protects the variadic fields (e.g. gas price and etherbase)
}
-func (s *Ethereum) AddLesServer(ls LesServer) {
+func (s *Burnout) AddLesServer(ls LesServer) {
s.lesServer = ls
}
-// New creates a new Ethereum object (including the
-// initialisation of the common Ethereum object)
-func New(ctx *node.ServiceContext, config *Config) (*Ethereum, error) {
+// New creates a new Burnout object (including the
+// initialisation of the common Burnout object)
+func New(ctx *node.ServiceContext, config *Config) (*Burnout, error) {
if config.SyncMode == downloader.LightSync {
- return nil, errors.New("can't run eth.Ethereum in light sync mode, use les.LightEthereum")
+ return nil, errors.New("can't run brn.Burnout in light sync mode, use les.LightBurnout")
}
if !config.SyncMode.IsValid() {
return nil, fmt.Errorf("invalid sync mode %d", config.SyncMode)
@@ -117,7 +117,7 @@ func New(ctx *node.ServiceContext, config *Config) (*Ethereum, error) {
}
log.Info("Initialised chain configuration", "config", chainConfig)
- eth := &Ethereum{
+ brn := &Burnout{
config: config,
chainDb: chainDb,
chainConfig: chainConfig,
@@ -133,7 +133,7 @@ func New(ctx *node.ServiceContext, config *Config) (*Ethereum, error) {
bloomIndexer: NewBloomIndexer(chainDb, params.BloomBitsBlocks),
}
- log.Info("Initialising Ethereum protocol", "versions", ProtocolVersions, "network", config.NetworkId)
+ log.Info("Initialising Burnout protocol", "versions", ProtocolVersions, "network", config.NetworkId)
if !config.SkipBcVersionCheck {
bcVersion := core.GetBlockChainVersion(chainDb)
@@ -144,37 +144,37 @@ func New(ctx *node.ServiceContext, config *Config) (*Ethereum, error) {
}
vmConfig := vm.Config{EnablePreimageRecording: config.EnablePreimageRecording}
- eth.blockchain, err = core.NewBlockChain(chainDb, eth.chainConfig, eth.engine, vmConfig)
+ brn.blockchain, err = core.NewBlockChain(chainDb, brn.chainConfig, brn.engine, vmConfig)
if err != nil {
return nil, err
}
// Rewind the chain in case of an incompatible config upgrade.
if compat, ok := genesisErr.(*params.ConfigCompatError); ok {
log.Warn("Rewinding chain to upgrade configuration", "err", compat)
- eth.blockchain.SetHead(compat.RewindTo)
+ brn.blockchain.SetHead(compat.RewindTo)
core.WriteChainConfig(chainDb, genesisHash, chainConfig)
}
- eth.bloomIndexer.Start(eth.blockchain.CurrentHeader(), eth.blockchain.SubscribeChainEvent)
+ brn.bloomIndexer.Start(brn.blockchain.CurrentHeader(), brn.blockchain.SubscribeChainEvent)
if config.TxPool.Journal != "" {
config.TxPool.Journal = ctx.ResolvePath(config.TxPool.Journal)
}
- eth.txPool = core.NewTxPool(config.TxPool, eth.chainConfig, eth.blockchain)
+ brn.txPool = core.NewTxPool(config.TxPool, brn.chainConfig, brn.blockchain)
- if eth.protocolManager, err = NewProtocolManager(eth.chainConfig, config.SyncMode, config.NetworkId, eth.eventMux, eth.txPool, eth.engine, eth.blockchain, chainDb); err != nil {
+ if brn.protocolManager, err = NewProtocolManager(brn.chainConfig, config.SyncMode, config.NetworkId, brn.eventMux, brn.txPool, brn.engine, brn.blockchain, chainDb); err != nil {
return nil, err
}
- eth.miner = miner.New(eth, eth.chainConfig, eth.EventMux(), eth.engine)
- eth.miner.SetExtra(makeExtraData(config.ExtraData))
+ brn.miner = miner.New(brn, brn.chainConfig, brn.EventMux(), brn.engine)
+ brn.miner.SetExtra(makeExtraData(config.ExtraData))
- eth.ApiBackend = &EthApiBackend{eth, nil}
+ brn.ApiBackend = &EthApiBackend{brn, nil}
gpoParams := config.GPO
if gpoParams.Default == nil {
gpoParams.Default = config.GasPrice
}
- eth.ApiBackend.gpo = gasprice.NewOracle(eth.ApiBackend, gpoParams)
+ brn.ApiBackend.gpo = gasprice.NewOracle(brn.ApiBackend, gpoParams)
- return eth, nil
+ return brn, nil
}
func makeExtraData(extra []byte) []byte {
@@ -195,19 +195,19 @@ func makeExtraData(extra []byte) []byte {
}
// CreateDB creates the chain database.
-func CreateDB(ctx *node.ServiceContext, config *Config, name string) (ethdb.Database, error) {
+func CreateDB(ctx *node.ServiceContext, config *Config, name string) (brndb.Database, error) {
db, err := ctx.OpenDatabase(name, config.DatabaseCache, config.DatabaseHandles)
if err != nil {
return nil, err
}
- if db, ok := db.(*ethdb.LDBDatabase); ok {
- db.Meter("eth/db/chaindata/")
+ if db, ok := db.(*brndb.LDBDatabase); ok {
+ db.Meter("brn/db/chaindata/")
}
return db, nil
}
-// CreateConsensusEngine creates the required type of consensus engine instance for an Ethereum service
-func CreateConsensusEngine(ctx *node.ServiceContext, config *Config, chainConfig *params.ChainConfig, db ethdb.Database) consensus.Engine {
+// CreateConsensusEngine creates the required type of consensus engine instance for an Burnout service
+func CreateConsensusEngine(ctx *node.ServiceContext, config *Config, chainConfig *params.ChainConfig, db brndb.Database) consensus.Engine {
// If proof-of-authority is requested, set it up
if chainConfig.Clique != nil {
return clique.New(chainConfig.Clique, db)
@@ -231,9 +231,9 @@ func CreateConsensusEngine(ctx *node.ServiceContext, config *Config, chainConfig
}
}
-// APIs returns the collection of RPC services the ethereum package offers.
+// APIs returns the collection of RPC services the burnout package offers.
// NOTE, some of these services probably need to be moved to somewhere else.
-func (s *Ethereum) APIs() []rpc.API {
+func (s *Burnout) APIs() []rpc.API {
apis := ethapi.GetAPIs(s.ApiBackend)
// Append any APIs exposed explicitly by the consensus engine
@@ -242,17 +242,17 @@ func (s *Ethereum) APIs() []rpc.API {
// Append all the local APIs and return
return append(apis, []rpc.API{
{
- Namespace: "eth",
+ Namespace: "brn",
Version: "1.0",
- Service: NewPublicEthereumAPI(s),
+ Service: NewPublicBurnoutAPI(s),
Public: true,
}, {
- Namespace: "eth",
+ Namespace: "brn",
Version: "1.0",
Service: NewPublicMinerAPI(s),
Public: true,
}, {
- Namespace: "eth",
+ Namespace: "brn",
Version: "1.0",
Service: downloader.NewPublicDownloaderAPI(s.protocolManager.downloader, s.eventMux),
Public: true,
@@ -262,7 +262,7 @@ func (s *Ethereum) APIs() []rpc.API {
Service: NewPrivateMinerAPI(s),
Public: false,
}, {
- Namespace: "eth",
+ Namespace: "brn",
Version: "1.0",
Service: filters.NewPublicFilterAPI(s.ApiBackend, false),
Public: true,
@@ -288,11 +288,11 @@ func (s *Ethereum) APIs() []rpc.API {
}...)
}
-func (s *Ethereum) ResetWithGenesisBlock(gb *types.Block) {
+func (s *Burnout) ResetWithGenesisBlock(gb *types.Block) {
s.blockchain.ResetWithGenesisBlock(gb)
}
-func (s *Ethereum) Etherbase() (eb common.Address, err error) {
+func (s *Burnout) Etherbase() (eb common.Address, err error) {
s.lock.RLock()
etherbase := s.etherbase
s.lock.RUnlock()
@@ -309,7 +309,7 @@ func (s *Ethereum) Etherbase() (eb common.Address, err error) {
}
// set in js console via admin interface or wrapper from cli flags
-func (self *Ethereum) SetEtherbase(etherbase common.Address) {
+func (self *Burnout) SetEtherbase(etherbase common.Address) {
self.lock.Lock()
self.etherbase = etherbase
self.lock.Unlock()
@@ -317,7 +317,7 @@ func (self *Ethereum) SetEtherbase(etherbase common.Address) {
self.miner.SetEtherbase(etherbase)
}
-func (s *Ethereum) StartMining(local bool) error {
+func (s *Burnout) StartMining(local bool) error {
eb, err := s.Etherbase()
if err != nil {
log.Error("Cannot start mining without etherbase", "err", err)
@@ -342,24 +342,24 @@ func (s *Ethereum) StartMining(local bool) error {
return nil
}
-func (s *Ethereum) StopMining() { s.miner.Stop() }
-func (s *Ethereum) IsMining() bool { return s.miner.Mining() }
-func (s *Ethereum) Miner() *miner.Miner { return s.miner }
+func (s *Burnout) StopMining() { s.miner.Stop() }
+func (s *Burnout) IsMining() bool { return s.miner.Mining() }
+func (s *Burnout) Miner() *miner.Miner { return s.miner }
-func (s *Ethereum) AccountManager() *accounts.Manager { return s.accountManager }
-func (s *Ethereum) BlockChain() *core.BlockChain { return s.blockchain }
-func (s *Ethereum) TxPool() *core.TxPool { return s.txPool }
-func (s *Ethereum) EventMux() *event.TypeMux { return s.eventMux }
-func (s *Ethereum) Engine() consensus.Engine { return s.engine }
-func (s *Ethereum) ChainDb() ethdb.Database { return s.chainDb }
-func (s *Ethereum) IsListening() bool { return true } // Always listening
-func (s *Ethereum) EthVersion() int { return int(s.protocolManager.SubProtocols[0].Version) }
-func (s *Ethereum) NetVersion() uint64 { return s.networkId }
-func (s *Ethereum) Downloader() *downloader.Downloader { return s.protocolManager.downloader }
+func (s *Burnout) AccountManager() *accounts.Manager { return s.accountManager }
+func (s *Burnout) BlockChain() *core.BlockChain { return s.blockchain }
+func (s *Burnout) TxPool() *core.TxPool { return s.txPool }
+func (s *Burnout) EventMux() *event.TypeMux { return s.eventMux }
+func (s *Burnout) Engine() consensus.Engine { return s.engine }
+func (s *Burnout) ChainDb() brndb.Database { return s.chainDb }
+func (s *Burnout) IsListening() bool { return true } // Always listening
+func (s *Burnout) EthVersion() int { return int(s.protocolManager.SubProtocols[0].Version) }
+func (s *Burnout) NetVersion() uint64 { return s.networkId }
+func (s *Burnout) Downloader() *downloader.Downloader { return s.protocolManager.downloader }
// Protocols implements node.Service, returning all the currently configured
// network protocols to start.
-func (s *Ethereum) Protocols() []p2p.Protocol {
+func (s *Burnout) Protocols() []p2p.Protocol {
if s.lesServer == nil {
return s.protocolManager.SubProtocols
}
@@ -367,8 +367,8 @@ func (s *Ethereum) Protocols() []p2p.Protocol {
}
// Start implements node.Service, starting all internal goroutines needed by the
-// Ethereum protocol implementation.
-func (s *Ethereum) Start(srvr *p2p.Server) error {
+// Burnout protocol implementation.
+func (s *Burnout) Start(srvr *p2p.Server) error {
// Start the bloom bits servicing goroutines
s.startBloomHandlers()
@@ -392,8 +392,8 @@ func (s *Ethereum) Start(srvr *p2p.Server) error {
}
// Stop implements node.Service, terminating all internal goroutines used by the
-// Ethereum protocol.
-func (s *Ethereum) Stop() error {
+// Burnout protocol.
+func (s *Burnout) Stop() error {
if s.stopDbUpgrade != nil {
s.stopDbUpgrade()
}
diff --git a/eth/bind.go b/brn/bind.go
similarity index 77%
rename from eth/bind.go
rename to brn/bind.go
index d09977dbc2..d7bf419867 100644
--- a/eth/bind.go
+++ b/brn/bind.go
@@ -1,52 +1,52 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
-package eth
+package brn
import (
"context"
"math/big"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/burnout/go-burnout"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/common/hexutil"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/internal/ethapi"
+ "github.com/burnout/go-burnout/rlp"
+ "github.com/burnout/go-burnout/rpc"
)
-// ContractBackend implements bind.ContractBackend with direct calls to Ethereum
-// internals to support operating on contracts within subprotocols like eth and
+// ContractBackend implements bind.ContractBackend with direct calls to Burnout
+// internals to support operating on contracts within subprotocols like brn and
// swarm.
//
-// Internally this backend uses the already exposed API endpoints of the Ethereum
+// Internally this backend uses the already exposed API endpoints of the Burnout
// object. These should be rewritten to internal Go method calls when the Go API
// is refactored to support a clean library use.
type ContractBackend struct {
- eapi *ethapi.PublicEthereumAPI // Wrapper around the Ethereum object to access metadata
+ eapi *ethapi.PublicBurnoutAPI // Wrapper around the Burnout object to access metadata
bcapi *ethapi.PublicBlockChainAPI // Wrapper around the blockchain to access chain data
txapi *ethapi.PublicTransactionPoolAPI // Wrapper around the transaction pool to access transaction data
}
// NewContractBackend creates a new native contract backend using an existing
-// Ethereum object.
+// Burnout object.
func NewContractBackend(apiBackend ethapi.Backend) *ContractBackend {
return &ContractBackend{
- eapi: ethapi.NewPublicEthereumAPI(apiBackend),
+ eapi: ethapi.NewPublicBurnoutAPI(apiBackend),
bcapi: ethapi.NewPublicBlockChainAPI(apiBackend),
txapi: ethapi.NewPublicTransactionPoolAPI(apiBackend, new(ethapi.AddrLocker)),
}
@@ -62,23 +62,23 @@ func (b *ContractBackend) PendingCodeAt(ctx context.Context, contract common.Add
return b.bcapi.GetCode(ctx, contract, rpc.PendingBlockNumber)
}
-// ContractCall implements bind.ContractCaller executing an Ethereum contract
+// ContractCall implements bind.ContractCaller executing an Burnout contract
// call with the specified data as the input. The pending flag requests execution
// against the pending block, not the stable head of the chain.
-func (b *ContractBackend) CallContract(ctx context.Context, msg ethereum.CallMsg, blockNum *big.Int) ([]byte, error) {
+func (b *ContractBackend) CallContract(ctx context.Context, msg burnout.CallMsg, blockNum *big.Int) ([]byte, error) {
out, err := b.bcapi.Call(ctx, toCallArgs(msg), toBlockNumber(blockNum))
return out, err
}
-// ContractCall implements bind.ContractCaller executing an Ethereum contract
+// ContractCall implements bind.ContractCaller executing an Burnout contract
// call with the specified data as the input. The pending flag requests execution
// against the pending block, not the stable head of the chain.
-func (b *ContractBackend) PendingCallContract(ctx context.Context, msg ethereum.CallMsg) ([]byte, error) {
+func (b *ContractBackend) PendingCallContract(ctx context.Context, msg burnout.CallMsg) ([]byte, error) {
out, err := b.bcapi.Call(ctx, toCallArgs(msg), rpc.PendingBlockNumber)
return out, err
}
-func toCallArgs(msg ethereum.CallMsg) ethapi.CallArgs {
+func toCallArgs(msg burnout.CallMsg) ethapi.CallArgs {
args := ethapi.CallArgs{
To: msg.To,
From: msg.From,
@@ -124,7 +124,7 @@ func (b *ContractBackend) SuggestGasPrice(ctx context.Context) (*big.Int, error)
// the backend blockchain. There is no guarantee that this is the true gas limit
// requirement as other transactions may be added or removed by miners, but it
// should provide a basis for setting a reasonable default.
-func (b *ContractBackend) EstimateGas(ctx context.Context, msg ethereum.CallMsg) (*big.Int, error) {
+func (b *ContractBackend) EstimateGas(ctx context.Context, msg burnout.CallMsg) (*big.Int, error) {
out, err := b.bcapi.EstimateGas(ctx, toCallArgs(msg))
return out.ToInt(), err
}
diff --git a/eth/bloombits.go b/brn/bloombits.go
similarity index 76%
rename from eth/bloombits.go
rename to brn/bloombits.go
index 32f6c7b318..60fab9f72b 100644
--- a/eth/bloombits.go
+++ b/brn/bloombits.go
@@ -1,35 +1,35 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2017 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
-package eth
+package brn
import (
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/bitutil"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/bloombits"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/common/bitutil"
+ "github.com/burnout/go-burnout/core"
+ "github.com/burnout/go-burnout/core/bloombits"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/brndb"
+ "github.com/burnout/go-burnout/params"
)
const (
- // bloomServiceThreads is the number of goroutines used globally by an Ethereum
+ // bloomServiceThreads is the number of goroutines used globally by an Burnout
// instance to service bloombits lookups for all running filters.
bloomServiceThreads = 16
@@ -48,21 +48,21 @@ const (
// startBloomHandlers starts a batch of goroutines to accept bloom bit database
// retrievals from possibly a range of filters and serving the data to satisfy.
-func (eth *Ethereum) startBloomHandlers() {
+func (brn *Burnout) startBloomHandlers() {
for i := 0; i < bloomServiceThreads; i++ {
go func() {
for {
select {
- case <-eth.shutdownChan:
+ case <-brn.shutdownChan:
return
- case request := <-eth.bloomRequests:
+ case request := <-brn.bloomRequests:
task := <-request
task.Bitsets = make([][]byte, len(task.Sections))
for i, section := range task.Sections {
- head := core.GetCanonicalHash(eth.chainDb, (section+1)*params.BloomBitsBlocks-1)
- blob, err := bitutil.DecompressBytes(core.GetBloomBits(eth.chainDb, task.Bit, section, head), int(params.BloomBitsBlocks)/8)
+ head := core.GetCanonicalHash(brn.chainDb, (section+1)*params.BloomBitsBlocks-1)
+ blob, err := bitutil.DecompressBytes(core.GetBloomBits(brn.chainDb, task.Bit, section, head), int(params.BloomBitsBlocks)/8)
if err != nil {
panic(err)
}
@@ -86,11 +86,11 @@ const (
)
// BloomIndexer implements a core.ChainIndexer, building up a rotated bloom bits index
-// for the Ethereum header bloom filters, permitting blazing fast filtering.
+// for the Burnout header bloom filters, permitting blazing fast filtering.
type BloomIndexer struct {
size uint64 // section size to generate bloombits for
- db ethdb.Database // database instance to write index data and metadata into
+ db brndb.Database // database instance to write index data and metadata into
gen *bloombits.Generator // generator to rotate the bloom bits crating the bloom index
section uint64 // Section is the section number being processed currently
@@ -99,12 +99,12 @@ type BloomIndexer struct {
// NewBloomIndexer returns a chain indexer that generates bloom bits data for the
// canonical chain for fast logs filtering.
-func NewBloomIndexer(db ethdb.Database, size uint64) *core.ChainIndexer {
+func NewBloomIndexer(db brndb.Database, size uint64) *core.ChainIndexer {
backend := &BloomIndexer{
db: db,
size: size,
}
- table := ethdb.NewTable(db, string(core.BloomBitsIndexPrefix))
+ table := brndb.NewTable(db, string(core.BloomBitsIndexPrefix))
return core.NewChainIndexer(db, table, backend, size, bloomConfirms, bloomThrottling, "bloombits")
}
diff --git a/eth/config.go b/brn/config.go
similarity index 78%
rename from eth/config.go
rename to brn/config.go
index 7bcfd403ea..b6d9370e24 100644
--- a/eth/config.go
+++ b/brn/config.go
@@ -1,20 +1,20 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2017 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
-package eth
+package brn
import (
"math/big"
@@ -23,15 +23,15 @@ import (
"path/filepath"
"runtime"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/gasprice"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/common/hexutil"
+ "github.com/burnout/go-burnout/core"
+ "github.com/burnout/go-burnout/brn/downloader"
+ "github.com/burnout/go-burnout/brn/gasprice"
+ "github.com/burnout/go-burnout/params"
)
-// DefaultConfig contains default settings for use on the Ethereum main net.
+// DefaultConfig contains default settings for use on the Burnout main net.
var DefaultConfig = Config{
SyncMode: downloader.FastSync,
EthashCacheDir: "ethash",
@@ -69,7 +69,7 @@ func init() {
type Config struct {
// The genesis block, which is inserted if the database is empty.
- // If nil, the Ethereum main net block is used.
+ // If nil, the Burnout main net block is used.
Genesis *core.Genesis `toml:",omitempty"`
// Protocol options
diff --git a/eth/db_upgrade.go b/brn/db_upgrade.go
similarity index 83%
rename from eth/db_upgrade.go
rename to brn/db_upgrade.go
index d41afa17c0..cf70c0f46f 100644
--- a/eth/db_upgrade.go
+++ b/brn/db_upgrade.go
@@ -1,31 +1,31 @@
-// Copyright 2016 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2016 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
-// Package eth implements the Ethereum protocol.
-package eth
+// Package brn implements the Burnout protocol.
+package brn
import (
"bytes"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/core"
+ "github.com/burnout/go-burnout/brndb"
+ "github.com/burnout/go-burnout/log"
+ "github.com/burnout/go-burnout/rlp"
)
var deduplicateData = []byte("dbUpgrade_20170714deduplicateData")
@@ -34,7 +34,7 @@ var deduplicateData = []byte("dbUpgrade_20170714deduplicateData")
// starts a background process to make upgrades if necessary.
// Returns a stop function that blocks until the process has
// been safely stopped.
-func upgradeDeduplicateData(db ethdb.Database) func() error {
+func upgradeDeduplicateData(db brndb.Database) func() error {
// If the database is already converted or empty, bail out
data, _ := db.Get(deduplicateData)
if len(data) > 0 && data[0] == 42 {
@@ -50,7 +50,7 @@ func upgradeDeduplicateData(db ethdb.Database) func() error {
go func() {
// Create an iterator to read the entire database and covert old lookup entires
- it := db.(*ethdb.LDBDatabase).NewIterator()
+ it := db.(*brndb.LDBDatabase).NewIterator()
defer func() {
if it != nil {
it.Release()
@@ -100,7 +100,7 @@ func upgradeDeduplicateData(db ethdb.Database) func() error {
converted++
if converted%100000 == 0 {
it.Release()
- it = db.(*ethdb.LDBDatabase).NewIterator()
+ it = db.(*brndb.LDBDatabase).NewIterator()
it.Seek(key)
log.Info("Deduplicating database entries", "deduped", converted)
diff --git a/eth/downloader/api.go b/brn/downloader/api.go
similarity index 89%
rename from eth/downloader/api.go
rename to brn/downloader/api.go
index d496fa6a4d..443001b558 100644
--- a/eth/downloader/api.go
+++ b/brn/downloader/api.go
@@ -1,18 +1,18 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package downloader
@@ -20,9 +20,9 @@ import (
"context"
"sync"
- ethereum "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/rpc"
+ burnout "github.com/burnout/go-burnout"
+ "github.com/burnout/go-burnout/event"
+ "github.com/burnout/go-burnout/rpc"
)
// PublicDownloaderAPI provides an API which gives information about the current synchronisation status.
@@ -89,7 +89,7 @@ func (api *PublicDownloaderAPI) eventLoop() {
}
}
-// Syncing provides information when this nodes starts synchronising with the Ethereum network and when it's finished.
+// Syncing provides information when this nodes starts synchronising with the Burnout network and when it's finished.
func (api *PublicDownloaderAPI) Syncing(ctx context.Context) (*rpc.Subscription, error) {
notifier, supported := rpc.NotifierFromContext(ctx)
if !supported {
@@ -122,7 +122,7 @@ func (api *PublicDownloaderAPI) Syncing(ctx context.Context) (*rpc.Subscription,
// SyncingResult provides information about the current synchronisation status for this node.
type SyncingResult struct {
Syncing bool `json:"syncing"`
- Status ethereum.SyncProgress `json:"status"`
+ Status burnout.SyncProgress `json:"status"`
}
// uninstallSyncSubscriptionRequest uninstalles a syncing subscription in the API event loop.
diff --git a/eth/downloader/downloader.go b/brn/downloader/downloader.go
similarity index 97%
rename from eth/downloader/downloader.go
rename to brn/downloader/downloader.go
index 5782d4cf53..6b61999ad3 100644
--- a/eth/downloader/downloader.go
+++ b/brn/downloader/downloader.go
@@ -1,18 +1,18 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
// Package downloader contains the manual full chain synchronisation.
package downloader
@@ -27,13 +27,13 @@ import (
"sync/atomic"
"time"
- ethereum "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
+ burnout "github.com/burnout/go-burnout"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/brndb"
+ "github.com/burnout/go-burnout/event"
+ "github.com/burnout/go-burnout/log"
+ "github.com/burnout/go-burnout/params"
"github.com/rcrowley/go-metrics"
)
@@ -57,7 +57,7 @@ var (
qosConfidenceCap = 10 // Number of peers above which not to modify RTT confidence
qosTuningImpact = 0.25 // Impact that a new tuning target has on the previous value
- maxQueuedHeaders = 32 * 1024 // [eth/62] Maximum number of headers to queue for import (DOS protection)
+ maxQueuedHeaders = 32 * 1024 // [brn/62] Maximum number of headers to queue for import (DOS protection)
maxHeadersProcess = 2048 // Number of header download results to import at once into the chain
maxResultsProcess = 2048 // Number of content download results to import at once into the chain
@@ -100,7 +100,7 @@ type Downloader struct {
queue *queue // Scheduler for selecting the hashes to download
peers *peerSet // Set of active peers from which download can proceed
- stateDB ethdb.Database
+ stateDB brndb.Database
fsPivotLock *types.Header // Pivot header on critical section entry (cannot change between retries)
fsPivotFails uint32 // Number of subsequent fast sync failures in the critical section
@@ -126,17 +126,17 @@ type Downloader struct {
notified int32
// Channels
- headerCh chan dataPack // [eth/62] Channel receiving inbound block headers
- bodyCh chan dataPack // [eth/62] Channel receiving inbound block bodies
- receiptCh chan dataPack // [eth/63] Channel receiving inbound receipts
- bodyWakeCh chan bool // [eth/62] Channel to signal the block body fetcher of new tasks
- receiptWakeCh chan bool // [eth/63] Channel to signal the receipt fetcher of new tasks
- headerProcCh chan []*types.Header // [eth/62] Channel to feed the header processor new tasks
+ headerCh chan dataPack // [brn/62] Channel receiving inbound block headers
+ bodyCh chan dataPack // [brn/62] Channel receiving inbound block bodies
+ receiptCh chan dataPack // [brn/63] Channel receiving inbound receipts
+ bodyWakeCh chan bool // [brn/62] Channel to signal the block body fetcher of new tasks
+ receiptWakeCh chan bool // [brn/63] Channel to signal the receipt fetcher of new tasks
+ headerProcCh chan []*types.Header // [brn/62] Channel to feed the header processor new tasks
// for stateFetcher
stateSyncStart chan *stateSync
trackStateReq chan *stateReq
- stateCh chan dataPack // [eth/63] Channel receiving inbound node state data
+ stateCh chan dataPack // [brn/63] Channel receiving inbound node state data
// Cancellation and termination
cancelPeer string // Identifier of the peer currently being used as the master (cancel on drop)
@@ -201,7 +201,7 @@ type BlockChain interface {
}
// New creates a new downloader to fetch hashes and blocks from remote peers.
-func New(mode SyncMode, stateDb ethdb.Database, mux *event.TypeMux, chain BlockChain, lightchain LightChain, dropPeer peerDropFn) *Downloader {
+func New(mode SyncMode, stateDb brndb.Database, mux *event.TypeMux, chain BlockChain, lightchain LightChain, dropPeer peerDropFn) *Downloader {
if lightchain == nil {
lightchain = chain
}
@@ -240,7 +240,7 @@ func New(mode SyncMode, stateDb ethdb.Database, mux *event.TypeMux, chain BlockC
// In addition, during the state download phase of fast synchronisation the number
// of processed and the total number of known states are also returned. Otherwise
// these are zero.
-func (d *Downloader) Progress() ethereum.SyncProgress {
+func (d *Downloader) Progress() burnout.SyncProgress {
// Lock the current stats and return the progress
d.syncStatsLock.RLock()
defer d.syncStatsLock.RUnlock()
@@ -254,7 +254,7 @@ func (d *Downloader) Progress() ethereum.SyncProgress {
case LightSync:
current = d.lightchain.CurrentHeader().Number.Uint64()
}
- return ethereum.SyncProgress{
+ return burnout.SyncProgress{
StartingBlock: d.syncStatsChainOrigin,
CurrentBlock: current,
HighestBlock: d.syncStatsChainHeight,
@@ -413,7 +413,7 @@ func (d *Downloader) syncWithPeer(p *peerConnection, hash common.Hash, td *big.I
return errTooOld
}
- log.Debug("Synchronising with the network", "peer", p.id, "eth", p.version, "head", hash, "td", td, "mode", d.mode)
+ log.Debug("Synchronising with the network", "peer", p.id, "brn", p.version, "head", hash, "td", td, "mode", d.mode)
defer func(start time.Time) {
log.Debug("Synchronisation terminated", "elapsed", time.Since(start))
}(time.Now())
diff --git a/eth/downloader/downloader_test.go b/brn/downloader/downloader_test.go
similarity index 98%
rename from eth/downloader/downloader_test.go
rename to brn/downloader/downloader_test.go
index 58f6e9a624..5d49b43ddb 100644
--- a/eth/downloader/downloader_test.go
+++ b/brn/downloader/downloader_test.go
@@ -1,18 +1,18 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package downloader
@@ -25,15 +25,15 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/core"
+ "github.com/burnout/go-burnout/core/state"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/crypto"
+ "github.com/burnout/go-burnout/brndb"
+ "github.com/burnout/go-burnout/event"
+ "github.com/burnout/go-burnout/params"
+ "github.com/burnout/go-burnout/trie"
)
var (
@@ -53,8 +53,8 @@ type downloadTester struct {
downloader *Downloader
genesis *types.Block // Genesis blocks used by the tester and peers
- stateDb ethdb.Database // Database used by the tester for syncing from peers
- peerDb ethdb.Database // Database of the peers containing all data
+ stateDb brndb.Database // Database used by the tester for syncing from peers
+ peerDb brndb.Database // Database of the peers containing all data
ownHashes []common.Hash // Hash chain belonging to the tester
ownHeaders map[common.Hash]*types.Header // Headers belonging to the tester
@@ -75,7 +75,7 @@ type downloadTester struct {
// newTester creates a new downloader test mocker.
func newTester() *downloadTester {
- testdb, _ := ethdb.NewMemDatabase()
+ testdb, _ := brndb.NewMemDatabase()
genesis := core.GenesisBlockForTesting(testdb, testAddress, big.NewInt(1000000000))
tester := &downloadTester{
@@ -93,7 +93,7 @@ func newTester() *downloadTester {
peerChainTds: make(map[string]map[common.Hash]*big.Int),
peerMissingStates: make(map[string]map[common.Hash]bool),
}
- tester.stateDb, _ = ethdb.NewMemDatabase()
+ tester.stateDb, _ = brndb.NewMemDatabase()
tester.stateDb.Put(genesis.Root().Bytes(), []byte{0x00})
tester.downloader = New(FullSync, tester.stateDb, new(event.TypeMux), tester, nil, tester.dropPeer)
diff --git a/eth/downloader/events.go b/brn/downloader/events.go
similarity index 62%
rename from eth/downloader/events.go
rename to brn/downloader/events.go
index 64905b8f2a..d39436b84d 100644
--- a/eth/downloader/events.go
+++ b/brn/downloader/events.go
@@ -1,18 +1,18 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package downloader
diff --git a/brn/downloader/metrics.go b/brn/downloader/metrics.go
new file mode 100644
index 0000000000..67414b08e2
--- /dev/null
+++ b/brn/downloader/metrics.go
@@ -0,0 +1,43 @@
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
+//
+// The go-burnout library is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// The go-burnout library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with the go-burnout library. If not, see .
+
+// Contains the metrics collected by the downloader.
+
+package downloader
+
+import (
+ "github.com/burnout/go-burnout/metrics"
+)
+
+var (
+ headerInMeter = metrics.NewMeter("brn/downloader/headers/in")
+ headerReqTimer = metrics.NewTimer("brn/downloader/headers/req")
+ headerDropMeter = metrics.NewMeter("brn/downloader/headers/drop")
+ headerTimeoutMeter = metrics.NewMeter("brn/downloader/headers/timeout")
+
+ bodyInMeter = metrics.NewMeter("brn/downloader/bodies/in")
+ bodyReqTimer = metrics.NewTimer("brn/downloader/bodies/req")
+ bodyDropMeter = metrics.NewMeter("brn/downloader/bodies/drop")
+ bodyTimeoutMeter = metrics.NewMeter("brn/downloader/bodies/timeout")
+
+ receiptInMeter = metrics.NewMeter("brn/downloader/receipts/in")
+ receiptReqTimer = metrics.NewTimer("brn/downloader/receipts/req")
+ receiptDropMeter = metrics.NewMeter("brn/downloader/receipts/drop")
+ receiptTimeoutMeter = metrics.NewMeter("brn/downloader/receipts/timeout")
+
+ stateInMeter = metrics.NewMeter("brn/downloader/states/in")
+ stateDropMeter = metrics.NewMeter("brn/downloader/states/drop")
+)
diff --git a/eth/downloader/modes.go b/brn/downloader/modes.go
similarity index 83%
rename from eth/downloader/modes.go
rename to brn/downloader/modes.go
index 8ecdf91f11..94d7a15d30 100644
--- a/eth/downloader/modes.go
+++ b/brn/downloader/modes.go
@@ -1,18 +1,18 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package downloader
diff --git a/eth/downloader/peer.go b/brn/downloader/peer.go
similarity index 96%
rename from eth/downloader/peer.go
rename to brn/downloader/peer.go
index e638744ea5..13bf1a07af 100644
--- a/eth/downloader/peer.go
+++ b/brn/downloader/peer.go
@@ -1,18 +1,18 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
// Contains the active peer-set of the downloader, maintaining both failures
// as well as reputation metrics to prioritize the block retrievals.
@@ -29,9 +29,9 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/event"
+ "github.com/burnout/go-burnout/log"
)
const (
@@ -147,7 +147,7 @@ func (p *peerConnection) Reset() {
func (p *peerConnection) FetchHeaders(from uint64, count int) error {
// Sanity check the protocol version
if p.version < 62 {
- panic(fmt.Sprintf("header fetch [eth/62+] requested on eth/%d", p.version))
+ panic(fmt.Sprintf("header fetch [brn/62+] requested on brn/%d", p.version))
}
// Short circuit if the peer is already fetching
if !atomic.CompareAndSwapInt32(&p.headerIdle, 0, 1) {
@@ -165,7 +165,7 @@ func (p *peerConnection) FetchHeaders(from uint64, count int) error {
func (p *peerConnection) FetchBodies(request *fetchRequest) error {
// Sanity check the protocol version
if p.version < 62 {
- panic(fmt.Sprintf("body fetch [eth/62+] requested on eth/%d", p.version))
+ panic(fmt.Sprintf("body fetch [brn/62+] requested on brn/%d", p.version))
}
// Short circuit if the peer is already fetching
if !atomic.CompareAndSwapInt32(&p.blockIdle, 0, 1) {
@@ -187,7 +187,7 @@ func (p *peerConnection) FetchBodies(request *fetchRequest) error {
func (p *peerConnection) FetchReceipts(request *fetchRequest) error {
// Sanity check the protocol version
if p.version < 63 {
- panic(fmt.Sprintf("body fetch [eth/63+] requested on eth/%d", p.version))
+ panic(fmt.Sprintf("body fetch [brn/63+] requested on brn/%d", p.version))
}
// Short circuit if the peer is already fetching
if !atomic.CompareAndSwapInt32(&p.receiptIdle, 0, 1) {
@@ -209,7 +209,7 @@ func (p *peerConnection) FetchReceipts(request *fetchRequest) error {
func (p *peerConnection) FetchNodeData(hashes []common.Hash) error {
// Sanity check the protocol version
if p.version < 63 {
- panic(fmt.Sprintf("node data fetch [eth/63+] requested on eth/%d", p.version))
+ panic(fmt.Sprintf("node data fetch [brn/63+] requested on brn/%d", p.version))
}
// Short circuit if the peer is already fetching
if !atomic.CompareAndSwapInt32(&p.stateIdle, 0, 1) {
diff --git a/eth/downloader/queue.go b/brn/downloader/queue.go
similarity index 94%
rename from eth/downloader/queue.go
rename to brn/downloader/queue.go
index 6926f1d8c8..45b9f851b9 100644
--- a/eth/downloader/queue.go
+++ b/brn/downloader/queue.go
@@ -1,18 +1,18 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
// Contains the block download scheduler to collect download tasks and schedule
// them in an ordered, and throttled way.
@@ -25,9 +25,9 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/log"
"github.com/rcrowley/go-metrics"
"gopkg.in/karalabe/cookiejar.v2/collections/prque"
)
@@ -42,9 +42,9 @@ var (
// fetchRequest is a currently running data retrieval operation.
type fetchRequest struct {
Peer *peerConnection // Peer to which the request was sent
- From uint64 // [eth/62] Requested chain element index (used for skeleton fills only)
- Hashes map[common.Hash]int // [eth/61] Requested hashes with their insertion index (priority)
- Headers []*types.Header // [eth/62] Requested headers, sorted by request order
+ From uint64 // [brn/62] Requested chain element index (used for skeleton fills only)
+ Hashes map[common.Hash]int // [brn/61] Requested hashes with their insertion index (priority)
+ Headers []*types.Header // [brn/62] Requested headers, sorted by request order
Time time.Time // Time when the request was made
}
@@ -64,28 +64,28 @@ type queue struct {
mode SyncMode // Synchronisation mode to decide on the block parts to schedule for fetching
fastSyncPivot uint64 // Block number where the fast sync pivots into archive synchronisation mode
- headerHead common.Hash // [eth/62] Hash of the last queued header to verify order
+ headerHead common.Hash // [brn/62] Hash of the last queued header to verify order
// Headers are "special", they download in batches, supported by a skeleton chain
- headerTaskPool map[uint64]*types.Header // [eth/62] Pending header retrieval tasks, mapping starting indexes to skeleton headers
- headerTaskQueue *prque.Prque // [eth/62] Priority queue of the skeleton indexes to fetch the filling headers for
- headerPeerMiss map[string]map[uint64]struct{} // [eth/62] Set of per-peer header batches known to be unavailable
- headerPendPool map[string]*fetchRequest // [eth/62] Currently pending header retrieval operations
- headerResults []*types.Header // [eth/62] Result cache accumulating the completed headers
- headerProced int // [eth/62] Number of headers already processed from the results
- headerOffset uint64 // [eth/62] Number of the first header in the result cache
- headerContCh chan bool // [eth/62] Channel to notify when header download finishes
+ headerTaskPool map[uint64]*types.Header // [brn/62] Pending header retrieval tasks, mapping starting indexes to skeleton headers
+ headerTaskQueue *prque.Prque // [brn/62] Priority queue of the skeleton indexes to fetch the filling headers for
+ headerPeerMiss map[string]map[uint64]struct{} // [brn/62] Set of per-peer header batches known to be unavailable
+ headerPendPool map[string]*fetchRequest // [brn/62] Currently pending header retrieval operations
+ headerResults []*types.Header // [brn/62] Result cache accumulating the completed headers
+ headerProced int // [brn/62] Number of headers already processed from the results
+ headerOffset uint64 // [brn/62] Number of the first header in the result cache
+ headerContCh chan bool // [brn/62] Channel to notify when header download finishes
// All data retrievals below are based on an already assembles header chain
- blockTaskPool map[common.Hash]*types.Header // [eth/62] Pending block (body) retrieval tasks, mapping hashes to headers
- blockTaskQueue *prque.Prque // [eth/62] Priority queue of the headers to fetch the blocks (bodies) for
- blockPendPool map[string]*fetchRequest // [eth/62] Currently pending block (body) retrieval operations
- blockDonePool map[common.Hash]struct{} // [eth/62] Set of the completed block (body) fetches
+ blockTaskPool map[common.Hash]*types.Header // [brn/62] Pending block (body) retrieval tasks, mapping hashes to headers
+ blockTaskQueue *prque.Prque // [brn/62] Priority queue of the headers to fetch the blocks (bodies) for
+ blockPendPool map[string]*fetchRequest // [brn/62] Currently pending block (body) retrieval operations
+ blockDonePool map[common.Hash]struct{} // [brn/62] Set of the completed block (body) fetches
- receiptTaskPool map[common.Hash]*types.Header // [eth/63] Pending receipt retrieval tasks, mapping hashes to headers
- receiptTaskQueue *prque.Prque // [eth/63] Priority queue of the headers to fetch the receipts for
- receiptPendPool map[string]*fetchRequest // [eth/63] Currently pending receipt retrieval operations
- receiptDonePool map[common.Hash]struct{} // [eth/63] Set of the completed receipt fetches
+ receiptTaskPool map[common.Hash]*types.Header // [brn/63] Pending receipt retrieval tasks, mapping hashes to headers
+ receiptTaskQueue *prque.Prque // [brn/63] Priority queue of the headers to fetch the receipts for
+ receiptPendPool map[string]*fetchRequest // [brn/63] Currently pending receipt retrieval operations
+ receiptDonePool map[common.Hash]struct{} // [brn/63] Set of the completed receipt fetches
resultCache []*fetchResult // Downloaded but not yet delivered fetch results
resultOffset uint64 // Offset of the first cached fetch result in the block chain
diff --git a/eth/downloader/statesync.go b/brn/downloader/statesync.go
similarity index 96%
rename from eth/downloader/statesync.go
rename to brn/downloader/statesync.go
index a0b05c9be6..3a63130ad6 100644
--- a/eth/downloader/statesync.go
+++ b/brn/downloader/statesync.go
@@ -1,18 +1,18 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2017 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package downloader
@@ -23,12 +23,12 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/crypto/sha3"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/core/state"
+ "github.com/burnout/go-burnout/crypto/sha3"
+ "github.com/burnout/go-burnout/brndb"
+ "github.com/burnout/go-burnout/log"
+ "github.com/burnout/go-burnout/trie"
)
// stateReq represents a batch of state fetch requests groupped together into
@@ -316,7 +316,7 @@ func (s *stateSync) loop() error {
}
func (s *stateSync) commit(force bool) error {
- if !force && s.bytesUncommitted < ethdb.IdealBatchSize {
+ if !force && s.bytesUncommitted < brndb.IdealBatchSize {
return nil
}
start := time.Now()
diff --git a/eth/downloader/types.go b/brn/downloader/types.go
similarity index 85%
rename from eth/downloader/types.go
rename to brn/downloader/types.go
index 3f30ea9dd1..50d2ca5bc4 100644
--- a/eth/downloader/types.go
+++ b/brn/downloader/types.go
@@ -1,25 +1,25 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package downloader
import (
"fmt"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/burnout/go-burnout/core/types"
)
// peerDropFn is a callback type for dropping a peer detected as malicious.
diff --git a/eth/fetcher/fetcher.go b/brn/fetcher/fetcher.go
similarity index 97%
rename from eth/fetcher/fetcher.go
rename to brn/fetcher/fetcher.go
index 98cc1a76b6..a8fe334f8c 100644
--- a/eth/fetcher/fetcher.go
+++ b/brn/fetcher/fetcher.go
@@ -1,18 +1,18 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
// Package fetcher contains the block announcement based synchronisation.
package fetcher
@@ -22,10 +22,10 @@ import (
"math/rand"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/consensus"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/log"
"gopkg.in/karalabe/cookiejar.v2/collections/prque"
)
@@ -138,9 +138,9 @@ type Fetcher struct {
// Testing hooks
announceChangeHook func(common.Hash, bool) // Method to call upon adding or deleting a hash from the announce list
queueChangeHook func(common.Hash, bool) // Method to call upon adding or deleting a block from the import queue
- fetchingHook func([]common.Hash) // Method to call upon starting a block (eth/61) or header (eth/62) fetch
- completingHook func([]common.Hash) // Method to call upon starting a block body fetch (eth/62)
- importedHook func(*types.Block) // Method to call upon successful block import (both eth/61 and eth/62)
+ fetchingHook func([]common.Hash) // Method to call upon starting a block (brn/61) or header (brn/62) fetch
+ completingHook func([]common.Hash) // Method to call upon starting a block body fetch (brn/62)
+ importedHook func(*types.Block) // Method to call upon successful block import (both brn/61 and brn/62)
}
// New creates a block fetcher to retrieve blocks based on hash announcements.
diff --git a/eth/fetcher/fetcher_test.go b/brn/fetcher/fetcher_test.go
similarity index 97%
rename from eth/fetcher/fetcher_test.go
rename to brn/fetcher/fetcher_test.go
index 85d2f8645e..50c9f133e5 100644
--- a/eth/fetcher/fetcher_test.go
+++ b/brn/fetcher/fetcher_test.go
@@ -1,18 +1,18 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package fetcher
@@ -24,16 +24,16 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/core"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/crypto"
+ "github.com/burnout/go-burnout/brndb"
+ "github.com/burnout/go-burnout/params"
)
var (
- testdb, _ = ethdb.NewMemDatabase()
+ testdb, _ = brndb.NewMemDatabase()
testKey, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291")
testAddress = crypto.PubkeyToAddress(testKey.PublicKey)
genesis = core.GenesisBlockForTesting(testdb, testAddress, big.NewInt(1000000000))
diff --git a/brn/fetcher/metrics.go b/brn/fetcher/metrics.go
new file mode 100644
index 0000000000..0096414738
--- /dev/null
+++ b/brn/fetcher/metrics.go
@@ -0,0 +1,43 @@
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
+//
+// The go-burnout library is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// The go-burnout library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with the go-burnout library. If not, see .
+
+// Contains the metrics collected by the fetcher.
+
+package fetcher
+
+import (
+ "github.com/burnout/go-burnout/metrics"
+)
+
+var (
+ propAnnounceInMeter = metrics.NewMeter("brn/fetcher/prop/announces/in")
+ propAnnounceOutTimer = metrics.NewTimer("brn/fetcher/prop/announces/out")
+ propAnnounceDropMeter = metrics.NewMeter("brn/fetcher/prop/announces/drop")
+ propAnnounceDOSMeter = metrics.NewMeter("brn/fetcher/prop/announces/dos")
+
+ propBroadcastInMeter = metrics.NewMeter("brn/fetcher/prop/broadcasts/in")
+ propBroadcastOutTimer = metrics.NewTimer("brn/fetcher/prop/broadcasts/out")
+ propBroadcastDropMeter = metrics.NewMeter("brn/fetcher/prop/broadcasts/drop")
+ propBroadcastDOSMeter = metrics.NewMeter("brn/fetcher/prop/broadcasts/dos")
+
+ headerFetchMeter = metrics.NewMeter("brn/fetcher/fetch/headers")
+ bodyFetchMeter = metrics.NewMeter("brn/fetcher/fetch/bodies")
+
+ headerFilterInMeter = metrics.NewMeter("brn/fetcher/filter/headers/in")
+ headerFilterOutMeter = metrics.NewMeter("brn/fetcher/filter/headers/out")
+ bodyFilterInMeter = metrics.NewMeter("brn/fetcher/filter/bodies/in")
+ bodyFilterOutMeter = metrics.NewMeter("brn/fetcher/filter/bodies/out")
+)
diff --git a/eth/filters/api.go b/brn/filters/api.go
similarity index 92%
rename from eth/filters/api.go
rename to brn/filters/api.go
index 03c1d6afc8..80ce1c7457 100644
--- a/eth/filters/api.go
+++ b/brn/filters/api.go
@@ -1,18 +1,18 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package filters
@@ -25,12 +25,12 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/common/hexutil"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/brndb"
+ "github.com/burnout/go-burnout/event"
+ "github.com/burnout/go-burnout/rpc"
)
var (
@@ -49,12 +49,12 @@ type filter struct {
}
// PublicFilterAPI offers support to create and manage filters. This will allow external clients to retrieve various
-// information related to the Ethereum protocol such als blocks, transactions and logs.
+// information related to the Burnout protocol such als blocks, transactions and logs.
type PublicFilterAPI struct {
backend Backend
mux *event.TypeMux
quit chan struct{}
- chainDb ethdb.Database
+ chainDb brndb.Database
events *EventSystem
filtersMu sync.Mutex
filters map[rpc.ID]*filter
@@ -100,7 +100,7 @@ func (api *PublicFilterAPI) timeoutLoop() {
// It is part of the filter package because this filter can be used throug the
// `eth_getFilterChanges` polling method that is also used for log filters.
//
-// https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_newpendingtransactionfilter
+// https://github.com/burnout/wiki/wiki/JSON-RPC#eth_newpendingtransactionfilter
func (api *PublicFilterAPI) NewPendingTransactionFilter() rpc.ID {
var (
pendingTxs = make(chan common.Hash)
@@ -166,7 +166,7 @@ func (api *PublicFilterAPI) NewPendingTransactions(ctx context.Context) (*rpc.Su
// NewBlockFilter creates a filter that fetches blocks that are imported into the chain.
// It is part of the filter package since polling goes with eth_getFilterChanges.
//
-// https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_newblockfilter
+// https://github.com/burnout/wiki/wiki/JSON-RPC#eth_newblockfilter
func (api *PublicFilterAPI) NewBlockFilter() rpc.ID {
var (
headers = make(chan *types.Header)
@@ -286,7 +286,7 @@ type FilterCriteria struct {
//
// In case "fromBlock" > "toBlock" an error is returned.
//
-// https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_newfilter
+// https://github.com/burnout/wiki/wiki/JSON-RPC#eth_newfilter
func (api *PublicFilterAPI) NewFilter(crit FilterCriteria) (rpc.ID, error) {
logs := make(chan []*types.Log)
logsSub, err := api.events.SubscribeLogs(crit, logs)
@@ -321,7 +321,7 @@ func (api *PublicFilterAPI) NewFilter(crit FilterCriteria) (rpc.ID, error) {
// GetLogs returns logs matching the given argument that are stored within the state.
//
-// https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getlogs
+// https://github.com/burnout/wiki/wiki/JSON-RPC#eth_getlogs
func (api *PublicFilterAPI) GetLogs(ctx context.Context, crit FilterCriteria) ([]*types.Log, error) {
// Convert the RPC block numbers into internal representations
if crit.FromBlock == nil {
@@ -342,7 +342,7 @@ func (api *PublicFilterAPI) GetLogs(ctx context.Context, crit FilterCriteria) ([
// UninstallFilter removes the filter with the given filter id.
//
-// https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_uninstallfilter
+// https://github.com/burnout/wiki/wiki/JSON-RPC#eth_uninstallfilter
func (api *PublicFilterAPI) UninstallFilter(id rpc.ID) bool {
api.filtersMu.Lock()
f, found := api.filters[id]
@@ -360,7 +360,7 @@ func (api *PublicFilterAPI) UninstallFilter(id rpc.ID) bool {
// GetFilterLogs returns the logs for the filter with the given id.
// If the filter could not be found an empty array of logs is returned.
//
-// https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getfilterlogs
+// https://github.com/burnout/wiki/wiki/JSON-RPC#eth_getfilterlogs
func (api *PublicFilterAPI) GetFilterLogs(ctx context.Context, id rpc.ID) ([]*types.Log, error) {
api.filtersMu.Lock()
f, found := api.filters[id]
@@ -394,7 +394,7 @@ func (api *PublicFilterAPI) GetFilterLogs(ctx context.Context, id rpc.ID) ([]*ty
// For pending transaction and block filters the result is []common.Hash.
// (pending)Log filters return []Log.
//
-// https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getfilterchanges
+// https://github.com/burnout/wiki/wiki/JSON-RPC#eth_getfilterchanges
func (api *PublicFilterAPI) GetFilterChanges(id rpc.ID) (interface{}, error) {
api.filtersMu.Lock()
defer api.filtersMu.Unlock()
diff --git a/eth/filters/api_test.go b/brn/filters/api_test.go
similarity index 93%
rename from eth/filters/api_test.go
rename to brn/filters/api_test.go
index 4ae37f9779..653cd6b06c 100644
--- a/eth/filters/api_test.go
+++ b/brn/filters/api_test.go
@@ -1,18 +1,18 @@
-// Copyright 2016 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2016 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package filters
@@ -21,8 +21,8 @@ import (
"fmt"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/rpc"
)
func TestUnmarshalJSONNewFilterArgs(t *testing.T) {
diff --git a/eth/filters/bench_test.go b/brn/filters/bench_test.go
similarity index 84%
rename from eth/filters/bench_test.go
rename to brn/filters/bench_test.go
index abbf4593e9..7ddf3973cd 100644
--- a/eth/filters/bench_test.go
+++ b/brn/filters/bench_test.go
@@ -1,18 +1,18 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2017 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package filters
@@ -23,14 +23,14 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/bitutil"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/bloombits"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/node"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/common/bitutil"
+ "github.com/burnout/go-burnout/core"
+ "github.com/burnout/go-burnout/core/bloombits"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/brndb"
+ "github.com/burnout/go-burnout/event"
+ "github.com/burnout/go-burnout/node"
)
func BenchmarkBloomBits512(b *testing.B) {
@@ -67,7 +67,7 @@ func benchmarkBloomBits(b *testing.B, sectionSize uint64) {
benchDataDir := node.DefaultDataDir() + "/geth/chaindata"
fmt.Println("Running bloombits benchmark section size:", sectionSize)
- db, err := ethdb.NewLDBDatabase(benchDataDir, 128, 1024)
+ db, err := brndb.NewLDBDatabase(benchDataDir, 128, 1024)
if err != nil {
b.Fatalf("error opening database at %v: %v", benchDataDir, err)
}
@@ -129,7 +129,7 @@ func benchmarkBloomBits(b *testing.B, sectionSize uint64) {
for i := 0; i < benchFilterCnt; i++ {
if i%20 == 0 {
db.Close()
- db, _ = ethdb.NewLDBDatabase(benchDataDir, 128, 1024)
+ db, _ = brndb.NewLDBDatabase(benchDataDir, 128, 1024)
backend = &testBackend{mux, db, cnt, new(event.Feed), new(event.Feed), new(event.Feed), new(event.Feed)}
}
var addr common.Address
@@ -146,8 +146,8 @@ func benchmarkBloomBits(b *testing.B, sectionSize uint64) {
db.Close()
}
-func forEachKey(db ethdb.Database, startPrefix, endPrefix []byte, fn func(key []byte)) {
- it := db.(*ethdb.LDBDatabase).NewIterator()
+func forEachKey(db brndb.Database, startPrefix, endPrefix []byte, fn func(key []byte)) {
+ it := db.(*brndb.LDBDatabase).NewIterator()
it.Seek(startPrefix)
for it.Valid() {
key := it.Key()
@@ -166,7 +166,7 @@ func forEachKey(db ethdb.Database, startPrefix, endPrefix []byte, fn func(key []
var bloomBitsPrefix = []byte("bloomBits-")
-func clearBloomBits(db ethdb.Database) {
+func clearBloomBits(db brndb.Database) {
fmt.Println("Clearing bloombits data...")
forEachKey(db, bloomBitsPrefix, bloomBitsPrefix, func(key []byte) {
db.Delete(key)
@@ -176,7 +176,7 @@ func clearBloomBits(db ethdb.Database) {
func BenchmarkNoBloomBits(b *testing.B) {
benchDataDir := node.DefaultDataDir() + "/geth/chaindata"
fmt.Println("Running benchmark without bloombits")
- db, err := ethdb.NewLDBDatabase(benchDataDir, 128, 1024)
+ db, err := brndb.NewLDBDatabase(benchDataDir, 128, 1024)
if err != nil {
b.Fatalf("error opening database at %v: %v", benchDataDir, err)
}
diff --git a/eth/filters/filter.go b/brn/filters/filter.go
similarity index 91%
rename from eth/filters/filter.go
rename to brn/filters/filter.go
index 026cbf95ca..c1f4423261 100644
--- a/eth/filters/filter.go
+++ b/brn/filters/filter.go
@@ -1,18 +1,18 @@
-// Copyright 2014 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2014 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package filters
@@ -21,17 +21,17 @@ import (
"math/big"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/bloombits"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/core"
+ "github.com/burnout/go-burnout/core/bloombits"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/brndb"
+ "github.com/burnout/go-burnout/event"
+ "github.com/burnout/go-burnout/rpc"
)
type Backend interface {
- ChainDb() ethdb.Database
+ ChainDb() brndb.Database
EventMux() *event.TypeMux
HeaderByNumber(ctx context.Context, blockNr rpc.BlockNumber) (*types.Header, error)
GetReceipts(ctx context.Context, blockHash common.Hash) (types.Receipts, error)
@@ -49,7 +49,7 @@ type Backend interface {
type Filter struct {
backend Backend
- db ethdb.Database
+ db brndb.Database
begin, end int64
addresses []common.Address
topics [][]common.Hash
diff --git a/eth/filters/filter_system.go b/brn/filters/filter_system.go
similarity index 95%
rename from eth/filters/filter_system.go
rename to brn/filters/filter_system.go
index e08cedb274..38fa25fe71 100644
--- a/eth/filters/filter_system.go
+++ b/brn/filters/filter_system.go
@@ -1,20 +1,20 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
-// Package filters implements an ethereum filtering system for block,
+// Package filters implements an burnout filtering system for block,
// transactions and log events.
package filters
@@ -25,11 +25,11 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/core"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/event"
+ "github.com/burnout/go-burnout/rpc"
)
// Type determines the kind of filter and is used to put the filter in to
diff --git a/eth/filters/filter_system_test.go b/brn/filters/filter_system_test.go
similarity index 95%
rename from eth/filters/filter_system_test.go
rename to brn/filters/filter_system_test.go
index bc3511f23a..c45cef5a99 100644
--- a/eth/filters/filter_system_test.go
+++ b/brn/filters/filter_system_test.go
@@ -1,18 +1,18 @@
-// Copyright 2016 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2016 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package filters
@@ -25,19 +25,19 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/bloombits"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/core"
+ "github.com/burnout/go-burnout/core/bloombits"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/brndb"
+ "github.com/burnout/go-burnout/event"
+ "github.com/burnout/go-burnout/params"
+ "github.com/burnout/go-burnout/rpc"
)
type testBackend struct {
mux *event.TypeMux
- db ethdb.Database
+ db brndb.Database
sections uint64
txFeed *event.Feed
rmLogsFeed *event.Feed
@@ -45,7 +45,7 @@ type testBackend struct {
chainFeed *event.Feed
}
-func (b *testBackend) ChainDb() ethdb.Database {
+func (b *testBackend) ChainDb() brndb.Database {
return b.db
}
@@ -128,7 +128,7 @@ func TestBlockSubscription(t *testing.T) {
var (
mux = new(event.TypeMux)
- db, _ = ethdb.NewMemDatabase()
+ db, _ = brndb.NewMemDatabase()
txFeed = new(event.Feed)
rmLogsFeed = new(event.Feed)
logsFeed = new(event.Feed)
@@ -185,7 +185,7 @@ func TestPendingTxFilter(t *testing.T) {
var (
mux = new(event.TypeMux)
- db, _ = ethdb.NewMemDatabase()
+ db, _ = brndb.NewMemDatabase()
txFeed = new(event.Feed)
rmLogsFeed = new(event.Feed)
logsFeed = new(event.Feed)
@@ -248,7 +248,7 @@ func TestPendingTxFilter(t *testing.T) {
func TestLogFilterCreation(t *testing.T) {
var (
mux = new(event.TypeMux)
- db, _ = ethdb.NewMemDatabase()
+ db, _ = brndb.NewMemDatabase()
txFeed = new(event.Feed)
rmLogsFeed = new(event.Feed)
logsFeed = new(event.Feed)
@@ -297,7 +297,7 @@ func TestInvalidLogFilterCreation(t *testing.T) {
var (
mux = new(event.TypeMux)
- db, _ = ethdb.NewMemDatabase()
+ db, _ = brndb.NewMemDatabase()
txFeed = new(event.Feed)
rmLogsFeed = new(event.Feed)
logsFeed = new(event.Feed)
@@ -327,7 +327,7 @@ func TestLogFilter(t *testing.T) {
var (
mux = new(event.TypeMux)
- db, _ = ethdb.NewMemDatabase()
+ db, _ = brndb.NewMemDatabase()
txFeed = new(event.Feed)
rmLogsFeed = new(event.Feed)
logsFeed = new(event.Feed)
@@ -446,7 +446,7 @@ func TestPendingLogsSubscription(t *testing.T) {
var (
mux = new(event.TypeMux)
- db, _ = ethdb.NewMemDatabase()
+ db, _ = brndb.NewMemDatabase()
txFeed = new(event.Feed)
rmLogsFeed = new(event.Feed)
logsFeed = new(event.Feed)
diff --git a/eth/filters/filter_test.go b/brn/filters/filter_test.go
similarity index 89%
rename from eth/filters/filter_test.go
rename to brn/filters/filter_test.go
index 11235e95a7..cf3a39e9fb 100644
--- a/eth/filters/filter_test.go
+++ b/brn/filters/filter_test.go
@@ -1,18 +1,18 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package filters
@@ -23,13 +23,13 @@ import (
"os"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/core"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/crypto"
+ "github.com/burnout/go-burnout/brndb"
+ "github.com/burnout/go-burnout/event"
+ "github.com/burnout/go-burnout/params"
)
func makeReceipt(addr common.Address) *types.Receipt {
@@ -49,7 +49,7 @@ func BenchmarkFilters(b *testing.B) {
defer os.RemoveAll(dir)
var (
- db, _ = ethdb.NewLDBDatabase(dir, 0, 0)
+ db, _ = brndb.NewLDBDatabase(dir, 0, 0)
mux = new(event.TypeMux)
txFeed = new(event.Feed)
rmLogsFeed = new(event.Feed)
@@ -59,7 +59,7 @@ func BenchmarkFilters(b *testing.B) {
key1, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291")
addr1 = crypto.PubkeyToAddress(key1.PublicKey)
addr2 = common.BytesToAddress([]byte("jeff"))
- addr3 = common.BytesToAddress([]byte("ethereum"))
+ addr3 = common.BytesToAddress([]byte("burnout"))
addr4 = common.BytesToAddress([]byte("random addresses please"))
)
defer db.Close()
@@ -114,7 +114,7 @@ func TestFilters(t *testing.T) {
defer os.RemoveAll(dir)
var (
- db, _ = ethdb.NewLDBDatabase(dir, 0, 0)
+ db, _ = brndb.NewLDBDatabase(dir, 0, 0)
mux = new(event.TypeMux)
txFeed = new(event.Feed)
rmLogsFeed = new(event.Feed)
diff --git a/eth/gasprice/gasprice.go b/brn/gasprice/gasprice.go
similarity index 88%
rename from eth/gasprice/gasprice.go
rename to brn/gasprice/gasprice.go
index c662348e16..2d84e873dc 100644
--- a/eth/gasprice/gasprice.go
+++ b/brn/gasprice/gasprice.go
@@ -1,18 +1,18 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package gasprice
@@ -22,10 +22,10 @@ import (
"sort"
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/internal/ethapi"
+ "github.com/burnout/go-burnout/params"
+ "github.com/burnout/go-burnout/rpc"
)
var maxPrice = big.NewInt(500 * params.Shannon)
diff --git a/eth/gen_config.go b/brn/gen_config.go
similarity index 95%
rename from eth/gen_config.go
rename to brn/gen_config.go
index 4a4cd7b9c5..9dce44b92c 100644
--- a/eth/gen_config.go
+++ b/brn/gen_config.go
@@ -1,15 +1,15 @@
// Code generated by github.com/fjl/gencodec. DO NOT EDIT.
-package eth
+package brn
import (
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/gasprice"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/common/hexutil"
+ "github.com/burnout/go-burnout/core"
+ "github.com/burnout/go-burnout/brn/downloader"
+ "github.com/burnout/go-burnout/brn/gasprice"
)
func (c Config) MarshalTOML() (interface{}, error) {
diff --git a/eth/handler.go b/brn/handler.go
similarity index 92%
rename from eth/handler.go
rename to brn/handler.go
index cee719ddb6..3048cf9af5 100644
--- a/eth/handler.go
+++ b/brn/handler.go
@@ -1,20 +1,20 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
-package eth
+package brn
import (
"encoding/json"
@@ -26,20 +26,20 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/consensus/misc"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/fetcher"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/discover"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/consensus"
+ "github.com/burnout/go-burnout/consensus/misc"
+ "github.com/burnout/go-burnout/core"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/brn/downloader"
+ "github.com/burnout/go-burnout/brn/fetcher"
+ "github.com/burnout/go-burnout/brndb"
+ "github.com/burnout/go-burnout/event"
+ "github.com/burnout/go-burnout/log"
+ "github.com/burnout/go-burnout/p2p"
+ "github.com/burnout/go-burnout/p2p/discover"
+ "github.com/burnout/go-burnout/params"
+ "github.com/burnout/go-burnout/rlp"
)
const (
@@ -71,7 +71,7 @@ type ProtocolManager struct {
txpool txPool
blockchain *core.BlockChain
- chaindb ethdb.Database
+ chaindb brndb.Database
chainconfig *params.ChainConfig
maxPeers int
@@ -97,9 +97,9 @@ type ProtocolManager struct {
wg sync.WaitGroup
}
-// NewProtocolManager returns a new ethereum sub protocol manager. The Ethereum sub protocol manages peers capable
-// with the ethereum network.
-func NewProtocolManager(config *params.ChainConfig, mode downloader.SyncMode, networkId uint64, mux *event.TypeMux, txpool txPool, engine consensus.Engine, blockchain *core.BlockChain, chaindb ethdb.Database) (*ProtocolManager, error) {
+// NewProtocolManager returns a new burnout sub protocol manager. The Burnout sub protocol manages peers capable
+// with the burnout network.
+func NewProtocolManager(config *params.ChainConfig, mode downloader.SyncMode, networkId uint64, mux *event.TypeMux, txpool txPool, engine consensus.Engine, blockchain *core.BlockChain, chaindb brndb.Database) (*ProtocolManager, error) {
// Create the protocol manager with the base fields
manager := &ProtocolManager{
networkId: networkId,
@@ -189,9 +189,9 @@ func (pm *ProtocolManager) removePeer(id string) {
if peer == nil {
return
}
- log.Debug("Removing Ethereum peer", "peer", id)
+ log.Debug("Removing Burnout peer", "peer", id)
- // Unregister the peer from the downloader and Ethereum peer set
+ // Unregister the peer from the downloader and Burnout peer set
pm.downloader.UnregisterPeer(id)
if err := pm.peers.Unregister(id); err != nil {
log.Error("Peer removal failed", "peer", id, "err", err)
@@ -220,7 +220,7 @@ func (pm *ProtocolManager) Start(maxPeers int) {
}
func (pm *ProtocolManager) Stop() {
- log.Info("Stopping Ethereum protocol")
+ log.Info("Stopping Burnout protocol")
pm.txSub.Unsubscribe() // quits txBroadcastLoop
pm.minedBlockSub.Unsubscribe() // quits blockBroadcastLoop
@@ -241,25 +241,25 @@ func (pm *ProtocolManager) Stop() {
// Wait for all peer handler goroutines and the loops to come down.
pm.wg.Wait()
- log.Info("Ethereum protocol stopped")
+ log.Info("Burnout protocol stopped")
}
func (pm *ProtocolManager) newPeer(pv int, p *p2p.Peer, rw p2p.MsgReadWriter) *peer {
return newPeer(pv, p, newMeteredMsgWriter(rw))
}
-// handle is the callback invoked to manage the life cycle of an eth peer. When
+// handle is the callback invoked to manage the life cycle of an brn peer. When
// this function terminates, the peer is disconnected.
func (pm *ProtocolManager) handle(p *peer) error {
if pm.peers.Len() >= pm.maxPeers {
return p2p.DiscTooManyPeers
}
- p.Log().Debug("Ethereum peer connected", "name", p.Name())
+ p.Log().Debug("Burnout peer connected", "name", p.Name())
- // Execute the Ethereum handshake
+ // Execute the Burnout handshake
td, head, genesis := pm.blockchain.Status()
if err := p.Handshake(pm.networkId, td, head, genesis); err != nil {
- p.Log().Debug("Ethereum handshake failed", "err", err)
+ p.Log().Debug("Burnout handshake failed", "err", err)
return err
}
if rw, ok := p.rw.(*meteredMsgReadWriter); ok {
@@ -267,7 +267,7 @@ func (pm *ProtocolManager) handle(p *peer) error {
}
// Register the peer locally
if err := pm.peers.Register(p); err != nil {
- p.Log().Error("Ethereum peer registration failed", "err", err)
+ p.Log().Error("Burnout peer registration failed", "err", err)
return err
}
defer pm.removePeer(p.id)
@@ -302,7 +302,7 @@ func (pm *ProtocolManager) handle(p *peer) error {
// main loop. handle incoming messages.
for {
if err := pm.handleMsg(p); err != nil {
- p.Log().Debug("Ethereum message handling failed", "err", err)
+ p.Log().Debug("Burnout message handling failed", "err", err)
return err
}
}
@@ -744,10 +744,10 @@ func (self *ProtocolManager) txBroadcastLoop() {
}
}
-// EthNodeInfo represents a short summary of the Ethereum sub-protocol metadata known
+// EthNodeInfo represents a short summary of the Burnout sub-protocol metadata known
// about the host peer.
type EthNodeInfo struct {
- Network uint64 `json:"network"` // Ethereum network ID (1=Frontier, 2=Morden, Ropsten=3)
+ Network uint64 `json:"network"` // Burnout network ID (1=Frontier, 2=Morden, Ropsten=3)
Difficulty *big.Int `json:"difficulty"` // Total difficulty of the host's blockchain
Genesis common.Hash `json:"genesis"` // SHA3 hash of the host's genesis block
Head common.Hash `json:"head"` // SHA3 hash of the host's best owned block
diff --git a/eth/handler_test.go b/brn/handler_test.go
similarity index 95%
rename from eth/handler_test.go
rename to brn/handler_test.go
index 6752cd2a84..e13bc80a27 100644
--- a/eth/handler_test.go
+++ b/brn/handler_test.go
@@ -1,20 +1,20 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
-package eth
+package brn
import (
"math"
@@ -23,18 +23,18 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/consensus/ethash"
+ "github.com/burnout/go-burnout/core"
+ "github.com/burnout/go-burnout/core/state"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/core/vm"
+ "github.com/burnout/go-burnout/crypto"
+ "github.com/burnout/go-burnout/brn/downloader"
+ "github.com/burnout/go-burnout/brndb"
+ "github.com/burnout/go-burnout/event"
+ "github.com/burnout/go-burnout/p2p"
+ "github.com/burnout/go-burnout/params"
)
var bigTxGas = new(big.Int).SetUint64(params.TxGas)
@@ -345,7 +345,7 @@ func testGetNodeData(t *testing.T, protocol int) {
// Fetch for now the entire chain db
hashes := []common.Hash{}
- for _, key := range pm.chaindb.(*ethdb.MemDatabase).Keys() {
+ for _, key := range pm.chaindb.(*brndb.MemDatabase).Keys() {
if len(key) == len(common.Hash{}) {
hashes = append(hashes, common.BytesToHash(key))
}
@@ -368,7 +368,7 @@ func testGetNodeData(t *testing.T, protocol int) {
t.Errorf("data hash mismatch: have %x, want %x", hash, want)
}
}
- statedb, _ := ethdb.NewMemDatabase()
+ statedb, _ := brndb.NewMemDatabase()
for i := 0; i < len(data); i++ {
statedb.Put(hashes[i].Bytes(), data[i])
}
@@ -450,7 +450,7 @@ func testGetReceipt(t *testing.T, protocol int) {
}
}
-// Tests that post eth protocol handshake, DAO fork-enabled clients also execute
+// Tests that post brn protocol handshake, DAO fork-enabled clients also execute
// a DAO "challenge" verifying each others' DAO fork headers to ensure they're on
// compatible chains.
func TestDAOChallengeNoVsNo(t *testing.T) { testDAOChallenge(t, false, false, false) }
@@ -470,7 +470,7 @@ func testDAOChallenge(t *testing.T, localForked, remoteForked bool, timeout bool
var (
evmux = new(event.TypeMux)
pow = ethash.NewFaker()
- db, _ = ethdb.NewMemDatabase()
+ db, _ = brndb.NewMemDatabase()
config = ¶ms.ChainConfig{DAOForkBlock: big.NewInt(1), DAOForkSupport: localForked}
gspec = &core.Genesis{Config: config}
genesis = gspec.MustCommit(db)
diff --git a/eth/helper_test.go b/brn/helper_test.go
similarity index 86%
rename from eth/helper_test.go
rename to brn/helper_test.go
index b665531352..f7465c898b 100644
--- a/eth/helper_test.go
+++ b/brn/helper_test.go
@@ -1,23 +1,23 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
// This file contains some shares testing functionality, common to multiple
// different files and modules being tested.
-package eth
+package brn
import (
"crypto/ecdsa"
@@ -27,18 +27,18 @@ import (
"sync"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/discover"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/consensus/ethash"
+ "github.com/burnout/go-burnout/core"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/core/vm"
+ "github.com/burnout/go-burnout/crypto"
+ "github.com/burnout/go-burnout/brn/downloader"
+ "github.com/burnout/go-burnout/brndb"
+ "github.com/burnout/go-burnout/event"
+ "github.com/burnout/go-burnout/p2p"
+ "github.com/burnout/go-burnout/p2p/discover"
+ "github.com/burnout/go-burnout/params"
)
var (
@@ -53,7 +53,7 @@ func newTestProtocolManager(mode downloader.SyncMode, blocks int, generator func
var (
evmux = new(event.TypeMux)
engine = ethash.NewFaker()
- db, _ = ethdb.NewMemDatabase()
+ db, _ = brndb.NewMemDatabase()
gspec = &core.Genesis{
Config: params.TestChainConfig,
Alloc: core.GenesisAlloc{testBank: {Balance: big.NewInt(1000000)}},
diff --git a/eth/metrics.go b/brn/metrics.go
similarity index 61%
rename from eth/metrics.go
rename to brn/metrics.go
index 5fa2597d4d..23531a4990 100644
--- a/eth/metrics.go
+++ b/brn/metrics.go
@@ -1,59 +1,59 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
-package eth
+package brn
import (
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/p2p"
+ "github.com/burnout/go-burnout/metrics"
+ "github.com/burnout/go-burnout/p2p"
)
var (
- propTxnInPacketsMeter = metrics.NewMeter("eth/prop/txns/in/packets")
- propTxnInTrafficMeter = metrics.NewMeter("eth/prop/txns/in/traffic")
- propTxnOutPacketsMeter = metrics.NewMeter("eth/prop/txns/out/packets")
- propTxnOutTrafficMeter = metrics.NewMeter("eth/prop/txns/out/traffic")
- propHashInPacketsMeter = metrics.NewMeter("eth/prop/hashes/in/packets")
- propHashInTrafficMeter = metrics.NewMeter("eth/prop/hashes/in/traffic")
- propHashOutPacketsMeter = metrics.NewMeter("eth/prop/hashes/out/packets")
- propHashOutTrafficMeter = metrics.NewMeter("eth/prop/hashes/out/traffic")
- propBlockInPacketsMeter = metrics.NewMeter("eth/prop/blocks/in/packets")
- propBlockInTrafficMeter = metrics.NewMeter("eth/prop/blocks/in/traffic")
- propBlockOutPacketsMeter = metrics.NewMeter("eth/prop/blocks/out/packets")
- propBlockOutTrafficMeter = metrics.NewMeter("eth/prop/blocks/out/traffic")
- reqHeaderInPacketsMeter = metrics.NewMeter("eth/req/headers/in/packets")
- reqHeaderInTrafficMeter = metrics.NewMeter("eth/req/headers/in/traffic")
- reqHeaderOutPacketsMeter = metrics.NewMeter("eth/req/headers/out/packets")
- reqHeaderOutTrafficMeter = metrics.NewMeter("eth/req/headers/out/traffic")
- reqBodyInPacketsMeter = metrics.NewMeter("eth/req/bodies/in/packets")
- reqBodyInTrafficMeter = metrics.NewMeter("eth/req/bodies/in/traffic")
- reqBodyOutPacketsMeter = metrics.NewMeter("eth/req/bodies/out/packets")
- reqBodyOutTrafficMeter = metrics.NewMeter("eth/req/bodies/out/traffic")
- reqStateInPacketsMeter = metrics.NewMeter("eth/req/states/in/packets")
- reqStateInTrafficMeter = metrics.NewMeter("eth/req/states/in/traffic")
- reqStateOutPacketsMeter = metrics.NewMeter("eth/req/states/out/packets")
- reqStateOutTrafficMeter = metrics.NewMeter("eth/req/states/out/traffic")
- reqReceiptInPacketsMeter = metrics.NewMeter("eth/req/receipts/in/packets")
- reqReceiptInTrafficMeter = metrics.NewMeter("eth/req/receipts/in/traffic")
- reqReceiptOutPacketsMeter = metrics.NewMeter("eth/req/receipts/out/packets")
- reqReceiptOutTrafficMeter = metrics.NewMeter("eth/req/receipts/out/traffic")
- miscInPacketsMeter = metrics.NewMeter("eth/misc/in/packets")
- miscInTrafficMeter = metrics.NewMeter("eth/misc/in/traffic")
- miscOutPacketsMeter = metrics.NewMeter("eth/misc/out/packets")
- miscOutTrafficMeter = metrics.NewMeter("eth/misc/out/traffic")
+ propTxnInPacketsMeter = metrics.NewMeter("brn/prop/txns/in/packets")
+ propTxnInTrafficMeter = metrics.NewMeter("brn/prop/txns/in/traffic")
+ propTxnOutPacketsMeter = metrics.NewMeter("brn/prop/txns/out/packets")
+ propTxnOutTrafficMeter = metrics.NewMeter("brn/prop/txns/out/traffic")
+ propHashInPacketsMeter = metrics.NewMeter("brn/prop/hashes/in/packets")
+ propHashInTrafficMeter = metrics.NewMeter("brn/prop/hashes/in/traffic")
+ propHashOutPacketsMeter = metrics.NewMeter("brn/prop/hashes/out/packets")
+ propHashOutTrafficMeter = metrics.NewMeter("brn/prop/hashes/out/traffic")
+ propBlockInPacketsMeter = metrics.NewMeter("brn/prop/blocks/in/packets")
+ propBlockInTrafficMeter = metrics.NewMeter("brn/prop/blocks/in/traffic")
+ propBlockOutPacketsMeter = metrics.NewMeter("brn/prop/blocks/out/packets")
+ propBlockOutTrafficMeter = metrics.NewMeter("brn/prop/blocks/out/traffic")
+ reqHeaderInPacketsMeter = metrics.NewMeter("brn/req/headers/in/packets")
+ reqHeaderInTrafficMeter = metrics.NewMeter("brn/req/headers/in/traffic")
+ reqHeaderOutPacketsMeter = metrics.NewMeter("brn/req/headers/out/packets")
+ reqHeaderOutTrafficMeter = metrics.NewMeter("brn/req/headers/out/traffic")
+ reqBodyInPacketsMeter = metrics.NewMeter("brn/req/bodies/in/packets")
+ reqBodyInTrafficMeter = metrics.NewMeter("brn/req/bodies/in/traffic")
+ reqBodyOutPacketsMeter = metrics.NewMeter("brn/req/bodies/out/packets")
+ reqBodyOutTrafficMeter = metrics.NewMeter("brn/req/bodies/out/traffic")
+ reqStateInPacketsMeter = metrics.NewMeter("brn/req/states/in/packets")
+ reqStateInTrafficMeter = metrics.NewMeter("brn/req/states/in/traffic")
+ reqStateOutPacketsMeter = metrics.NewMeter("brn/req/states/out/packets")
+ reqStateOutTrafficMeter = metrics.NewMeter("brn/req/states/out/traffic")
+ reqReceiptInPacketsMeter = metrics.NewMeter("brn/req/receipts/in/packets")
+ reqReceiptInTrafficMeter = metrics.NewMeter("brn/req/receipts/in/traffic")
+ reqReceiptOutPacketsMeter = metrics.NewMeter("brn/req/receipts/out/packets")
+ reqReceiptOutTrafficMeter = metrics.NewMeter("brn/req/receipts/out/traffic")
+ miscInPacketsMeter = metrics.NewMeter("brn/misc/in/packets")
+ miscInTrafficMeter = metrics.NewMeter("brn/misc/in/traffic")
+ miscOutPacketsMeter = metrics.NewMeter("brn/misc/out/packets")
+ miscOutTrafficMeter = metrics.NewMeter("brn/misc/out/traffic")
)
// meteredMsgReadWriter is a wrapper around a p2p.MsgReadWriter, capable of
diff --git a/eth/peer.go b/brn/peer.go
similarity index 93%
rename from eth/peer.go
rename to brn/peer.go
index 42ead53965..979cdf5e8c 100644
--- a/eth/peer.go
+++ b/brn/peer.go
@@ -1,20 +1,20 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
-package eth
+package brn
import (
"errors"
@@ -23,10 +23,10 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/p2p"
+ "github.com/burnout/go-burnout/rlp"
"gopkg.in/fatih/set.v0"
)
@@ -42,10 +42,10 @@ const (
handshakeTimeout = 5 * time.Second
)
-// PeerInfo represents a short summary of the Ethereum sub-protocol metadata known
+// PeerInfo represents a short summary of the Burnout sub-protocol metadata known
// about a connected peer.
type PeerInfo struct {
- Version int `json:"version"` // Ethereum protocol version negotiated
+ Version int `json:"version"` // Burnout protocol version negotiated
Difficulty *big.Int `json:"difficulty"` // Total difficulty of the peer's blockchain
Head string `json:"head"` // SHA3 hash of the peer's best owned block
}
@@ -228,7 +228,7 @@ func (p *peer) RequestReceipts(hashes []common.Hash) error {
return p2p.Send(p.rw, GetReceiptsMsg, hashes)
}
-// Handshake executes the eth protocol handshake, negotiating version number,
+// Handshake executes the brn protocol handshake, negotiating version number,
// network IDs, difficulties, head and genesis blocks.
func (p *peer) Handshake(network uint64, td *big.Int, head common.Hash, genesis common.Hash) error {
// Send out own handshake in a new thread
@@ -293,12 +293,12 @@ func (p *peer) readStatus(network uint64, status *statusData, genesis common.Has
// String implements fmt.Stringer.
func (p *peer) String() string {
return fmt.Sprintf("Peer %s [%s]", p.id,
- fmt.Sprintf("eth/%2d", p.version),
+ fmt.Sprintf("brn/%2d", p.version),
)
}
// peerSet represents the collection of active peers currently participating in
-// the Ethereum sub-protocol.
+// the Burnout sub-protocol.
type peerSet struct {
peers map[string]*peer
lock sync.RWMutex
diff --git a/eth/protocol.go b/brn/protocol.go
similarity index 86%
rename from eth/protocol.go
rename to brn/protocol.go
index 2c41376fa8..1c8bbd9807 100644
--- a/eth/protocol.go
+++ b/brn/protocol.go
@@ -1,31 +1,31 @@
-// Copyright 2014 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2014 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
-package eth
+package brn
import (
"fmt"
"io"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/core"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/event"
+ "github.com/burnout/go-burnout/rlp"
)
// Constants to match up protocol versions and messages
@@ -35,9 +35,9 @@ const (
)
// Official short name of the protocol used during capability negotiation.
-var ProtocolName = "eth"
+var ProtocolName = "brn"
-// Supported versions of the eth protocol (first is primary).
+// Supported versions of the brn protocol (first is primary).
var ProtocolVersions = []uint{eth63, eth62}
// Number of implemented message corresponding to different protocol versions.
@@ -45,9 +45,9 @@ var ProtocolLengths = []uint64{17, 8}
const ProtocolMaxMsgSize = 10 * 1024 * 1024 // Maximum cap on the size of a protocol message
-// eth protocol message codes
+// brn protocol message codes
const (
- // Protocol messages belonging to eth/62
+ // Protocol messages belonging to brn/62
StatusMsg = 0x00
NewBlockHashesMsg = 0x01
TxMsg = 0x02
@@ -57,7 +57,7 @@ const (
BlockBodiesMsg = 0x06
NewBlockMsg = 0x07
- // Protocol messages belonging to eth/63
+ // Protocol messages belonging to brn/63
GetNodeDataMsg = 0x0d
NodeDataMsg = 0x0e
GetReceiptsMsg = 0x0f
diff --git a/eth/protocol_test.go b/brn/protocol_test.go
similarity index 92%
rename from eth/protocol_test.go
rename to brn/protocol_test.go
index d3a44ae91f..82018032ba 100644
--- a/eth/protocol_test.go
+++ b/brn/protocol_test.go
@@ -1,20 +1,20 @@
-// Copyright 2014 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2014 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
-package eth
+package brn
import (
"fmt"
@@ -22,12 +22,12 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/crypto"
+ "github.com/burnout/go-burnout/brn/downloader"
+ "github.com/burnout/go-burnout/p2p"
+ "github.com/burnout/go-burnout/rlp"
)
func init() {
diff --git a/eth/sync.go b/brn/sync.go
similarity index 91%
rename from eth/sync.go
rename to brn/sync.go
index a8ae646170..8fc3711e44 100644
--- a/eth/sync.go
+++ b/brn/sync.go
@@ -1,31 +1,31 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
-package eth
+package brn
import (
"math/rand"
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/discover"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/brn/downloader"
+ "github.com/burnout/go-burnout/log"
+ "github.com/burnout/go-burnout/p2p/discover"
)
const (
diff --git a/eth/sync_test.go b/brn/sync_test.go
similarity index 77%
rename from eth/sync_test.go
rename to brn/sync_test.go
index 9eaa1156fb..6b13d3090e 100644
--- a/eth/sync_test.go
+++ b/brn/sync_test.go
@@ -1,29 +1,29 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2015 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
-package eth
+package brn
import (
"sync/atomic"
"testing"
"time"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/discover"
+ "github.com/burnout/go-burnout/brn/downloader"
+ "github.com/burnout/go-burnout/p2p"
+ "github.com/burnout/go-burnout/p2p/discover"
)
// Tests that fast sync gets disabled as soon as a real block is successfully
diff --git a/ethclient/ethclient.go b/brnclient/ethclient.go
similarity index 90%
rename from ethclient/ethclient.go
rename to brnclient/ethclient.go
index 7f73ab113c..2543221c2b 100644
--- a/ethclient/ethclient.go
+++ b/brnclient/ethclient.go
@@ -1,21 +1,21 @@
-// Copyright 2016 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2016 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
-// Package ethclient provides a client for the Ethereum RPC API.
-package ethclient
+// Package brnclient provides a client for the Burnout RPC API.
+package brnclient
import (
"context"
@@ -24,15 +24,15 @@ import (
"fmt"
"math/big"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/burnout/go-burnout"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/common/hexutil"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/rlp"
+ "github.com/burnout/go-burnout/rpc"
)
-// Client defines typed wrappers for the Ethereum RPC API.
+// Client defines typed wrappers for the Burnout RPC API.
type Client struct {
c *rpc.Client
}
@@ -82,7 +82,7 @@ func (ec *Client) getBlock(ctx context.Context, method string, args ...interface
if err != nil {
return nil, err
} else if len(raw) == 0 {
- return nil, ethereum.NotFound
+ return nil, burnout.NotFound
}
// Decode header and transactions.
var head *types.Header
@@ -144,7 +144,7 @@ func (ec *Client) HeaderByHash(ctx context.Context, hash common.Hash) (*types.He
var head *types.Header
err := ec.c.CallContext(ctx, &head, "eth_getBlockByHash", hash, false)
if err == nil && head == nil {
- err = ethereum.NotFound
+ err = burnout.NotFound
}
return head, err
}
@@ -155,7 +155,7 @@ func (ec *Client) HeaderByNumber(ctx context.Context, number *big.Int) (*types.H
var head *types.Header
err := ec.c.CallContext(ctx, &head, "eth_getBlockByNumber", toBlockNumArg(number), false)
if err == nil && head == nil {
- err = ethereum.NotFound
+ err = burnout.NotFound
}
return head, err
}
@@ -185,7 +185,7 @@ func (ec *Client) TransactionByHash(ctx context.Context, hash common.Hash) (tx *
if err != nil {
return nil, false, err
} else if json == nil {
- return nil, false, ethereum.NotFound
+ return nil, false, burnout.NotFound
} else if _, r, _ := json.tx.RawSignatureValues(); r == nil {
return nil, false, fmt.Errorf("server returned transaction without signature")
}
@@ -231,7 +231,7 @@ func (ec *Client) TransactionInBlock(ctx context.Context, blockHash common.Hash,
err := ec.c.CallContext(ctx, &json, "eth_getTransactionByBlockHashAndIndex", blockHash, hexutil.Uint64(index))
if err == nil {
if json == nil {
- return nil, ethereum.NotFound
+ return nil, burnout.NotFound
} else if _, r, _ := json.tx.RawSignatureValues(); r == nil {
return nil, fmt.Errorf("server returned transaction without signature")
}
@@ -247,7 +247,7 @@ func (ec *Client) TransactionReceipt(ctx context.Context, txHash common.Hash) (*
err := ec.c.CallContext(ctx, &r, "eth_getTransactionReceipt", txHash)
if err == nil {
if r == nil {
- return nil, ethereum.NotFound
+ return nil, burnout.NotFound
}
}
return r, err
@@ -270,7 +270,7 @@ type rpcProgress struct {
// SyncProgress retrieves the current progress of the sync algorithm. If there's
// no sync currently running, it returns nil.
-func (ec *Client) SyncProgress(ctx context.Context) (*ethereum.SyncProgress, error) {
+func (ec *Client) SyncProgress(ctx context.Context) (*burnout.SyncProgress, error) {
var raw json.RawMessage
if err := ec.c.CallContext(ctx, &raw, "eth_syncing"); err != nil {
return nil, err
@@ -284,7 +284,7 @@ func (ec *Client) SyncProgress(ctx context.Context) (*ethereum.SyncProgress, err
if err := json.Unmarshal(raw, &progress); err != nil {
return nil, err
}
- return ðereum.SyncProgress{
+ return &burnout.SyncProgress{
StartingBlock: uint64(progress.StartingBlock),
CurrentBlock: uint64(progress.CurrentBlock),
HighestBlock: uint64(progress.HighestBlock),
@@ -295,7 +295,7 @@ func (ec *Client) SyncProgress(ctx context.Context) (*ethereum.SyncProgress, err
// SubscribeNewHead subscribes to notifications about the current blockchain head
// on the given channel.
-func (ec *Client) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error) {
+func (ec *Client) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (burnout.Subscription, error) {
return ec.c.EthSubscribe(ctx, ch, "newHeads", map[string]struct{}{})
}
@@ -349,18 +349,18 @@ func (ec *Client) NonceAt(ctx context.Context, account common.Address, blockNumb
// Filters
// FilterLogs executes a filter query.
-func (ec *Client) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error) {
+func (ec *Client) FilterLogs(ctx context.Context, q burnout.FilterQuery) ([]types.Log, error) {
var result []types.Log
err := ec.c.CallContext(ctx, &result, "eth_getLogs", toFilterArg(q))
return result, err
}
// SubscribeFilterLogs subscribes to the results of a streaming filter query.
-func (ec *Client) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error) {
+func (ec *Client) SubscribeFilterLogs(ctx context.Context, q burnout.FilterQuery, ch chan<- types.Log) (burnout.Subscription, error) {
return ec.c.EthSubscribe(ctx, ch, "logs", toFilterArg(q))
}
-func toFilterArg(q ethereum.FilterQuery) interface{} {
+func toFilterArg(q burnout.FilterQuery) interface{} {
arg := map[string]interface{}{
"fromBlock": toBlockNumArg(q.FromBlock),
"toBlock": toBlockNumArg(q.ToBlock),
@@ -421,7 +421,7 @@ func (ec *Client) PendingTransactionCount(ctx context.Context) (uint, error) {
// blockNumber selects the block height at which the call runs. It can be nil, in which
// case the code is taken from the latest known block. Note that state from very old
// blocks might not be available.
-func (ec *Client) CallContract(ctx context.Context, msg ethereum.CallMsg, blockNumber *big.Int) ([]byte, error) {
+func (ec *Client) CallContract(ctx context.Context, msg burnout.CallMsg, blockNumber *big.Int) ([]byte, error) {
var hex hexutil.Bytes
err := ec.c.CallContext(ctx, &hex, "eth_call", toCallArg(msg), toBlockNumArg(blockNumber))
if err != nil {
@@ -432,7 +432,7 @@ func (ec *Client) CallContract(ctx context.Context, msg ethereum.CallMsg, blockN
// PendingCallContract executes a message call transaction using the EVM.
// The state seen by the contract call is the pending state.
-func (ec *Client) PendingCallContract(ctx context.Context, msg ethereum.CallMsg) ([]byte, error) {
+func (ec *Client) PendingCallContract(ctx context.Context, msg burnout.CallMsg) ([]byte, error) {
var hex hexutil.Bytes
err := ec.c.CallContext(ctx, &hex, "eth_call", toCallArg(msg), "pending")
if err != nil {
@@ -455,7 +455,7 @@ func (ec *Client) SuggestGasPrice(ctx context.Context) (*big.Int, error) {
// the current pending state of the backend blockchain. There is no guarantee that this is
// the true gas limit requirement as other transactions may be added or removed by miners,
// but it should provide a basis for setting a reasonable default.
-func (ec *Client) EstimateGas(ctx context.Context, msg ethereum.CallMsg) (*big.Int, error) {
+func (ec *Client) EstimateGas(ctx context.Context, msg burnout.CallMsg) (*big.Int, error) {
var hex hexutil.Big
err := ec.c.CallContext(ctx, &hex, "eth_estimateGas", toCallArg(msg))
if err != nil {
@@ -476,7 +476,7 @@ func (ec *Client) SendTransaction(ctx context.Context, tx *types.Transaction) er
return ec.c.CallContext(ctx, nil, "eth_sendRawTransaction", common.ToHex(data))
}
-func toCallArg(msg ethereum.CallMsg) interface{} {
+func toCallArg(msg burnout.CallMsg) interface{} {
arg := map[string]interface{}{
"from": msg.From,
"to": msg.To,
diff --git a/brnclient/ethclient_test.go b/brnclient/ethclient_test.go
new file mode 100644
index 0000000000..0f90176289
--- /dev/null
+++ b/brnclient/ethclient_test.go
@@ -0,0 +1,34 @@
+// Copyright 2016 The go-burnout Authors
+// This file is part of the go-burnout library.
+//
+// The go-burnout library is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// The go-burnout library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with the go-burnout library. If not, see .
+
+package brnclient
+
+import "github.com/burnout/go-burnout"
+
+// Verify that Client implements the burnout interfaces.
+var (
+ _ = burnout.ChainReader(&Client{})
+ _ = burnout.TransactionReader(&Client{})
+ _ = burnout.ChainStateReader(&Client{})
+ _ = burnout.ChainSyncReader(&Client{})
+ _ = burnout.ContractCaller(&Client{})
+ _ = burnout.GasEstimator(&Client{})
+ _ = burnout.GasPricer(&Client{})
+ _ = burnout.LogFilterer(&Client{})
+ _ = burnout.PendingStateReader(&Client{})
+ // _ = burnout.PendingStateEventer(&Client{})
+ _ = burnout.PendingContractCaller(&Client{})
+)
diff --git a/ethclient/signer.go b/brnclient/signer.go
similarity index 78%
rename from ethclient/signer.go
rename to brnclient/signer.go
index 74a93f1e2f..880d2646a8 100644
--- a/ethclient/signer.go
+++ b/brnclient/signer.go
@@ -1,27 +1,27 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2017 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
-package ethclient
+package brnclient
import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/core/types"
)
// senderFromServer is a types.Signer that remembers the sender address returned by the RPC
diff --git a/ethdb/.gitignore b/brndb/.gitignore
similarity index 100%
rename from ethdb/.gitignore
rename to brndb/.gitignore
diff --git a/ethdb/database.go b/brndb/database.go
similarity index 96%
rename from ethdb/database.go
rename to brndb/database.go
index 93755dd7e3..3063119a41 100644
--- a/ethdb/database.go
+++ b/brndb/database.go
@@ -1,20 +1,20 @@
-// Copyright 2014 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2014 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
-package ethdb
+package brndb
import (
"strconv"
@@ -22,8 +22,8 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/burnout/go-burnout/log"
+ "github.com/burnout/go-burnout/metrics"
"github.com/syndtr/goleveldb/leveldb"
"github.com/syndtr/goleveldb/leveldb/errors"
"github.com/syndtr/goleveldb/leveldb/filter"
diff --git a/ethdb/database_test.go b/brndb/database_test.go
similarity index 85%
rename from ethdb/database_test.go
rename to brndb/database_test.go
index 5e4a3ca34a..b09e330b96 100644
--- a/ethdb/database_test.go
+++ b/brndb/database_test.go
@@ -1,18 +1,18 @@
-// Copyright 2014 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2014 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package ethdb_test
@@ -25,15 +25,15 @@ import (
"sync"
"testing"
- "github.com/ethereum/go-ethereum/ethdb"
+ "github.com/burnout/go-burnout/brndb"
)
-func newTestLDB() (*ethdb.LDBDatabase, func()) {
+func newTestLDB() (*brndb.LDBDatabase, func()) {
dirname, err := ioutil.TempDir(os.TempDir(), "ethdb_test_")
if err != nil {
panic("failed to create test file: " + err.Error())
}
- db, err := ethdb.NewLDBDatabase(dirname, 0, 0)
+ db, err := brndb.NewLDBDatabase(dirname, 0, 0)
if err != nil {
panic("failed to create test database: " + err.Error())
}
@@ -53,11 +53,11 @@ func TestLDB_PutGet(t *testing.T) {
}
func TestMemoryDB_PutGet(t *testing.T) {
- db, _ := ethdb.NewMemDatabase()
+ db, _ := brndb.NewMemDatabase()
testPutGet(db, t)
}
-func testPutGet(db ethdb.Database, t *testing.T) {
+func testPutGet(db brndb.Database, t *testing.T) {
t.Parallel()
for _, v := range test_values {
@@ -131,11 +131,11 @@ func TestLDB_ParallelPutGet(t *testing.T) {
}
func TestMemoryDB_ParallelPutGet(t *testing.T) {
- db, _ := ethdb.NewMemDatabase()
+ db, _ := brndb.NewMemDatabase()
testParallelPutGet(db, t)
}
-func testParallelPutGet(db ethdb.Database, t *testing.T) {
+func testParallelPutGet(db brndb.Database, t *testing.T) {
const n = 8
var pending sync.WaitGroup
diff --git a/ethdb/interface.go b/brndb/interface.go
similarity index 77%
rename from ethdb/interface.go
rename to brndb/interface.go
index 99a5b770d5..6588320d61 100644
--- a/ethdb/interface.go
+++ b/brndb/interface.go
@@ -1,20 +1,20 @@
-// Copyright 2014 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2014 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
-package ethdb
+package brndb
// Code using batches should try to add this much data to the batch.
// The value was determined empirically.
diff --git a/ethdb/memory_database.go b/brndb/memory_database.go
similarity index 85%
rename from ethdb/memory_database.go
rename to brndb/memory_database.go
index 699bd0c9fd..6d4fb659a4 100644
--- a/ethdb/memory_database.go
+++ b/brndb/memory_database.go
@@ -1,26 +1,26 @@
-// Copyright 2014 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2014 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
-package ethdb
+package brndb
import (
"errors"
"sync"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/burnout/go-burnout/common"
)
/*
diff --git a/ethstats/ethstats.go b/brnstats/ethstats.go
similarity index 88%
rename from ethstats/ethstats.go
rename to brnstats/ethstats.go
index bb03dc72b0..d1edeea552 100644
--- a/ethstats/ethstats.go
+++ b/brnstats/ethstats.go
@@ -1,21 +1,21 @@
-// Copyright 2016 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2016 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
-// Package ethstats implements the network stats reporting service.
-package ethstats
+// Package brnstats implements the network stats reporting service.
+package brnstats
import (
"context"
@@ -30,17 +30,17 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/eth"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/les"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/common/mclock"
+ "github.com/burnout/go-burnout/consensus"
+ "github.com/burnout/go-burnout/core"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/brn"
+ "github.com/burnout/go-burnout/event"
+ "github.com/burnout/go-burnout/les"
+ "github.com/burnout/go-burnout/log"
+ "github.com/burnout/go-burnout/p2p"
+ "github.com/burnout/go-burnout/rpc"
"golang.org/x/net/websocket"
)
@@ -66,12 +66,12 @@ type blockChain interface {
SubscribeChainHeadEvent(ch chan<- core.ChainHeadEvent) event.Subscription
}
-// Service implements an Ethereum netstats reporting daemon that pushes local
+// Service implements an Burnout netstats reporting daemon that pushes local
// chain statistics up to a monitoring server.
type Service struct {
server *p2p.Server // Peer-to-peer server to retrieve networking infos
- eth *eth.Ethereum // Full Ethereum service if monitoring a full node
- les *les.LightEthereum // Light Ethereum service if monitoring a light node
+ brn *brn.Burnout // Full Burnout service if monitoring a full node
+ les *les.LightBurnout // Light Burnout service if monitoring a light node
engine consensus.Engine // Consensus engine to retrieve variadic block fields
node string // Name of the node to display on the monitoring page
@@ -83,7 +83,7 @@ type Service struct {
}
// New returns a monitoring service ready for stats reporting.
-func New(url string, ethServ *eth.Ethereum, lesServ *les.LightEthereum) (*Service, error) {
+func New(url string, ethServ *brn.Burnout, lesServ *les.LightBurnout) (*Service, error) {
// Parse the netstats connection url
re := regexp.MustCompile("([^:@]*)(:([^@]*))?@(.+)")
parts := re.FindStringSubmatch(url)
@@ -98,7 +98,7 @@ func New(url string, ethServ *eth.Ethereum, lesServ *les.LightEthereum) (*Servic
engine = lesServ.Engine()
}
return &Service{
- eth: ethServ,
+ brn: ethServ,
les: lesServ,
engine: engine,
node: parts[1],
@@ -138,9 +138,9 @@ func (s *Service) loop() {
// Subscribe to chain events to execute updates on
var blockchain blockChain
var txpool txPool
- if s.eth != nil {
- blockchain = s.eth.BlockChain()
- txpool = s.eth.TxPool()
+ if s.brn != nil {
+ blockchain = s.brn.BlockChain()
+ txpool = s.brn.TxPool()
} else {
blockchain = s.les.BlockChain()
txpool = s.les.TxPool()
@@ -374,11 +374,11 @@ func (s *Service) login(conn *websocket.Conn) error {
infos := s.server.NodeInfo()
var network, protocol string
- if info := infos.Protocols["eth"]; info != nil {
- network = fmt.Sprintf("%d", info.(*eth.EthNodeInfo).Network)
- protocol = fmt.Sprintf("eth/%d", eth.ProtocolVersions[0])
+ if info := infos.Protocols["brn"]; info != nil {
+ network = fmt.Sprintf("%d", info.(*brn.EthNodeInfo).Network)
+ protocol = fmt.Sprintf("brn/%d", brn.ProtocolVersions[0])
} else {
- network = fmt.Sprintf("%d", infos.Protocols["les"].(*eth.EthNodeInfo).Network)
+ network = fmt.Sprintf("%d", infos.Protocols["les"].(*brn.EthNodeInfo).Network)
protocol = fmt.Sprintf("les/%d", les.ProtocolVersions[0])
}
auth := &authMsg{
@@ -433,7 +433,7 @@ func (s *Service) report(conn *websocket.Conn) error {
// reportLatency sends a ping request to the server, measures the RTT time and
// finally sends a latency update.
func (s *Service) reportLatency(conn *websocket.Conn) error {
- // Send the current time to the ethstats server
+ // Send the current time to the brnstats server
start := time.Now()
ping := map[string][]interface{}{
@@ -456,7 +456,7 @@ func (s *Service) reportLatency(conn *websocket.Conn) error {
latency := strconv.Itoa(int((time.Since(start) / time.Duration(2)).Nanoseconds() / 1000000))
// Send back the measured latency
- log.Trace("Sending measured latency to ethstats", "latency", latency)
+ log.Trace("Sending measured latency to brnstats", "latency", latency)
stats := map[string][]interface{}{
"emit": {"latency", map[string]string{
@@ -506,7 +506,7 @@ func (s *Service) reportBlock(conn *websocket.Conn, block *types.Block) error {
details := s.assembleBlockStats(block)
// Assemble the block report and send it to the server
- log.Trace("Sending new block to ethstats", "number", details.Number, "hash", details.Hash)
+ log.Trace("Sending new block to brnstats", "number", details.Number, "hash", details.Hash)
stats := map[string]interface{}{
"id": s.node,
@@ -528,13 +528,13 @@ func (s *Service) assembleBlockStats(block *types.Block) *blockStats {
txs []txStats
uncles []*types.Header
)
- if s.eth != nil {
+ if s.brn != nil {
// Full nodes have all needed information available
if block == nil {
- block = s.eth.BlockChain().CurrentBlock()
+ block = s.brn.BlockChain().CurrentBlock()
}
header = block.Header()
- td = s.eth.BlockChain().GetTd(header.Hash(), header.Number.Uint64())
+ td = s.brn.BlockChain().GetTd(header.Hash(), header.Number.Uint64())
txs = make([]txStats, len(block.Transactions()))
for i, tx := range block.Transactions() {
@@ -582,8 +582,8 @@ func (s *Service) reportHistory(conn *websocket.Conn, list []uint64) error {
} else {
// No indexes requested, send back the top ones
var head int64
- if s.eth != nil {
- head = s.eth.BlockChain().CurrentHeader().Number.Int64()
+ if s.brn != nil {
+ head = s.brn.BlockChain().CurrentHeader().Number.Int64()
} else {
head = s.les.BlockChain().CurrentHeader().Number.Int64()
}
@@ -600,8 +600,8 @@ func (s *Service) reportHistory(conn *websocket.Conn, list []uint64) error {
for i, number := range indexes {
// Retrieve the next block if it's known to us
var block *types.Block
- if s.eth != nil {
- block = s.eth.BlockChain().GetBlockByNumber(number)
+ if s.brn != nil {
+ block = s.brn.BlockChain().GetBlockByNumber(number)
} else {
if header := s.les.BlockChain().GetHeaderByNumber(number); header != nil {
block = types.NewBlockWithHeader(header)
@@ -617,7 +617,7 @@ func (s *Service) reportHistory(conn *websocket.Conn, list []uint64) error {
}
// Assemble the history report and send it to the server
if len(history) > 0 {
- log.Trace("Sending historical blocks to ethstats", "first", history[0].Number, "last", history[len(history)-1].Number)
+ log.Trace("Sending historical blocks to brnstats", "first", history[0].Number, "last", history[len(history)-1].Number)
} else {
log.Trace("No history to send to stats server")
}
@@ -641,13 +641,13 @@ type pendStats struct {
func (s *Service) reportPending(conn *websocket.Conn) error {
// Retrieve the pending count from the local blockchain
var pending int
- if s.eth != nil {
- pending, _ = s.eth.TxPool().Stats()
+ if s.brn != nil {
+ pending, _ = s.brn.TxPool().Stats()
} else {
pending = s.les.TxPool().Stats()
}
// Assemble the transaction stats and send it to the server
- log.Trace("Sending pending transactions to ethstats", "count", pending)
+ log.Trace("Sending pending transactions to brnstats", "count", pending)
stats := map[string]interface{}{
"id": s.node,
@@ -682,21 +682,21 @@ func (s *Service) reportStats(conn *websocket.Conn) error {
syncing bool
gasprice int
)
- if s.eth != nil {
- mining = s.eth.Miner().Mining()
- hashrate = int(s.eth.Miner().HashRate())
+ if s.brn != nil {
+ mining = s.brn.Miner().Mining()
+ hashrate = int(s.brn.Miner().HashRate())
- sync := s.eth.Downloader().Progress()
- syncing = s.eth.BlockChain().CurrentHeader().Number.Uint64() >= sync.HighestBlock
+ sync := s.brn.Downloader().Progress()
+ syncing = s.brn.BlockChain().CurrentHeader().Number.Uint64() >= sync.HighestBlock
- price, _ := s.eth.ApiBackend.SuggestPrice(context.Background())
+ price, _ := s.brn.ApiBackend.SuggestPrice(context.Background())
gasprice = int(price.Uint64())
} else {
sync := s.les.Downloader().Progress()
syncing = s.les.BlockChain().CurrentHeader().Number.Uint64() >= sync.HighestBlock
}
// Assemble the node stats and send it to the server
- log.Trace("Sending node details to ethstats")
+ log.Trace("Sending node details to brnstats")
stats := map[string]interface{}{
"id": s.node,
diff --git a/build/ci-notes.md b/build/ci-notes.md
index 78e9575c01..a495dfb62d 100644
--- a/build/ci-notes.md
+++ b/build/ci-notes.md
@@ -18,11 +18,11 @@ and installs the new version into the PPA repository. Launchpad requires a valid
by a team member for source package uploads. The signing key is stored in an environment
variable which Travis CI makes available to certain builds.
-We want to build go-ethereum with the most recent version of Go, irrespective of the Go
+We want to build go-burnout with the most recent version of Go, irrespective of the Go
version that is available in the main Ubuntu repository. In order to make this possible,
our PPA depends on the ~gophers/ubuntu/archive PPA. Our source package build-depends on
golang-1.9, which is co-installable alongside the regular golang package. PPA dependencies
-can be edited at https://launchpad.net/%7Eethereum/+archive/ubuntu/ethereum/+edit-dependencies
+can be edited at https://launchpad.net/%7Eburnout/+archive/ubuntu/burnout/+edit-dependencies
## Building Packages Locally (for testing)
@@ -40,7 +40,7 @@ Create the source packages:
Then go into the source package directory for your running distribution and build the package:
- $ cd dist/ethereum-unstable-1.6.0+xenial
+ $ cd dist/burnout-unstable-1.6.0+xenial
$ dpkg-buildpackage
Built packages are placed in the dist/ directory.
diff --git a/build/ci.go b/build/ci.go
index 6fe03db713..40ed606d18 100644
--- a/build/ci.go
+++ b/build/ci.go
@@ -1,18 +1,18 @@
-// Copyright 2016 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2016 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
// +build none
@@ -57,7 +57,7 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/internal/build"
+ "github.com/burnout/go-burnout/internal/build"
)
var (
@@ -84,23 +84,23 @@ var (
debExecutables = []debExecutable{
{
Name: "abigen",
- Description: "Source code generator to convert Ethereum contract definitions into easy to use, compile-time type-safe Go packages.",
+ Description: "Source code generator to convert Burnout contract definitions into easy to use, compile-time type-safe Go packages.",
},
{
Name: "bootnode",
- Description: "Ethereum bootnode.",
+ Description: "Burnout bootnode.",
},
{
Name: "evm",
- Description: "Developer utility version of the EVM (Ethereum Virtual Machine) that is capable of running bytecode snippets within a configurable environment and execution mode.",
+ Description: "Developer utility version of the EVM (Burnout Virtual Machine) that is capable of running bytecode snippets within a configurable environment and execution mode.",
},
{
Name: "geth",
- Description: "Ethereum CLI client.",
+ Description: "Burnout CLI client.",
},
{
Name: "puppeth",
- Description: "Ethereum private network manager.",
+ Description: "Burnout private network manager.",
},
{
Name: "rlpdump",
@@ -108,11 +108,11 @@ var (
},
{
Name: "swarm",
- Description: "Ethereum Swarm daemon and tools",
+ Description: "Burnout Swarm daemon and tools",
},
{
Name: "wnode",
- Description: "Ethereum Whisper diagnostic tool",
+ Description: "Burnout Whisper diagnostic tool",
},
}
@@ -178,7 +178,7 @@ func doInstall(cmdline []string) {
// failure with outdated Go. This should save them the trouble.
if runtime.Version() < "go1.7" && !strings.Contains(runtime.Version(), "devel") {
log.Println("You have Go version", runtime.Version())
- log.Println("go-ethereum requires at least Go version 1.7 and cannot")
+ log.Println("go-burnout requires at least Go version 1.7 and cannot")
log.Println("be compiled with an earlier version. Please upgrade your Go installation.")
os.Exit(1)
}
@@ -454,7 +454,7 @@ func maybeSkipArchive(env build.Environment) {
func doDebianSource(cmdline []string) {
var (
signer = flag.String("signer", "", `Signing key name, also used as package author`)
- upload = flag.String("upload", "", `Where to upload the source package (usually "ppa:ethereum/ethereum")`)
+ upload = flag.String("upload", "", `Where to upload the source package (usually "ppa:burnout/burnout")`)
workdir = flag.String("workdir", "", `Output directory for packages (uses temp dir if unset)`)
now = time.Now()
)
@@ -516,7 +516,7 @@ func isUnstableBuild(env build.Environment) bool {
type debMetadata struct {
Env build.Environment
- // go-ethereum version being built. Note that this
+ // go-burnout version being built. Note that this
// is not the debian package version. The package version
// is constructed by VersionString.
Version string
@@ -533,7 +533,7 @@ type debExecutable struct {
func newDebMetadata(distro, author string, env build.Environment, t time.Time) debMetadata {
if author == "" {
// No signing key, use default author.
- author = "Ethereum Builds "
+ author = "Burnout Builds "
}
return debMetadata{
Env: env,
@@ -549,9 +549,9 @@ func newDebMetadata(distro, author string, env build.Environment, t time.Time) d
// on all executable packages.
func (meta debMetadata) Name() string {
if isUnstableBuild(meta.Env) {
- return "ethereum-unstable"
+ return "burnout-unstable"
}
- return "ethereum"
+ return "burnout"
}
// VersionString returns the debian version of the packages.
@@ -595,7 +595,7 @@ func (meta debMetadata) ExeConflicts(exe debExecutable) string {
// be preferred and the conflicting files should be handled via
// alternates. We might do this eventually but using a conflict is
// easier now.
- return "ethereum, " + exe.Name
+ return "burnout, " + exe.Name
}
return ""
}
@@ -721,7 +721,7 @@ func doAndroidArchive(cmdline []string) {
// Build the Android archive and Maven resources
build.MustRun(goTool("get", "golang.org/x/mobile/cmd/gomobile"))
build.MustRun(gomobileTool("init", "--ndk", os.Getenv("ANDROID_NDK")))
- build.MustRun(gomobileTool("bind", "--target", "android", "--javapkg", "org.ethereum", "-v", "github.com/ethereum/go-ethereum/mobile"))
+ build.MustRun(gomobileTool("bind", "--target", "android", "--javapkg", "org.burnout", "-v", "github.com/burnout/go-burnout/mobile"))
if *local {
// If we're building locally, copy bundle to build dir and skip Maven
@@ -841,7 +841,7 @@ func doXCodeFramework(cmdline []string) {
// Build the iOS XCode framework
build.MustRun(goTool("get", "golang.org/x/mobile/cmd/gomobile"))
build.MustRun(gomobileTool("init"))
- bind := gomobileTool("bind", "--target", "ios", "--tags", "ios", "-v", "github.com/ethereum/go-ethereum/mobile")
+ bind := gomobileTool("bind", "--target", "ios", "--tags", "ios", "-v", "github.com/burnout/go-burnout/mobile")
if *local {
// If we're building locally, use the build folder and stop afterwards
diff --git a/build/deb.control b/build/deb.control
index 5c9ce6705c..c507514f06 100644
--- a/build/deb.control
+++ b/build/deb.control
@@ -4,9 +4,9 @@ Priority: extra
Maintainer: {{.Author}}
Build-Depends: debhelper (>= 8.0.0), golang-1.9
Standards-Version: 3.9.5
-Homepage: https://ethereum.org
-Vcs-Git: git://github.com/ethereum/go-ethereum.git
-Vcs-Browser: https://github.com/ethereum/go-ethereum
+Homepage: https://burnout.org
+Vcs-Git: git://github.com/burnout/go-burnout.git
+Vcs-Browser: https://github.com/burnout/go-burnout
Package: {{.Name}}
Architecture: any
diff --git a/build/deb.copyright b/build/deb.copyright
index 513be45b19..a351aedf23 100644
--- a/build/deb.copyright
+++ b/build/deb.copyright
@@ -1,14 +1,14 @@
-Copyright 2016 The go-ethereum Authors
+Copyright 2016 The go-burnout Authors
-go-ethereum is free software: you can redistribute it and/or modify
+go-burnout is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
-go-ethereum is distributed in the hope that it will be useful,
+go-burnout is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
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 go-ethereum. If not, see .
+along with go-burnout. If not, see .
diff --git a/build/env.sh b/build/env.sh
index 3914555d1b..b5567f63d8 100755
--- a/build/env.sh
+++ b/build/env.sh
@@ -10,11 +10,11 @@ fi
# Create fake Go workspace if it doesn't exist yet.
workspace="$PWD/build/_workspace"
root="$PWD"
-ethdir="$workspace/src/github.com/ethereum"
-if [ ! -L "$ethdir/go-ethereum" ]; then
+ethdir="$workspace/src/github.com/burnout"
+if [ ! -L "$ethdir/go-burnout" ]; then
mkdir -p "$ethdir"
cd "$ethdir"
- ln -s ../../../../../. go-ethereum
+ ln -s ../../../../../. go-burnout
cd "$root"
fi
@@ -23,8 +23,8 @@ GOPATH="$workspace"
export GOPATH
# Run the command inside the workspace.
-cd "$ethdir/go-ethereum"
-PWD="$ethdir/go-ethereum"
+cd "$ethdir/go-burnout"
+PWD="$ethdir/go-burnout"
# Launch the arguments with the configured environment.
exec "$@"
diff --git a/build/mvn.pom b/build/mvn.pom
index 7670246ba9..e5d0b6f77b 100644
--- a/build/mvn.pom
+++ b/build/mvn.pom
@@ -4,14 +4,14 @@
http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
- org.ethereum
+ org.burnoutgeth{{.Version}}aar
- Android Ethereum Client
- Android port of the go-ethereum libraries and node
- https://github.com/ethereum/go-ethereum
+ Android Burnout Client
+ Android port of the go-burnout libraries and node
+ https://github.com/burnout/go-burnout2015
@@ -23,8 +23,8 @@
- Ethereum
- https://ethereum.org
+ Burnout
+ https://burnout.org
@@ -48,10 +48,10 @@
GitHub Issues
- https://github.com/ethereum/go-ethereum/issues/
+ https://github.com/burnout/go-burnout/issues/
- https://github.com/ethereum/go-ethereum
+ https://github.com/burnout/go-burnout
diff --git a/build/nsis.geth.nsi b/build/nsis.geth.nsi
index 1034f30235..d387ba93ba 100644
--- a/build/nsis.geth.nsi
+++ b/build/nsis.geth.nsi
@@ -12,7 +12,7 @@
# 4. configures the Windows firewall for geth
# 5. create geth, attach and uninstall start menu entries
# 6. configures the registry that allows Windows to manage the package through its platform tools
-# 7. adds the environment system wide variable ETHEREUM_SOCKET
+# 7. adds the environment system wide variable BURNOUT_SOCKET
# 8. adds the install directory to %PATH%
#
# Requirements:
@@ -29,9 +29,9 @@
# - sign installer
CRCCheck on
-!define GROUPNAME "Ethereum"
+!define GROUPNAME "Burnout"
!define APPNAME "Geth"
-!define DESCRIPTION "Official Go implementation of the Ethereum protocol"
+!define DESCRIPTION "Official Go implementation of the Burnout protocol"
!addplugindir .\
# Require admin rights on NT6+ (When UAC is turned on)
diff --git a/build/nsis.install.nsh b/build/nsis.install.nsh
index 57ef5a37c6..8cbed18a88 100644
--- a/build/nsis.install.nsh
+++ b/build/nsis.install.nsh
@@ -3,9 +3,9 @@ InstallDir "$InstDir"
OutFile "${OUTPUTFILE}" # set through command line arguments
# Links for "Add/Remove Programs"
-!define HELPURL "https://github.com/ethereum/go-ethereum/issues"
-!define UPDATEURL "https://github.com/ethereum/go-ethereum/releases"
-!define ABOUTURL "https://github.com/ethereum/go-ethereum#ethereum-go"
+!define HELPURL "https://github.com/burnout/go-burnout/issues"
+!define UPDATEURL "https://github.com/burnout/go-burnout/releases"
+!define ABOUTURL "https://github.com/burnout/go-burnout#burnout-go"
!define /date NOW "%Y%m%d"
PageEx license
@@ -19,8 +19,8 @@ Section "Geth" GETH_IDX
# Create start menu launcher
createDirectory "$SMPROGRAMS\${APPNAME}"
- createShortCut "$SMPROGRAMS\${APPNAME}\${APPNAME}.lnk" "$INSTDIR\geth.exe" "--fast" "--cache=512"
- createShortCut "$SMPROGRAMS\${APPNAME}\Attach.lnk" "$INSTDIR\geth.exe" "attach" "" ""
+ createShortCut "$SMPROGRAMS\${APPNAME}\${APPNAME}.lnk" "$INSTDIR\gbrn.exe" "--fast" "--cache=512"
+ createShortCut "$SMPROGRAMS\${APPNAME}\Attach.lnk" "$INSTDIR\gbrn.exe" "attach" "" ""
createShortCut "$SMPROGRAMS\${APPNAME}\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "" ""
# Firewall - remove rules (if exists)
@@ -29,13 +29,13 @@ Section "Geth" GETH_IDX
SimpleFC::AdvRemoveRule "Geth UDP discovery (UDP:30303)"
# Firewall - add rules
- SimpleFC::AdvAddRule "Geth incoming peers (TCP:30303)" "" 6 1 1 2147483647 1 "$INSTDIR\geth.exe" "" "" "Ethereum" 30303 "" "" ""
- SimpleFC::AdvAddRule "Geth outgoing peers (TCP:30303)" "" 6 2 1 2147483647 1 "$INSTDIR\geth.exe" "" "" "Ethereum" "" 30303 "" ""
- SimpleFC::AdvAddRule "Geth UDP discovery (UDP:30303)" "" 17 2 1 2147483647 1 "$INSTDIR\geth.exe" "" "" "Ethereum" "" 30303 "" ""
+ SimpleFC::AdvAddRule "Geth incoming peers (TCP:30303)" "" 6 1 1 2147483647 1 "$INSTDIR\gbrn.exe" "" "" "Burnout" 30303 "" "" ""
+ SimpleFC::AdvAddRule "Geth outgoing peers (TCP:30303)" "" 6 2 1 2147483647 1 "$INSTDIR\gbrn.exe" "" "" "Burnout" "" 30303 "" ""
+ SimpleFC::AdvAddRule "Geth UDP discovery (UDP:30303)" "" 17 2 1 2147483647 1 "$INSTDIR\gbrn.exe" "" "" "Burnout" "" 30303 "" ""
- # Set default IPC endpoint (https://github.com/ethereum/EIPs/issues/147)
- ${EnvVarUpdate} $0 "ETHEREUM_SOCKET" "R" "HKLM" "\\.\pipe\geth.ipc"
- ${EnvVarUpdate} $0 "ETHEREUM_SOCKET" "A" "HKLM" "\\.\pipe\geth.ipc"
+ # Set default IPC endpoint (https://github.com/burnout/EIPs/issues/147)
+ ${EnvVarUpdate} $0 "BURNOUT_SOCKET" "R" "HKLM" "\\.\pipe\gbrn.ipc"
+ ${EnvVarUpdate} $0 "BURNOUT_SOCKET" "A" "HKLM" "\\.\pipe\gbrn.ipc"
# Add instdir to PATH
Push "$INSTDIR"
diff --git a/build/nsis.uninstall.nsh b/build/nsis.uninstall.nsh
index 6358faa74e..010356bbe2 100644
--- a/build/nsis.uninstall.nsh
+++ b/build/nsis.uninstall.nsh
@@ -21,8 +21,8 @@ Section "Uninstall"
SimpleFC::AdvRemoveRule "Geth outgoing peers (TCP:30303)"
SimpleFC::AdvRemoveRule "Geth UDP discovery (UDP:30303)"
- # Remove IPC endpoint (https://github.com/ethereum/EIPs/issues/147)
- ${un.EnvVarUpdate} $0 "ETHEREUM_SOCKET" "R" "HKLM" "\\.\pipe\geth.ipc"
+ # Remove IPC endpoint (https://github.com/burnout/EIPs/issues/147)
+ ${un.EnvVarUpdate} $0 "BURNOUT_SOCKET" "R" "HKLM" "\\.\pipe\gbrn.ipc"
# Remove install directory from PATH
Push "$INSTDIR"
diff --git a/build/pod.podspec b/build/pod.podspec
index 2c14c280c7..23f25e773b 100644
--- a/build/pod.podspec
+++ b/build/pod.podspec
@@ -2,12 +2,12 @@ Pod::Spec.new do |spec|
spec.name = 'Geth'
spec.version = '{{.Version}}'
spec.license = { :type => 'GNU Lesser General Public License, Version 3.0' }
- spec.homepage = 'https://github.com/ethereum/go-ethereum'
+ spec.homepage = 'https://github.com/burnout/go-burnout'
spec.authors = { {{range .Contributors}}
'{{.Name}}' => '{{.Email}}',{{end}}
}
- spec.summary = 'iOS Ethereum Client'
- spec.source = { :git => 'https://github.com/ethereum/go-ethereum.git', :commit => '{{.Commit}}' }
+ spec.summary = 'iOS Burnout Client'
+ spec.source = { :git => 'https://github.com/burnout/go-burnout.git', :commit => '{{.Commit}}' }
spec.platform = :ios
spec.ios.deployment_target = '9.0'
diff --git a/build/update-license.go b/build/update-license.go
index 3d69598b75..9a3a66d609 100644
--- a/build/update-license.go
+++ b/build/update-license.go
@@ -69,13 +69,13 @@ var (
licenseCommentRE = regexp.MustCompile(`^//\s*(Copyright|This file is part of).*?\n(?://.*?\n)*\n*`)
// this text appears at the start of AUTHORS
- authorsFileHeader = "# This is the official list of go-ethereum authors for copyright purposes.\n\n"
+ authorsFileHeader = "# This is the official list of go-burnout authors for copyright purposes.\n\n"
)
// this template generates the license comment.
// its input is an info structure.
var licenseT = template.Must(template.New("").Parse(`
-// Copyright {{.Year}} The go-ethereum Authors
+// Copyright {{.Year}} The go-burnout Authors
// This file is part of {{.Whole false}}.
//
// {{.Whole true}} is free software: you can redistribute it and/or modify
@@ -114,12 +114,12 @@ func (i info) ShortLicense() string {
func (i info) Whole(startOfSentence bool) string {
if i.gpl() {
- return "go-ethereum"
+ return "go-burnout"
}
if startOfSentence {
- return "The go-ethereum library"
+ return "The go-burnout library"
}
- return "the go-ethereum library"
+ return "the go-burnout library"
}
func (i info) gpl() bool {
diff --git a/circle.yml b/circle.yml
index 39ff5d83c6..91d2d3a4be 100644
--- a/circle.yml
+++ b/circle.yml
@@ -28,5 +28,5 @@ test:
- cp ./build/bin/geth $HOME/geth
# Run hive and move all generated logs into the public artifacts folder
- - (cd ~/.go_workspace/src/github.com/karalabe/hive && hive --docker-noshell --client=go-ethereum:local --override=$HOME/geth --test=. --sim=.)
+ - (cd ~/.go_workspace/src/github.com/karalabe/hive && hive --docker-noshell --client=go-burnout:local --override=$HOME/geth --test=. --sim=.)
- cp -r ~/.go_workspace/src/github.com/karalabe/hive/workspace/logs/* $CIRCLE_ARTIFACTS
diff --git a/cmd/abigen/main.go b/cmd/abigen/main.go
index 3a1ae6f4c3..f0080c829e 100644
--- a/cmd/abigen/main.go
+++ b/cmd/abigen/main.go
@@ -1,18 +1,18 @@
-// Copyright 2016 The go-ethereum Authors
-// This file is part of go-ethereum.
+// Copyright 2016 The go-burnout Authors
+// This file is part of go-burnout.
//
-// go-ethereum is free software: you can redistribute it and/or modify
+// go-burnout is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// go-ethereum is distributed in the hope that it will be useful,
+// go-burnout is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// 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 go-ethereum. If not, see .
+// along with go-burnout. If not, see .
package main
@@ -24,16 +24,16 @@ import (
"os"
"strings"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/common/compiler"
+ "github.com/burnout/go-burnout/accounts/abi/bind"
+ "github.com/burnout/go-burnout/common/compiler"
)
var (
- abiFlag = flag.String("abi", "", "Path to the Ethereum contract ABI json to bind")
- binFlag = flag.String("bin", "", "Path to the Ethereum contract bytecode (generate deploy method)")
+ abiFlag = flag.String("abi", "", "Path to the Burnout contract ABI json to bind")
+ binFlag = flag.String("bin", "", "Path to the Burnout contract bytecode (generate deploy method)")
typFlag = flag.String("type", "", "Struct name for the binding (default = package name)")
- solFlag = flag.String("sol", "", "Path to the Ethereum contract Solidity source to build and bind")
+ solFlag = flag.String("sol", "", "Path to the Burnout contract Solidity source to build and bind")
solcFlag = flag.String("solc", "solc", "Solidity compiler to use if source builds are requested")
excFlag = flag.String("exc", "", "Comma separated types to exclude from binding")
diff --git a/cmd/bootnode/main.go b/cmd/bootnode/main.go
index e1734d89ac..bc0a2559c2 100644
--- a/cmd/bootnode/main.go
+++ b/cmd/bootnode/main.go
@@ -1,20 +1,20 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of go-ethereum.
+// Copyright 2015 The go-burnout Authors
+// This file is part of go-burnout.
//
-// go-ethereum is free software: you can redistribute it and/or modify
+// go-burnout is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// go-ethereum is distributed in the hope that it will be useful,
+// go-burnout is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// 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 go-ethereum. If not, see .
+// along with go-burnout. If not, see .
-// bootnode runs a bootstrap node for the Ethereum Discovery Protocol.
+// bootnode runs a bootstrap node for the Burnout Discovery Protocol.
package main
import (
@@ -23,13 +23,13 @@ import (
"fmt"
"os"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/discover"
- "github.com/ethereum/go-ethereum/p2p/discv5"
- "github.com/ethereum/go-ethereum/p2p/nat"
- "github.com/ethereum/go-ethereum/p2p/netutil"
+ "github.com/burnout/go-burnout/cmd/utils"
+ "github.com/burnout/go-burnout/crypto"
+ "github.com/burnout/go-burnout/log"
+ "github.com/burnout/go-burnout/p2p/discover"
+ "github.com/burnout/go-burnout/p2p/discv5"
+ "github.com/burnout/go-burnout/p2p/nat"
+ "github.com/burnout/go-burnout/p2p/netutil"
)
func main() {
diff --git a/cmd/evm/compiler.go b/cmd/evm/compiler.go
index c019a2fe70..73a069a70f 100644
--- a/cmd/evm/compiler.go
+++ b/cmd/evm/compiler.go
@@ -1,18 +1,18 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of go-ethereum.
+// Copyright 2017 The go-burnout Authors
+// This file is part of go-burnout.
//
-// go-ethereum is free software: you can redistribute it and/or modify
+// go-burnout is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// go-ethereum is distributed in the hope that it will be useful,
+// go-burnout is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// 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 go-ethereum. If not, see .
+// along with go-burnout. If not, see .
package main
@@ -21,7 +21,7 @@ import (
"fmt"
"io/ioutil"
- "github.com/ethereum/go-ethereum/cmd/evm/internal/compiler"
+ "github.com/burnout/go-burnout/cmd/evm/internal/compiler"
cli "gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/evm/disasm.go b/cmd/evm/disasm.go
index 4a442cf784..8b045ccd3e 100644
--- a/cmd/evm/disasm.go
+++ b/cmd/evm/disasm.go
@@ -1,18 +1,18 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of go-ethereum.
+// Copyright 2017 The go-burnout Authors
+// This file is part of go-burnout.
//
-// go-ethereum is free software: you can redistribute it and/or modify
+// go-burnout is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// go-ethereum is distributed in the hope that it will be useful,
+// go-burnout is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// 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 go-ethereum. If not, see .
+// along with go-burnout. If not, see .
package main
@@ -22,7 +22,7 @@ import (
"io/ioutil"
"strings"
- "github.com/ethereum/go-ethereum/core/asm"
+ "github.com/burnout/go-burnout/core/asm"
cli "gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/evm/internal/compiler/compiler.go b/cmd/evm/internal/compiler/compiler.go
index 753ca62264..b41617ebb1 100644
--- a/cmd/evm/internal/compiler/compiler.go
+++ b/cmd/evm/internal/compiler/compiler.go
@@ -1,18 +1,18 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of go-ethereum.
+// Copyright 2017 The go-burnout Authors
+// This file is part of go-burnout.
//
-// go-ethereum is free software: you can redistribute it and/or modify
+// go-burnout is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// go-ethereum is distributed in the hope that it will be useful,
+// go-burnout is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// 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 go-ethereum. If not, see .
+// along with go-burnout. If not, see .
package compiler
@@ -20,7 +20,7 @@ import (
"errors"
"fmt"
- "github.com/ethereum/go-ethereum/core/asm"
+ "github.com/burnout/go-burnout/core/asm"
)
func Compile(fn string, src []byte, debug bool) (string, error) {
diff --git a/cmd/evm/json_logger.go b/cmd/evm/json_logger.go
index eb7b0c4660..ac57ee5c92 100644
--- a/cmd/evm/json_logger.go
+++ b/cmd/evm/json_logger.go
@@ -1,18 +1,18 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of the go-ethereum library.
+// Copyright 2017 The go-burnout Authors
+// This file is part of the go-burnout library.
//
-// The go-ethereum library is free software: you can redistribute it and/or modify
+// The go-burnout library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// The go-ethereum library is distributed in the hope that it will be useful,
+// The go-burnout library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with the go-ethereum library. If not, see .
+// along with the go-burnout library. If not, see .
package main
@@ -21,9 +21,9 @@ import (
"io"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/core/vm"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/common/math"
+ "github.com/burnout/go-burnout/core/vm"
)
type JSONLogger struct {
diff --git a/cmd/evm/main.go b/cmd/evm/main.go
index 6c39cf8b88..e40f134c7d 100644
--- a/cmd/evm/main.go
+++ b/cmd/evm/main.go
@@ -1,18 +1,18 @@
-// Copyright 2014 The go-ethereum Authors
-// This file is part of go-ethereum.
+// Copyright 2014 The go-burnout Authors
+// This file is part of go-burnout.
//
-// go-ethereum is free software: you can redistribute it and/or modify
+// go-burnout is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// go-ethereum is distributed in the hope that it will be useful,
+// go-burnout is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// 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 go-ethereum. If not, see .
+// along with go-burnout. If not, see .
// evm executes EVM code snippets.
package main
@@ -22,7 +22,7 @@ import (
"math/big"
"os"
- "github.com/ethereum/go-ethereum/cmd/utils"
+ "github.com/burnout/go-burnout/cmd/utils"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/evm/runner.go b/cmd/evm/runner.go
index 96de0c76ac..5df7b37ccf 100644
--- a/cmd/evm/runner.go
+++ b/cmd/evm/runner.go
@@ -1,18 +1,18 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of go-ethereum.
+// Copyright 2017 The go-burnout Authors
+// This file is part of go-burnout.
//
-// go-ethereum is free software: you can redistribute it and/or modify
+// go-burnout is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// go-ethereum is distributed in the hope that it will be useful,
+// go-burnout is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// 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 go-ethereum. If not, see .
+// along with go-burnout. If not, see .
package main
@@ -27,16 +27,16 @@ import (
goruntime "runtime"
- "github.com/ethereum/go-ethereum/cmd/evm/internal/compiler"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/core/vm/runtime"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/burnout/go-burnout/cmd/evm/internal/compiler"
+ "github.com/burnout/go-burnout/cmd/utils"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/core"
+ "github.com/burnout/go-burnout/core/state"
+ "github.com/burnout/go-burnout/core/vm"
+ "github.com/burnout/go-burnout/core/vm/runtime"
+ "github.com/burnout/go-burnout/brndb"
+ "github.com/burnout/go-burnout/log"
+ "github.com/burnout/go-burnout/params"
cli "gopkg.in/urfave/cli.v1"
)
@@ -99,7 +99,7 @@ func runCmd(ctx *cli.Context) error {
_, statedb = gen.ToBlock()
chainConfig = gen.Config
} else {
- db, _ := ethdb.NewMemDatabase()
+ db, _ := brndb.NewMemDatabase()
statedb, _ = state.New(common.Hash{}, state.NewDatabase(db))
}
if ctx.GlobalString(SenderFlag.Name) != "" {
diff --git a/cmd/evm/staterunner.go b/cmd/evm/staterunner.go
index 3a4cc51c03..731838659b 100644
--- a/cmd/evm/staterunner.go
+++ b/cmd/evm/staterunner.go
@@ -1,18 +1,18 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of go-ethereum.
+// Copyright 2017 The go-burnout Authors
+// This file is part of go-burnout.
//
-// go-ethereum is free software: you can redistribute it and/or modify
+// go-burnout is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// go-ethereum is distributed in the hope that it will be useful,
+// go-burnout is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// 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 go-ethereum. If not, see .
+// along with go-burnout. If not, see .
package main
@@ -23,10 +23,10 @@ import (
"io/ioutil"
"os"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/tests"
+ "github.com/burnout/go-burnout/core/state"
+ "github.com/burnout/go-burnout/core/vm"
+ "github.com/burnout/go-burnout/log"
+ "github.com/burnout/go-burnout/tests"
cli "gopkg.in/urfave/cli.v1"
)
@@ -50,7 +50,7 @@ func stateTestCmd(ctx *cli.Context) error {
if len(ctx.Args().First()) == 0 {
return errors.New("path-to-test argument required")
}
- // Configure the go-ethereum logger
+ // Configure the go-burnout logger
glogger := log.NewGlogHandler(log.StreamHandler(os.Stderr, log.TerminalFormat(false)))
glogger.Verbosity(log.Lvl(ctx.GlobalInt(VerbosityFlag.Name)))
log.Root().SetHandler(glogger)
diff --git a/cmd/faucet/faucet.go b/cmd/faucet/faucet.go
index 8cd62441ed..5afcb6aa02 100644
--- a/cmd/faucet/faucet.go
+++ b/cmd/faucet/faucet.go
@@ -1,18 +1,18 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of go-ethereum.
+// Copyright 2017 The go-burnout Authors
+// This file is part of go-burnout.
//
-// go-ethereum is free software: you can redistribute it and/or modify
+// go-burnout is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// go-ethereum is distributed in the hope that it will be useful,
+// go-burnout is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// 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 go-ethereum. If not, see .
+// along with go-burnout. If not, see .
// faucet is a Ether faucet backed by a light client.
package main
@@ -38,23 +38,23 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/eth"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/ethclient"
- "github.com/ethereum/go-ethereum/ethstats"
- "github.com/ethereum/go-ethereum/les"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/discover"
- "github.com/ethereum/go-ethereum/p2p/discv5"
- "github.com/ethereum/go-ethereum/p2p/nat"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/burnout/go-burnout/accounts"
+ "github.com/burnout/go-burnout/accounts/keystore"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/core"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/brn"
+ "github.com/burnout/go-burnout/brn/downloader"
+ "github.com/burnout/go-burnout/brnclient"
+ "github.com/burnout/go-burnout/brnstats"
+ "github.com/burnout/go-burnout/les"
+ "github.com/burnout/go-burnout/log"
+ "github.com/burnout/go-burnout/node"
+ "github.com/burnout/go-burnout/p2p"
+ "github.com/burnout/go-burnout/p2p/discover"
+ "github.com/burnout/go-burnout/p2p/discv5"
+ "github.com/burnout/go-burnout/p2p/nat"
+ "github.com/burnout/go-burnout/params"
"golang.org/x/net/websocket"
)
@@ -63,8 +63,8 @@ var (
apiPortFlag = flag.Int("apiport", 8080, "Listener port for the HTTP API connection")
ethPortFlag = flag.Int("ethport", 30303, "Listener port for the devp2p connection")
bootFlag = flag.String("bootnodes", "", "Comma separated bootnode enode URLs to seed with")
- netFlag = flag.Uint64("network", 0, "Network ID to use for the Ethereum protocol")
- statsFlag = flag.String("ethstats", "", "Ethstats network monitoring auth string")
+ netFlag = flag.Uint64("network", 0, "Network ID to use for the Burnout protocol")
+ statsFlag = flag.String("brnstats", "", "Ethstats network monitoring auth string")
netnameFlag = flag.String("faucet.name", "", "Network name to assign to the faucet")
payoutFlag = flag.Int("faucet.amount", 1, "Number of Ethers to pay out per user request")
@@ -80,7 +80,7 @@ var (
captchaToken = flag.String("captcha.token", "", "Recaptcha site key to authenticate client side")
captchaSecret = flag.String("captcha.secret", "", "Recaptcha secret key to authenticate server side")
- logFlag = flag.Int("loglevel", 3, "Log level to use for Ethereum and the faucet")
+ logFlag = flag.Int("loglevel", 3, "Log level to use for Burnout and the faucet")
)
var (
@@ -182,16 +182,16 @@ func main() {
// request represents an accepted funding request.
type request struct {
Username string `json:"username"` // GitHub user for displaying an avatar
- Account common.Address `json:"account"` // Ethereum address being funded
+ Account common.Address `json:"account"` // Burnout address being funded
Time time.Time `json:"time"` // Timestamp when te request was accepted
Tx *types.Transaction `json:"tx"` // Transaction funding the account
}
-// faucet represents a crypto faucet backed by an Ethereum light client.
+// faucet represents a crypto faucet backed by an Burnout light client.
type faucet struct {
config *params.ChainConfig // Chain configurations for signing
- stack *node.Node // Ethereum protocol stack
- client *ethclient.Client // Client connection to the Ethereum chain
+ stack *node.Node // Burnout protocol stack
+ client *brnclient.Client // Client connection to the Burnout chain
index []byte // Index page to serve up on the web
keystore *keystore.KeyStore // Keystore containing the single signer
@@ -226,9 +226,9 @@ func newFaucet(genesis *core.Genesis, port int, enodes []*discv5.Node, network u
if err != nil {
return nil, err
}
- // Assemble the Ethereum light client protocol
+ // Assemble the Burnout light client protocol
if err := stack.Register(func(ctx *node.ServiceContext) (node.Service, error) {
- cfg := eth.DefaultConfig
+ cfg := brn.DefaultConfig
cfg.SyncMode = downloader.LightSync
cfg.NetworkId = network
cfg.Genesis = genesis
@@ -236,12 +236,12 @@ func newFaucet(genesis *core.Genesis, port int, enodes []*discv5.Node, network u
}); err != nil {
return nil, err
}
- // Assemble the ethstats monitoring and reporting service'
+ // Assemble the brnstats monitoring and reporting service'
if stats != "" {
if err := stack.Register(func(ctx *node.ServiceContext) (node.Service, error) {
- var serv *les.LightEthereum
+ var serv *les.LightBurnout
ctx.Service(&serv)
- return ethstats.New(stats, nil, serv)
+ return brnstats.New(stats, nil, serv)
}); err != nil {
return nil, err
}
@@ -260,7 +260,7 @@ func newFaucet(genesis *core.Genesis, port int, enodes []*discv5.Node, network u
stack.Stop()
return nil, err
}
- client := ethclient.NewClient(api)
+ client := brnclient.NewClient(api)
return &faucet{
config: genesis.Config,
@@ -274,7 +274,7 @@ func newFaucet(genesis *core.Genesis, port int, enodes []*discv5.Node, network u
}, nil
}
-// close terminates the Ethereum connection and tears down the faucet.
+// close terminates the Burnout connection and tears down the faucet.
func (f *faucet) close() error {
return f.stack.Stop()
}
@@ -410,7 +410,7 @@ func (f *faucet) apiHandler(conn *websocket.Conn) {
websocket.JSON.Send(conn, map[string]string{"error": "Anonymous Gists not allowed"})
continue
}
- // Iterate over all the files and look for Ethereum addresses
+ // Iterate over all the files and look for Burnout addresses
var address common.Address
for _, file := range gist.Files {
content := strings.TrimSpace(file.Content)
@@ -419,7 +419,7 @@ func (f *faucet) apiHandler(conn *websocket.Conn) {
}
}
if address == (common.Address{}) {
- websocket.JSON.Send(conn, map[string]string{"error": "No Ethereum address found to fund"})
+ websocket.JSON.Send(conn, map[string]string{"error": "No Burnout address found to fund"})
continue
}
// Validate the user's existence since the API is unhelpful here
diff --git a/cmd/faucet/faucet.html b/cmd/faucet/faucet.html
index 56dd376236..b2a4454397 100644
--- a/cmd/faucet/faucet.html
+++ b/cmd/faucet/faucet.html
@@ -49,7 +49,7 @@
This Ether faucet is running on the {{.Network}} network. To prevent malicious actors from exhausting all available funds or accumulating enough Ether to mount long running spam attacks, requests are tied to GitHub accounts. Anyone having a GitHub account may request funds within the permitted limits.
-
To request funds, simply create a GitHub Gist with your Ethereum address pasted into the contents (the file name doesn't matter), copy paste the gists URL into the above input box and fire away! You can track the current pending requests below the input field to see how much you have to wait until your turn comes.
+
To request funds, simply create a GitHub Gist with your Burnout address pasted into the contents (the file name doesn't matter), copy paste the gists URL into the above input box and fire away! You can track the current pending requests below the input field to see how much you have to wait until your turn comes.
{{if .Recaptcha}}The faucet is running invisible reCaptcha protection against bots.{{end}}
diff --git a/cmd/geth/accountcmd.go b/cmd/geth/accountcmd.go
index 0f53c92b0a..6e22415c6b 100644
--- a/cmd/geth/accountcmd.go
+++ b/cmd/geth/accountcmd.go
@@ -1,18 +1,18 @@
-// Copyright 2016 The go-ethereum Authors
-// This file is part of go-ethereum.
+// Copyright 2016 The go-burnout Authors
+// This file is part of go-burnout.
//
-// go-ethereum is free software: you can redistribute it and/or modify
+// go-burnout is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// go-ethereum is distributed in the hope that it will be useful,
+// go-burnout is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// 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 go-ethereum. If not, see .
+// along with go-burnout. If not, see .
package main
@@ -20,19 +20,19 @@ import (
"fmt"
"io/ioutil"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/console"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/burnout/go-burnout/accounts"
+ "github.com/burnout/go-burnout/accounts/keystore"
+ "github.com/burnout/go-burnout/cmd/utils"
+ "github.com/burnout/go-burnout/console"
+ "github.com/burnout/go-burnout/crypto"
+ "github.com/burnout/go-burnout/log"
"gopkg.in/urfave/cli.v1"
)
var (
walletCommand = cli.Command{
Name: "wallet",
- Usage: "Manage Ethereum presale wallets",
+ Usage: "Manage Burnout presale wallets",
ArgsUsage: "",
Category: "ACCOUNT COMMANDS",
Description: `
@@ -45,7 +45,7 @@ passwordfile as argument containing the wallet password in plaintext.`,
{
Name: "import",
- Usage: "Import Ethereum presale wallet",
+ Usage: "Import Burnout presale wallet",
ArgsUsage: "",
Action: utils.MigrateFlags(importWallet),
Category: "ACCOUNT COMMANDS",
@@ -86,7 +86,7 @@ Note that exporting your key in unencrypted format is NOT supported.
Keys are stored under /keystore.
It is safe to transfer the entire directory or the individual keys therein
-between ethereum nodes by simply copying.
+between burnout nodes by simply copying.
Make sure you backup your keys regularly.`,
Subcommands: []cli.Command{
@@ -183,7 +183,7 @@ For non-interactive use the passphrase can be specified with the -password flag:
geth account import [options]
Note:
-As you can directly copy your encrypted accounts to another ethereum instance,
+As you can directly copy your encrypted accounts to another burnout instance,
this import mechanism is not needed when you transfer an account between
nodes.
`,
diff --git a/cmd/geth/accountcmd_test.go b/cmd/geth/accountcmd_test.go
index 66e3e02a4e..16a68b7eed 100644
--- a/cmd/geth/accountcmd_test.go
+++ b/cmd/geth/accountcmd_test.go
@@ -1,18 +1,18 @@
-// Copyright 2016 The go-ethereum Authors
-// This file is part of go-ethereum.
+// Copyright 2016 The go-burnout Authors
+// This file is part of go-burnout.
//
-// go-ethereum is free software: you can redistribute it and/or modify
+// go-burnout is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// go-ethereum is distributed in the hope that it will be useful,
+// go-burnout is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// 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 go-ethereum. If not, see .
+// along with go-burnout. If not, see .
package main
@@ -173,7 +173,7 @@ Fatal: Failed to unlock account f466859ead1932d743d622cb74fc058882e8648a (could
`)
}
-// https://github.com/ethereum/go-ethereum/issues/1785
+// https://github.com/burnout/go-burnout/issues/1785
func TestUnlockFlagMultiIndex(t *testing.T) {
datadir := tmpDatadirWithKeystore(t)
geth := runGeth(t,
diff --git a/cmd/geth/bugcmd.go b/cmd/geth/bugcmd.go
index ce9dbe6c0a..14beaa85c7 100644
--- a/cmd/geth/bugcmd.go
+++ b/cmd/geth/bugcmd.go
@@ -1,18 +1,18 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of go-ethereum.
+// Copyright 2017 The go-burnout Authors
+// This file is part of go-burnout.
//
-// go-ethereum is free software: you can redistribute it and/or modify
+// go-burnout is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// go-ethereum is distributed in the hope that it will be useful,
+// go-burnout is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// 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 go-ethereum. If not, see .
+// along with go-burnout. If not, see .
package main
@@ -26,10 +26,10 @@ import (
"runtime"
"strings"
- "github.com/ethereum/go-ethereum/cmd/internal/browser"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/burnout/go-burnout/cmd/internal/browser"
+ "github.com/burnout/go-burnout/params"
- "github.com/ethereum/go-ethereum/cmd/utils"
+ "github.com/burnout/go-burnout/cmd/utils"
cli "gopkg.in/urfave/cli.v1"
)
@@ -41,9 +41,9 @@ var bugCommand = cli.Command{
Category: "MISCELLANEOUS COMMANDS",
}
-const issueUrl = "https://github.com/ethereum/go-ethereum/issues/new"
+const issueUrl = "https://github.com/burnout/go-burnout/issues/new"
-// reportBug reports a bug by opening a new URL to the go-ethereum GH issue
+// reportBug reports a bug by opening a new URL to the go-burnout GH issue
// tracker and setting default values as the issue body.
func reportBug(ctx *cli.Context) error {
// execute template and write contents to buff
diff --git a/cmd/geth/chaincmd.go b/cmd/geth/chaincmd.go
index 12bc1d7c66..ff94606c15 100644
--- a/cmd/geth/chaincmd.go
+++ b/cmd/geth/chaincmd.go
@@ -1,18 +1,18 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of go-ethereum.
+// Copyright 2015 The go-burnout Authors
+// This file is part of go-burnout.
//
-// go-ethereum is free software: you can redistribute it and/or modify
+// go-burnout is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// go-ethereum is distributed in the hope that it will be useful,
+// go-burnout is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// 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 go-ethereum. If not, see .
+// along with go-burnout. If not, see .
package main
@@ -25,15 +25,15 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/console"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/burnout/go-burnout/cmd/utils"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/console"
+ "github.com/burnout/go-burnout/core"
+ "github.com/burnout/go-burnout/core/state"
+ "github.com/burnout/go-burnout/core/types"
+ "github.com/burnout/go-burnout/brndb"
+ "github.com/burnout/go-burnout/log"
+ "github.com/burnout/go-burnout/trie"
"github.com/syndtr/goleveldb/leveldb/util"
"gopkg.in/urfave/cli.v1"
)
@@ -117,7 +117,7 @@ Remove blockchain and state databases`,
Category: "BLOCKCHAIN COMMANDS",
Description: `
The arguments are interpreted as block numbers or hashes.
-Use "ethereum dump 0" to dump the genesis block.`,
+Use "burnout dump 0" to dump the genesis block.`,
}
)
@@ -196,7 +196,7 @@ func importChain(ctx *cli.Context) error {
fmt.Printf("Import done in %v.\n\n", time.Since(start))
// Output pre-compaction stats mostly to see the import trashing
- db := chainDb.(*ethdb.LDBDatabase)
+ db := chainDb.(*brndb.LDBDatabase)
stats, err := db.LDB().GetProperty("leveldb.stats")
if err != nil {
diff --git a/cmd/geth/config.go b/cmd/geth/config.go
index d3600f1416..43e2af97ee 100644
--- a/cmd/geth/config.go
+++ b/cmd/geth/config.go
@@ -1,18 +1,18 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of go-ethereum.
+// Copyright 2017 The go-burnout Authors
+// This file is part of go-burnout.
//
-// go-ethereum is free software: you can redistribute it and/or modify
+// go-burnout is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// go-ethereum is distributed in the hope that it will be useful,
+// go-burnout is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// 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 go-ethereum. If not, see .
+// along with go-burnout. If not, see .
package main
@@ -28,12 +28,12 @@ import (
cli "gopkg.in/urfave/cli.v1"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/contracts/release"
- "github.com/ethereum/go-ethereum/eth"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/params"
- whisper "github.com/ethereum/go-ethereum/whisper/whisperv5"
+ "github.com/burnout/go-burnout/cmd/utils"
+ "github.com/burnout/go-burnout/contracts/release"
+ "github.com/burnout/go-burnout/brn"
+ "github.com/burnout/go-burnout/node"
+ "github.com/burnout/go-burnout/params"
+ whisper "github.com/burnout/go-burnout/whisper/whisperv5"
"github.com/naoina/toml"
)
@@ -76,7 +76,7 @@ type ethstatsConfig struct {
}
type gethConfig struct {
- Eth eth.Config
+ Eth brn.Config
Shh whisper.Config
Node node.Config
Ethstats ethstatsConfig
@@ -101,8 +101,8 @@ func defaultNodeConfig() node.Config {
cfg := node.DefaultConfig
cfg.Name = clientIdentifier
cfg.Version = params.VersionWithCommit(gitCommit)
- cfg.HTTPModules = append(cfg.HTTPModules, "eth", "shh")
- cfg.WSModules = append(cfg.WSModules, "eth", "shh")
+ cfg.HTTPModules = append(cfg.HTTPModules, "brn", "shh")
+ cfg.WSModules = append(cfg.WSModules, "brn", "shh")
cfg.IPCPath = "geth.ipc"
return cfg
}
@@ -110,7 +110,7 @@ func defaultNodeConfig() node.Config {
func makeConfigNode(ctx *cli.Context) (*node.Node, gethConfig) {
// Load defaults.
cfg := gethConfig{
- Eth: eth.DefaultConfig,
+ Eth: brn.DefaultConfig,
Shh: whisper.DefaultConfig,
Node: defaultNodeConfig(),
}
@@ -166,7 +166,7 @@ func makeFullNode(ctx *cli.Context) *node.Node {
utils.RegisterShhService(stack, &cfg.Shh)
}
- // Add the Ethereum Stats daemon if requested.
+ // Add the Burnout Stats daemon if requested.
if cfg.Ethstats.URL != "" {
utils.RegisterEthStatsService(stack, cfg.Ethstats.URL)
}
diff --git a/cmd/geth/consolecmd.go b/cmd/geth/consolecmd.go
index 2bb452d736..85a37e4e77 100644
--- a/cmd/geth/consolecmd.go
+++ b/cmd/geth/consolecmd.go
@@ -1,18 +1,18 @@
-// Copyright 2016 The go-ethereum Authors
-// This file is part of go-ethereum.
+// Copyright 2016 The go-burnout Authors
+// This file is part of go-burnout.
//
-// go-ethereum is free software: you can redistribute it and/or modify
+// go-burnout is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// go-ethereum is distributed in the hope that it will be useful,
+// go-burnout is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// 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 go-ethereum. If not, see .
+// along with go-burnout. If not, see .
package main
@@ -21,10 +21,10 @@ import (
"os/signal"
"strings"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/console"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/burnout/go-burnout/cmd/utils"
+ "github.com/burnout/go-burnout/console"
+ "github.com/burnout/go-burnout/node"
+ "github.com/burnout/go-burnout/rpc"
"gopkg.in/urfave/cli.v1"
)
@@ -40,7 +40,7 @@ var (
Description: `
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/ethereum/go-ethereum/wiki/Javascipt-Console.`,
+See https://github.com/burnout/go-burnout/wiki/Javascipt-Console.`,
}
attachCommand = cli.Command{
@@ -53,7 +53,7 @@ See https://github.com/ethereum/go-ethereum/wiki/Javascipt-Console.`,
Description: `
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/ethereum/go-ethereum/wiki/Javascipt-Console.
+See https://github.com/burnout/go-burnout/wiki/Javascipt-Console.
This command allows to open a console on a running geth node.`,
}
@@ -66,7 +66,7 @@ This command allows to open a console on a running geth node.`,
Category: "CONSOLE COMMANDS",
Description: `
The JavaScript VM exposes a node admin interface as well as the Ðapp
-JavaScript API. See https://github.com/ethereum/go-ethereum/wiki/Javascipt-Console`,
+JavaScript API. See https://github.com/burnout/go-burnout/wiki/Javascipt-Console`,
}
)
diff --git a/cmd/geth/consolecmd_test.go b/cmd/geth/consolecmd_test.go
index 258b9e6dd9..9d1b711fc9 100644
--- a/cmd/geth/consolecmd_test.go
+++ b/cmd/geth/consolecmd_test.go
@@ -1,18 +1,18 @@
-// Copyright 2016 The go-ethereum Authors
-// This file is part of go-ethereum.
+// Copyright 2016 The go-burnout Authors
+// This file is part of go-burnout.
//
-// go-ethereum is free software: you can redistribute it and/or modify
+// go-burnout is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// go-ethereum is distributed in the hope that it will be useful,
+// go-burnout is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// 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 go-ethereum. If not, see .
+// along with go-burnout. If not, see .
package main
@@ -27,12 +27,12 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/burnout/go-burnout/params"
)
const (
- ipcAPIs = "admin:1.0 debug:1.0 eth:1.0 miner:1.0 net:1.0 personal:1.0 rpc:1.0 shh:1.0 txpool:1.0 web3:1.0"
- httpAPIs = "eth:1.0 net:1.0 rpc:1.0 web3:1.0"
+ ipcAPIs = "admin:1.0 debug:1.0 brn:1.0 miner:1.0 net:1.0 personal:1.0 rpc:1.0 shh:1.0 txpool:1.0 web3:1.0"
+ httpAPIs = "brn:1.0 net:1.0 rpc:1.0 web3:1.0"
)
// Tests that a node embedded within a console can be started up properly and
@@ -75,7 +75,7 @@ func TestIPCAttachWelcome(t *testing.T) {
coinbase := "0x8605cdbbdb6d264aa742e77020dcbc58fcdce182"
var ipc string
if runtime.GOOS == "windows" {
- ipc = `\\.\pipe\geth` + strconv.Itoa(trulyRandInt(100000, 999999))
+ ipc = `\\.\pipe\gbrn` + strconv.Itoa(trulyRandInt(100000, 999999))
} else {
ws := tmpdir(t)
defer os.RemoveAll(ws)
diff --git a/cmd/geth/dao_test.go b/cmd/geth/dao_test.go
index a8dbc51630..717e7d945c 100644
--- a/cmd/geth/dao_test.go
+++ b/cmd/geth/dao_test.go
@@ -1,18 +1,18 @@
-// Copyright 2016 The go-ethereum Authors
-// This file is part of go-ethereum.
+// Copyright 2016 The go-burnout Authors
+// This file is part of go-burnout.
//
-// go-ethereum is free software: you can redistribute it and/or modify
+// go-burnout is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// go-ethereum is distributed in the hope that it will be useful,
+// go-burnout is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// 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 go-ethereum. If not, see .
+// along with go-burnout. If not, see .
package main
@@ -23,10 +23,10 @@ import (
"path/filepath"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/core"
+ "github.com/burnout/go-burnout/brndb"
+ "github.com/burnout/go-burnout/params"
)
// Genesis block for nodes which don't care about the DAO fork (i.e. not configured)
@@ -121,7 +121,7 @@ func testDAOForkBlockNewChain(t *testing.T, test int, genesis string, expectBloc
}
// Retrieve the DAO config flag from the database
path := filepath.Join(datadir, "geth", "chaindata")
- db, err := ethdb.NewLDBDatabase(path, 0, 0)
+ db, err := brndb.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/geth/genesis_test.go
index a00ae00c19..d1ab926337 100644
--- a/cmd/geth/genesis_test.go
+++ b/cmd/geth/genesis_test.go
@@ -1,18 +1,18 @@
-// Copyright 2016 The go-ethereum Authors
-// This file is part of go-ethereum.
+// Copyright 2016 The go-burnout Authors
+// This file is part of go-burnout.
//
-// go-ethereum is free software: you can redistribute it and/or modify
+// go-burnout is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// go-ethereum is distributed in the hope that it will be useful,
+// go-burnout is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// 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 go-ethereum. If not, see .
+// along with go-burnout. If not, see .
package main
@@ -41,7 +41,7 @@ var customGenesisTests = []struct {
"parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"timestamp" : "0x00"
}`,
- query: "eth.getBlock(0).nonce",
+ query: "brn.getBlock(0).nonce",
result: "0x0000000000000042",
},
// Genesis file with an empty chain configuration (ensure missing fields work)
@@ -58,7 +58,7 @@ var customGenesisTests = []struct {
"timestamp" : "0x00",
"config" : {}
}`,
- query: "eth.getBlock(0).nonce",
+ query: "brn.getBlock(0).nonce",
result: "0x0000000000000042",
},
// Genesis file with specific chain configurations
@@ -79,7 +79,7 @@ var customGenesisTests = []struct {
"daoForkSupport" : true
},
}`,
- query: "eth.getBlock(0).nonce",
+ query: "brn.getBlock(0).nonce",
result: "0x0000000000000042",
},
}
diff --git a/cmd/geth/main.go b/cmd/geth/main.go
index 8166c9ce80..846729ce4c 100644
--- a/cmd/geth/main.go
+++ b/cmd/geth/main.go
@@ -1,20 +1,20 @@
-// Copyright 2014 The go-ethereum Authors
-// This file is part of go-ethereum.
+// Copyright 2014 The go-burnout Authors
+// This file is part of go-burnout.
//
-// go-ethereum is free software: you can redistribute it and/or modify
+// go-burnout is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// go-ethereum is distributed in the hope that it will be useful,
+// go-burnout is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// 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 go-ethereum. If not, see .
+// along with go-burnout. If not, see .
-// geth is the official command-line client for Ethereum.
+// geth is the official command-line client for Burnout.
package main
import (
@@ -25,17 +25,17 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/console"
- "github.com/ethereum/go-ethereum/eth"
- "github.com/ethereum/go-ethereum/ethclient"
- "github.com/ethereum/go-ethereum/internal/debug"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/node"
+ "github.com/burnout/go-burnout/accounts"
+ "github.com/burnout/go-burnout/accounts/keystore"
+ "github.com/burnout/go-burnout/cmd/utils"
+ "github.com/burnout/go-burnout/common"
+ "github.com/burnout/go-burnout/console"
+ "github.com/burnout/go-burnout/brn"
+ "github.com/burnout/go-burnout/brnclient"
+ "github.com/burnout/go-burnout/internal/debug"
+ "github.com/burnout/go-burnout/log"
+ "github.com/burnout/go-burnout/metrics"
+ "github.com/burnout/go-burnout/node"
"gopkg.in/urfave/cli.v1"
)
@@ -46,10 +46,10 @@ const (
var (
// Git SHA1 commit hash of the release (set via linker flags)
gitCommit = ""
- // Ethereum address of the Geth release oracle.
+ // Burnout address of the Geth release oracle.
relOracle = common.HexToAddress("0xfa7b9770ca4cb04296cac84f37736d4041251cdf")
// The app that holds all commands and flags.
- app = utils.NewApp(gitCommit, "the go-ethereum command line interface")
+ app = utils.NewApp(gitCommit, "the go-burnout command line interface")
// flags that configure the node
nodeFlags = []cli.Flag{
utils.IdentityFlag,
@@ -140,7 +140,7 @@ func init() {
// Initialize the CLI app and start Geth
app.Action = geth
app.HideVersion = true // we have a command to print the version
- app.Copyright = "Copyright 2013-2017 The go-ethereum Authors"
+ app.Copyright = "Copyright 2013-2017 The go-burnout Authors"
app.Commands = []cli.Command{
// See chaincmd.go:
initCommand,
@@ -237,7 +237,7 @@ func startNode(ctx *cli.Context, stack *node.Node) {
if err != nil {
utils.Fatalf("Failed to attach to self: %v", err)
}
- stateReader := ethclient.NewClient(rpcClient)
+ stateReader := brnclient.NewClient(rpcClient)
// Open any wallets already attached
for _, wallet := range stack.AccountManager().Wallets() {
@@ -270,23 +270,23 @@ func startNode(ctx *cli.Context, stack *node.Node) {
}()
// Start auxiliary services if enabled
if ctx.GlobalBool(utils.MiningEnabledFlag.Name) {
- // Mining only makes sense if a full Ethereum node is running
- var ethereum *eth.Ethereum
- if err := stack.Service(ðereum); err != nil {
- utils.Fatalf("ethereum service not running: %v", err)
+ // Mining only makes sense if a full Burnout node is running
+ var burnout *brn.Burnout
+ if err := stack.Service(&burnout); err != nil {
+ utils.Fatalf("burnout service not running: %v", err)
}
// Use a reduced number of threads if requested
if threads := ctx.GlobalInt(utils.MinerThreadsFlag.Name); threads > 0 {
type threaded interface {
SetThreads(threads int)
}
- if th, ok := ethereum.Engine().(threaded); ok {
+ if th, ok := burnout.Engine().(threaded); ok {
th.SetThreads(threads)
}
}
// Set the gas price to the limits from the CLI and start mining
- ethereum.TxPool().SetGasPrice(utils.GlobalBig(ctx, utils.GasPriceFlag.Name))
- if err := ethereum.StartMining(true); err != nil {
+ burnout.TxPool().SetGasPrice(utils.GlobalBig(ctx, utils.GasPriceFlag.Name))
+ if err := burnout.StartMining(true); err != nil {
utils.Fatalf("Failed to start mining: %v", err)
}
}
diff --git a/cmd/geth/misccmd.go b/cmd/geth/misccmd.go
index 2e68dcda32..d87d6cd48f 100644
--- a/cmd/geth/misccmd.go
+++ b/cmd/geth/misccmd.go
@@ -1,18 +1,18 @@
-// Copyright 2016 The go-ethereum Authors
-// This file is part of go-ethereum.
+// Copyright 2016 The go-burnout Authors
+// This file is part of go-burnout.
//
-// go-ethereum is free software: you can redistribute it and/or modify
+// go-burnout is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// go-ethereum is distributed in the hope that it will be useful,
+// go-burnout is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// 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 go-ethereum. If not, see .
+// along with go-burnout. If not, see .
package main
@@ -23,10 +23,10 @@ import (
"strconv"
"strings"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/eth"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/burnout/go-burnout/cmd/utils"
+ "github.com/burnout/go-burnout/consensus/ethash"
+ "github.com/burnout/go-burnout/brn"
+ "github.com/burnout/go-burnout/params"
"gopkg.in/urfave/cli.v1"
)
@@ -113,8 +113,8 @@ func version(ctx *cli.Context) error {
fmt.Println("Git Commit:", gitCommit)
}
fmt.Println("Architecture:", runtime.GOARCH)
- fmt.Println("Protocol Versions:", eth.ProtocolVersions)
- fmt.Println("Network Id:", eth.DefaultConfig.NetworkId)
+ fmt.Println("Protocol Versions:", brn.ProtocolVersions)
+ fmt.Println("Network Id:", brn.DefaultConfig.NetworkId)
fmt.Println("Go Version:", runtime.Version())
fmt.Println("Operating System:", runtime.GOOS)
fmt.Printf("GOPATH=%s\n", os.Getenv("GOPATH"))
diff --git a/cmd/geth/monitorcmd.go b/cmd/geth/monitorcmd.go
index cd19caa276..dcdcc3ac1e 100644
--- a/cmd/geth/monitorcmd.go
+++ b/cmd/geth/monitorcmd.go
@@ -1,18 +1,18 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of go-ethereum.
+// Copyright 2015 The go-burnout Authors
+// This file is part of go-burnout.
//
-// go-ethereum is free software: you can redistribute it and/or modify
+// go-burnout is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// go-ethereum is distributed in the hope that it will be useful,
+// go-burnout is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// 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 go-ethereum. If not, see .
+// along with go-burnout. If not, see .
package main
@@ -25,9 +25,9 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/burnout/go-burnout/cmd/utils"
+ "github.com/burnout/go-burnout/node"
+ "github.com/burnout/go-burnout/rpc"
"github.com/gizak/termui"
"gopkg.in/urfave/cli.v1"
)
@@ -73,7 +73,7 @@ func monitor(ctx *cli.Context) error {
client *rpc.Client
err error
)
- // Attach to an Ethereum node over IPC or RPC
+ // Attach to an Burnout 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)
diff --git a/cmd/geth/run_test.go b/cmd/geth/run_test.go
index da82facac3..45c569f44e 100644
--- a/cmd/geth/run_test.go
+++ b/cmd/geth/run_test.go
@@ -1,18 +1,18 @@
-// Copyright 2016 The go-ethereum Authors
-// This file is part of go-ethereum.
+// Copyright 2016 The go-burnout Authors
+// This file is part of go-burnout.
//
-// go-ethereum is free software: you can redistribute it and/or modify
+// go-burnout is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// go-ethereum is distributed in the hope that it will be useful,
+// go-burnout is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// 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 go-ethereum. If not, see .
+// along with go-burnout. If not, see .
package main
@@ -23,7 +23,7 @@ import (
"testing"
"github.com/docker/docker/pkg/reexec"
- "github.com/ethereum/go-ethereum/internal/cmdtest"
+ "github.com/burnout/go-burnout/internal/cmdtest"
)
func tmpdir(t *testing.T) string {
diff --git a/cmd/geth/usage.go b/cmd/geth/usage.go
index 80861d8525..04b4e641ce 100644
--- a/cmd/geth/usage.go
+++ b/cmd/geth/usage.go
@@ -1,18 +1,18 @@
-// Copyright 2015 The go-ethereum Authors
-// This file is part of go-ethereum.
+// Copyright 2015 The go-burnout Authors
+// This file is part of go-burnout.
//
-// go-ethereum is free software: you can redistribute it and/or modify
+// go-burnout is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// go-ethereum is distributed in the hope that it will be useful,
+// go-burnout is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// 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 go-ethereum. If not, see .
+// along with go-burnout. If not, see .
// Contains the geth command usage template and generator.
@@ -22,8 +22,8 @@ import (
"io"
"sort"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/internal/debug"
+ "github.com/burnout/go-burnout/cmd/utils"
+ "github.com/burnout/go-burnout/internal/debug"
"gopkg.in/urfave/cli.v1"
)
@@ -31,7 +31,7 @@ import (
var AppHelpTemplate = `NAME:
{{.App.Name}} - {{.App.Usage}}
- Copyright 2013-2017 The go-ethereum Authors
+ Copyright 2013-2017 The go-burnout Authors
USAGE:
{{.App.HelpName}} [options]{{if .App.Commands}} command [command options]{{end}} {{if .App.ArgsUsage}}{{.App.ArgsUsage}}{{else}}[arguments...]{{end}}
@@ -63,7 +63,7 @@ type flagGroup struct {
// AppHelpFlagGroups is the application flags, grouped by functionality.
var AppHelpFlagGroups = []flagGroup{
{
- Name: "ETHEREUM",
+ Name: "BURNOUT",
Flags: []cli.Flag{
configFileFlag,
utils.DataDirFlag,
diff --git a/cmd/p2psim/main.go b/cmd/p2psim/main.go
index 56b74d135b..a001acb219 100644
--- a/cmd/p2psim/main.go
+++ b/cmd/p2psim/main.go
@@ -29,12 +29,12 @@ import (
"strings"
"text/tabwriter"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/discover"
- "github.com/ethereum/go-ethereum/p2p/simulations"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/burnout/go-burnout/crypto"
+ "github.com/burnout/go-burnout/p2p"
+ "github.com/burnout/go-burnout/p2p/discover"
+ "github.com/burnout/go-burnout/p2p/simulations"
+ "github.com/burnout/go-burnout/p2p/simulations/adapters"
+ "github.com/burnout/go-burnout/rpc"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/puppeth/module.go b/cmd/puppeth/module.go
index b6a029a01a..dbb978c699 100644
--- a/cmd/puppeth/module.go
+++ b/cmd/puppeth/module.go
@@ -1,18 +1,18 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of go-ethereum.
+// Copyright 2017 The go-burnout Authors
+// This file is part of go-burnout.
//
-// go-ethereum is free software: you can redistribute it and/or modify
+// go-burnout is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// go-ethereum is distributed in the hope that it will be useful,
+// go-burnout is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// 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 go-ethereum. If not, see .
+// along with go-burnout. If not, see .
package main
@@ -25,7 +25,7 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/burnout/go-burnout/log"
)
var (
diff --git a/cmd/puppeth/module_dashboard.go b/cmd/puppeth/module_dashboard.go
index 1cf6cab799..dbbe046faf 100644
--- a/cmd/puppeth/module_dashboard.go
+++ b/cmd/puppeth/module_dashboard.go
@@ -1,18 +1,18 @@
-// Copyright 2017 The go-ethereum Authors
-// This file is part of go-ethereum.
+// Copyright 2017 The go-burnout Authors
+// This file is part of go-burnout.
//
-// go-ethereum is free software: you can redistribute it and/or modify
+// go-burnout is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
-// go-ethereum is distributed in the hope that it will be useful,
+// go-burnout is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// 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 go-ethereum. If not, see .
+// along with go-burnout. If not, see .
package main
@@ -24,7 +24,7 @@ import (
"path/filepath"
"strings"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/burnout/go-burnout/log"
)
// dashboardContent is the actual dashboard HTML content to serve up when users
@@ -39,7 +39,7 @@ var dashboardContent = `
- {{.NetworkTitle}}: Ethereum Testnet
+ {{.NetworkTitle}}: Burnout Testnet
@@ -82,9 +82,9 @@ var dashboardContent = `
{{if .FaucetPage}}
The Ethereum Wallet is an Electron based desktop application to manage your Ethereum accounts and funds. Beside the usual account life-cycle operations you would expect to perform, the wallet also provides a means to send transactions from your accounts and to interact with smart contracts deployed on the network.
-
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.
+
The Burnout Wallet is an Electron based desktop application to manage your Burnout accounts and funds. Beside the usual account life-cycle operations you would expect to perform, the wallet also provides a means to send transactions from your accounts and to interact with smart contracts deployed on the network.
+
Under the hood the wallet is backed by a go-burnout 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:
+
To connect with the Burnout 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:
The Mist browser is an Electron based desktop application to load and interact with Ethereum enabled third party web DApps. Beside all the functionality provided by the Ethereum Wallet, Mist is an extended web-browser where loaded pages have access to the Ethereum network via a web3.js provider, and may also interact with users' own accounts (given proper authorization and confirmation of course).
-
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.
+
The Mist browser is an Electron based desktop application to load and interact with Burnout enabled third party web DApps. Beside all the functionality provided by the Burnout Wallet, Mist is an extended web-browser where loaded pages have access to the Burnout network via a web3.js provider, and may also interact with users' own accounts (given proper authorization and confirmation of course).
+
Under the hood the browser is backed by a go-burnout 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:
Starting with the 1.5 release of go-ethereum, we've transitioned away from shipping only full blown Ethereum clients and started focusing on releasing the code as reusable packages initially for Go projects, then later for Java based Android projects too. Mobile support is still evolving, hence is bound to change often and hard, but the Ethereum network can nonetheless be accessed from Android too.
-
Under the hood the Android library is backed by a go-ethereum light node, meaning that given a not-too-old Android device, you should be able to join the network without significant issues. Certain functionality is not yet available and rough edges are bound to appear here and there, please report issues if you find any.
+
Starting with the 1.5 release of go-burnout, we've transitioned away from shipping only full blown Burnout clients and started focusing on releasing the code as reusable packages initially for Go projects, then later for Java based Android projects too. Mobile support is still evolving, hence is bound to change often and hard, but the Burnout network can nonetheless be accessed from Android too.
+
Under the hood the Android library is backed by a go-burnout light node, meaning that given a not-too-old Android device, you should be able to join the network without significant issues. Certain functionality is not yet available and rough edges are bound to appear here and there, please report issues if you find any.
-
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.*;
+
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 Burnout 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 Burnout:
+
Starting with the 1.5 release of go-ethereum, we've transitioned away from shipping only full blown Ethereum clients and started focusing on releasing the code as reusable packages initially for Go projects, then later for ObjC/Swift based iOS projects too. Mobile support is still evolving, hence is bound to change often and hard, but the Ethereum network can nonetheless be accessed from iOS too.
-
Under the hood the iOS library is backed by a go-ethereum light node, meaning that given a not-too-old Apple device, you should be able to join the network without significant issues. Certain functionality is not yet available and rough edges are bound to appear here and there, please report issues if you find any.
+
Starting with the 1.5 release of go-burnout, we've transitioned away from shipping only full blown Burnout clients and started focusing on releasing the code as reusable packages initially for Go projects, then later for ObjC/Swift based iOS projects too. Mobile support is still evolving, hence is bound to change often and hard, but the Burnout network can nonetheless be accessed from iOS too.
+
Under the hood the iOS library is backed by a go-burnout light node, meaning that given a not-too-old Apple device, you should be able to join the network without significant issues. Certain functionality is not yet available and rough edges are bound to appear here and there, please report issues if you find any.
-
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):
+
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 Burnout 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 Burnout (ObjC should be analogous):
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 is a tool to aid you in creating a new Burnout network down to the genesis block, bootnodes, signers, brnstats 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/ethereum/go-ethereum/cmd/puppeth
+
Puppeth is distributed as part of the Geth & Tools bundles, but can also be installed separately via: