This commit is contained in:
Sad Pencil 2019-02-23 05:58:19 +08:00
parent c942700427
commit 44d4b91e00
771 changed files with 3119 additions and 3711 deletions

13
.github/CODEOWNERS vendored
View file

@ -1,13 +0,0 @@
# Lines starting with '#' are comments.
# Each line is a file pattern followed by one or more owners.
accounts/usbwallet @karalabe
accounts/abi @gballet
consensus @karalabe
core/ @karalabe @holiman
eth/ @karalabe
les/ @zsfelfoldi
light/ @zsfelfoldi
mobile/ @karalabe
p2p/ @fjl @zsfelfoldi
whisper/ @gballet @gluk256

View file

@ -1,40 +0,0 @@
# Contributing
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 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) 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.
## Coding guidelines
Please make sure your contributions adhere to our coding guidelines:
* Code must adhere to the official Go
[formatting](https://golang.org/doc/effective_go.html#formatting) guidelines
(i.e. uses [gofmt](https://golang.org/cmd/gofmt/)).
* 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"
## Can I have feature X
Before you submit 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
[Wiki page](https://github.com/ethereum/go-ethereum/wiki) for more info
and help.
## Configuration, dependencies, and tests
Please see the [Developers' Guide](https://github.com/ethereum/go-ethereum/wiki/Developers'-Guide)
for more details on configuring your environment, managing project dependencies
and testing procedures.

View file

@ -1,26 +0,0 @@
Hi there,
please note that this is an issue tracker reserved for bug reports and feature requests.
For general questions please use the gitter channel or the Ethereum stack exchange at https://ethereum.stackexchange.com.
#### System information
Geth version: `geth version`
OS & Version: Windows/Linux/OSX
Commit hash : (if `develop`)
#### Expected behaviour
#### Actual behaviour
#### Steps to reproduce the behaviour
#### Backtrace
````
[backtrace]
````

View file

@ -1,11 +0,0 @@
# Number of days of inactivity before an Issue is closed for lack of response
daysUntilClose: 30
# Label requiring a response
responseRequiredLabel: "need:more-information"
# Comment to post when closing an Issue for lack of response. Set to `false` to disable
closeComment: >
This issue has been automatically closed because there has been no response
to our request for more information from the original author. With only the
information that is currently in the issue, we don't have enough information
to take action. Please reach out if you have more relevant information or
answers to our questions so that we can investigate further.

17
.github/stale.yml vendored
View file

@ -1,17 +0,0 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 366
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 42
# Issues with these labels will never be considered stale
exemptLabels:
- pinned
- security
# Label to use when marking an issue as stale
staleLabel: "status:inactive"
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false

View file

@ -1,216 +0,0 @@
language: go
go_import_path: github.com/ethereum/go-ethereum
sudo: false
matrix:
include:
- os: linux
dist: trusty
sudo: required
go: 1.10.x
script:
- sudo modprobe fuse
- sudo chmod 666 /dev/fuse
- sudo chown root:$USER /etc/fuse.conf
- go run build/ci.go install
- go run build/ci.go test -coverage $TEST_PACKAGES
# These are the latest Go versions.
- os: linux
dist: trusty
sudo: required
go: 1.11.x
script:
- sudo modprobe fuse
- sudo chmod 666 /dev/fuse
- sudo chown root:$USER /etc/fuse.conf
- go run build/ci.go install
- go run build/ci.go test -coverage $TEST_PACKAGES
- os: osx
go: 1.11.x
script:
- echo "Increase the maximum number of open file descriptors on macOS"
- NOFILE=20480
- sudo sysctl -w kern.maxfiles=$NOFILE
- sudo sysctl -w kern.maxfilesperproc=$NOFILE
- sudo launchctl limit maxfiles $NOFILE $NOFILE
- sudo launchctl limit maxfiles
- ulimit -S -n $NOFILE
- ulimit -n
- unset -f cd # workaround for https://github.com/travis-ci/travis-ci/issues/8703
- go run build/ci.go install
- go run build/ci.go test -coverage $TEST_PACKAGES
# This builder only tests code linters on latest version of Go
- os: linux
dist: trusty
go: 1.11.x
env:
- lint
git:
submodules: false # avoid cloning ethereum/tests
script:
- go run build/ci.go lint
# This builder does the Ubuntu PPA upload
- if: type = push
os: linux
dist: trusty
go: 1.11.x
env:
- ubuntu-ppa
git:
submodules: false # avoid cloning ethereum/tests
addons:
apt:
packages:
- devscripts
- debhelper
- dput
- fakeroot
- python-bzrlib
- python-paramiko
script:
- echo '|1|7SiYPr9xl3uctzovOTj4gMwAC1M=|t6ReES75Bo/PxlOPJ6/GsGbTrM0= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA0aKz5UTUndYgIGG7dQBV+HaeuEZJ2xPHo2DS2iSKvUL4xNMSAY4UguNW+pX56nAQmZKIZZ8MaEvSj6zMEDiq6HFfn5JcTlM80UwlnyKe8B8p7Nk06PPQLrnmQt5fh0HmEcZx+JU9TZsfCHPnX7MNz4ELfZE6cFsclClrKim3BHUIGq//t93DllB+h4O9LHjEUsQ1Sr63irDLSutkLJD6RXchjROXkNirlcNVHH/jwLWR5RcYilNX7S5bIkK8NlWPjsn/8Ua5O7I9/YoE97PpO6i73DTGLh5H9JN/SITwCKBkgSDWUt61uPK3Y11Gty7o2lWsBjhBUm2Y38CBsoGmBw==' >> ~/.ssh/known_hosts
- go run build/ci.go debsrc -upload ethereum/ethereum -sftp-user geth-ci -signer "Go Ethereum Linux Builder <geth-ci@ethereum.org>"
# This builder does the Linux Azure uploads
- if: type = push
os: linux
dist: trusty
sudo: required
go: 1.11.x
env:
- azure-linux
git:
submodules: false # avoid cloning ethereum/tests
addons:
apt:
packages:
- gcc-multilib
script:
# Build for the primary platforms that Trusty can manage
- 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
- go run build/ci.go archive -arch 386 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
# Switch over GCC to cross compilation (breaks 386, hence why do it here only)
- sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install gcc-arm-linux-gnueabi libc6-dev-armel-cross gcc-arm-linux-gnueabihf libc6-dev-armhf-cross gcc-aarch64-linux-gnu libc6-dev-arm64-cross
- sudo ln -s /usr/include/asm-generic /usr/include/asm
- GOARM=5 go run build/ci.go install -arch arm -cc arm-linux-gnueabi-gcc
- GOARM=5 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
- GOARM=6 go run build/ci.go install -arch arm -cc arm-linux-gnueabi-gcc
- GOARM=6 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
- GOARM=7 go run build/ci.go install -arch arm -cc arm-linux-gnueabihf-gcc
- GOARM=7 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
- go run build/ci.go install -arch arm64 -cc aarch64-linux-gnu-gcc
- go run build/ci.go archive -arch arm64 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
# This builder does the Linux Azure MIPS xgo uploads
- if: type = push
os: linux
dist: trusty
services:
- docker
go: 1.11.x
env:
- azure-linux-mips
git:
submodules: false # avoid cloning ethereum/tests
script:
- go run build/ci.go xgo --alltools -- --targets=linux/mips --ldflags '-extldflags "-static"' -v
- for bin in build/bin/*-linux-mips; do mv -f "${bin}" "${bin/-linux-mips/}"; done
- go run build/ci.go archive -arch mips -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
- go run build/ci.go xgo --alltools -- --targets=linux/mipsle --ldflags '-extldflags "-static"' -v
- for bin in build/bin/*-linux-mipsle; do mv -f "${bin}" "${bin/-linux-mipsle/}"; done
- go run build/ci.go archive -arch mipsle -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
- go run build/ci.go xgo --alltools -- --targets=linux/mips64 --ldflags '-extldflags "-static"' -v
- for bin in build/bin/*-linux-mips64; do mv -f "${bin}" "${bin/-linux-mips64/}"; done
- go run build/ci.go archive -arch mips64 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
- go run build/ci.go xgo --alltools -- --targets=linux/mips64le --ldflags '-extldflags "-static"' -v
- for bin in build/bin/*-linux-mips64le; do mv -f "${bin}" "${bin/-linux-mips64le/}"; done
- go run build/ci.go archive -arch mips64le -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
# This builder does the Android Maven and Azure uploads
- if: type = push
os: linux
dist: trusty
addons:
apt:
packages:
- oracle-java8-installer
- oracle-java8-set-default
language: android
android:
components:
- platform-tools
- tools
- android-15
- android-19
- android-24
env:
- azure-android
- maven-android
git:
submodules: false # avoid cloning ethereum/tests
before_install:
- curl https://storage.googleapis.com/golang/go1.11.5.linux-amd64.tar.gz | tar -xz
- export PATH=`pwd`/go/bin:$PATH
- export GOROOT=`pwd`/go
- export GOPATH=$HOME/go
script:
# Build the Android archive and upload it to Maven Central and Azure
- curl https://dl.google.com/android/repository/android-ndk-r17b-linux-x86_64.zip -o android-ndk-r17b.zip
- unzip -q android-ndk-r17b.zip && rm android-ndk-r17b.zip
- mv android-ndk-r17b $HOME
- export ANDROID_NDK=$HOME/android-ndk-r17b
- mkdir -p $GOPATH/src/github.com/ethereum
- ln -s `pwd` $GOPATH/src/github.com/ethereum
- 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
- if: type = push
os: osx
go: 1.11.x
env:
- azure-osx
- azure-ios
- cocoapods-ios
git:
submodules: false # avoid cloning ethereum/tests
script:
- go run build/ci.go install
- go run build/ci.go archive -type tar -signer OSX_SIGNING_KEY -upload gethstore/builds
# Build the iOS framework and upload it to CocoaPods and Azure
- gem uninstall cocoapods -a -x
- gem install cocoapods
- mv ~/.cocoapods/repos/master ~/.cocoapods/repos/master.bak
- sed -i '.bak' 's/repo.join/!repo.join/g' $(dirname `gem which cocoapods`)/cocoapods/sources_manager.rb
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then git clone --depth=1 https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master && pod setup --verbose; fi
- xctool -version
- xcrun simctl list
# Workaround for https://github.com/golang/go/issues/23749
- export CGO_CFLAGS_ALLOW='-fmodules|-fblocks|-fobjc-arc'
- go run build/ci.go xcode -signer IOS_SIGNING_KEY -deploy trunk -upload gethstore/builds
# This builder does the Azure archive purges to avoid accumulating junk
- if: type = cron
os: linux
dist: trusty
go: 1.11.x
env:
- azure-purge
git:
submodules: false # avoid cloning ethereum/tests
script:
- go run build/ci.go purge -store gethstore/builds -days 14

302
README.md
View file

@ -1,304 +1,4 @@
## Go Ethereum ## Go Ethereum 1.8 with Timing
Official golang implementation of the Ethereum protocol.
[![API Reference](
https://camo.githubusercontent.com/915b7be44ada53c290eb157634330494ebe3e30a/68747470733a2f2f676f646f632e6f72672f6769746875622e636f6d2f676f6c616e672f6764646f3f7374617475732e737667
)](https://godoc.org/github.com/ethereum/go-ethereum)
[![Go Report Card](https://goreportcard.com/badge/github.com/ethereum/go-ethereum)](https://goreportcard.com/report/github.com/ethereum/go-ethereum)
[![Travis](https://travis-ci.org/ethereum/go-ethereum.svg?branch=master)](https://travis-ci.org/ethereum/go-ethereum)
[![Discord](https://img.shields.io/badge/discord-join%20chat-blue.svg)](https://discord.gg/nthXNEv)
Automated builds are available for stable releases and the unstable master branch.
Binary archives are published at https://geth.ethereum.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)
on the wiki.
Building geth requires both a Go (version 1.9 or later) and a C compiler.
You can install them using your favourite package manager.
Once the dependencies are installed, run
make geth
or, to build the full suite of utilities:
make all
## Executables
The go-ethereum 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 isolated, 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`). |
| `swarm` | Swarm daemon and tools. This is the entrypoint for the Swarm network. `swarm --help` for command line options and subcommands. See [Swarm README](https://github.com/ethereum/go-ethereum/tree/master/swarm) for more information. |
| `puppeth` | a CLI wizard that aids in creating a new Ethereum 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
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
By far the most common scenario is people wanting to simply interact with the Ethereum 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:
```
$ geth console
```
This command will:
* Start geth in fast sync mode (default, can be changed with the `--syncmode` flag), causing it to
download more data in exchange for avoiding processing the entire history of the Ethereum network,
which is very CPU intensive.
* Start up Geth's built-in interactive [JavaScript console](https://github.com/ethereum/go-ethereum/wiki/JavaScript-Console),
(via the trailing `console` subcommand) through which you can invoke all official [`web3` methods](https://github.com/ethereum/wiki/wiki/JavaScript-API)
as well as Geth's own [management APIs](https://github.com/ethereum/go-ethereum/wiki/Management-APIs).
This tool is optional and if you leave it out you can always attach to an already running Geth instance
with `geth attach`.
### Full node on the Ethereum test network
Transitioning towards developers, if you'd like to play around with creating Ethereum 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.
```
$ geth --testnet console
```
The `console` subcommand have the exact same meaning as above and they are equally useful on the
testnet too. Please see above for their explanations if you've skipped to 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
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 <datadir>/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,
which uses different P2P bootnodes, different network IDs and genesis states.
*Note: Although there are some internal protective measures to prevent transactions from crossing
over between the main network and test network, you should make sure to always use separate accounts
for play-money and real-money. Unless you manually move accounts, Geth will by default correctly
separate the two networks and will not make any accounts available between them.*
### Full node on the Rinkeby test network
The above test network is a cross client one based on the ethash proof-of-work consensus algorithm. As such, it has certain extra overhead and is more susceptible to reorganization attacks due to the network's low difficulty / security. Go Ethereum also supports connecting to a proof-of-authority based test network called [*Rinkeby*](https://www.rinkeby.io) (operated by members of the community). This network is lighter, more secure, but is only supported by go-ethereum.
```
$ geth --rinkeby console
```
### Configuration
As an alternative to passing the numerous flags to the `geth` binary, you can also pass a configuration file via:
```
$ geth --config /path/to/your_config.toml
```
To get an idea how the file should look like you can use the `dumpconfig` subcommand to export your existing configuration:
```
$ geth --your-favourite-flags dumpconfig
```
*Note: This works only with geth v1.6.0 and above.*
#### Docker quick start
One of the quickest ways to get Ethereum up and running on your machine is by using Docker:
```
docker run -d --name ethereum-node -v /Users/alice/ethereum:/root \
-p 8545:8545 -p 30303:30303 \
ethereum/client-go
```
This will start geth in fast-sync mode with a DB memory allowance of 1GB 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.
Do not forget `--rpcaddr 0.0.0.0`, if you want to access RPC from other containers and/or hosts. By default, `geth` binds to the local interface and RPC endpoints is not accessible from the outside.
### Programatically interfacing Geth nodes
As a developer, sooner rather than later you'll want to start interacting with Geth and the Ethereum
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
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
and WS interfaces need to manually be enabled and only expose a subset of APIs due to security reasons.
These can be turned on/off and configured as you'd expect.
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")
* `--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")
* `--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")
* `--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
via HTTP, WS or IPC to a Geth node configured with the above flags and you'll need to speak [JSON-RPC](https://www.jsonrpc.org/specification)
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!
Further, all browser tabs can access locally running webservers, so malicious webpages could try to
subvert locally available APIs!**
### Operating a private network
Maintaining your own private network is more involved as a lot of configurations taken for granted in
the official networks need to be manually set up.
#### Defining the private genesis state
First, you'll need to create the genesis state of your networks, which all nodes need to be aware of
and agree upon. This consists of a small JSON file (e.g. call it `genesis.json`):
```json
{
"config": {
"chainId": 0,
"homesteadBlock": 0,
"eip155Block": 0,
"eip158Block": 0
},
"alloc" : {},
"coinbase" : "0x0000000000000000000000000000000000000000",
"difficulty" : "0x20000",
"extraData" : "",
"gasLimit" : "0x2fefd8",
"nonce" : "0x0000000000000042",
"mixhash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"timestamp" : "0x00"
}
```
The above fields should be fine for most purposes, although we'd recommend changing the `nonce` to
some random value so you prevent unknown remote nodes from being able to connect to you. If you'd
like to pre-fund some accounts for easier testing, you can populate the `alloc` field with account
configs:
```json
"alloc": {
"0x0000000000000000000000000000000000000001": {"balance": "111111111"},
"0x0000000000000000000000000000000000000002": {"balance": "222222222"}
}
```
With the genesis state defined in the above JSON file, you'll need to initialize **every** Geth node
with it prior to starting it up to ensure all blockchain parameters are correctly set:
```
$ geth init path/to/genesis.json
```
#### Creating the rendezvous point
With all nodes that you want to run initialized to the desired genesis state, you'll need to start a
bootstrap node that others can use to find each other in your network and/or over the internet. The
clean way is to configure and run a dedicated bootnode:
```
$ 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)
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.
*Note: You could also use a full fledged Geth node as a bootnode, but it's the less recommended way.*
#### Starting up your member nodes
With the bootnode operational and externally reachable (you can try `telnet <ip> <port>` to ensure
it's indeed reachable), start every subsequent Geth node pointed to the bootnode for peer discovery
via the `--bootnodes` flag. It will probably also be desirable to keep the data directory of your
private network separated, so do also specify a custom `--datadir` flag.
```
$ geth --datadir=path/to/custom/data/folder --bootnodes=<bootnode-enode-url-from-above>
```
*Note: Since your network will be completely cut off from the main and test networks, you'll also
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
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)
repository.
In a private network setting however, a single CPU miner instance is more than enough for practical
purposes as it can produce a stable stream of blocks at the correct intervals without needing heavy
resources (consider running on a single thread, no need for multiple ones either). To start a Geth
instance for mining, run it with all your usual flags, extended by:
```
$ geth <usual-flags> --mine --minerthreads=1 --etherbase=0x0000000000000000000000000000000000000000
```
Which will start mining blocks and transactions on a single CPU thread, crediting all proceedings to
the account specified by `--etherbase`. You can further tune the mining by changing the default gas
limit blocks converge to (`--targetgaslimit`) and the price transactions are accepted at (`--gasprice`).
## Contribution
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
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)
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.
Please make sure your contributions adhere to our coding guidelines:
* Code must adhere to the official Go [formatting](https://golang.org/doc/effective_go.html#formatting) guidelines (i.e. uses [gofmt](https://golang.org/cmd/gofmt/)).
* 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"
Please see the [Developers' Guide](https://github.com/ethereum/go-ethereum/wiki/Developers'-Guide)
for more details on configuring your environment, managing project dependencies and testing procedures.
## License ## License

View file

@ -26,8 +26,8 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/ethereum/go-ethereum/common" "go-ethereum-timing/common"
"github.com/ethereum/go-ethereum/crypto" "go-ethereum-timing/crypto"
) )
const jsondata = ` const jsondata = `

View file

@ -22,10 +22,10 @@ import (
"io" "io"
"io/ioutil" "io/ioutil"
"github.com/ethereum/go-ethereum/accounts/keystore" "go-ethereum-timing/accounts/keystore"
"github.com/ethereum/go-ethereum/common" "go-ethereum-timing/common"
"github.com/ethereum/go-ethereum/core/types" "go-ethereum-timing/core/types"
"github.com/ethereum/go-ethereum/crypto" "go-ethereum-timing/crypto"
) )
// NewTransactor is a utility method to easily create a transaction signer from // NewTransactor is a utility method to easily create a transaction signer from

View file

@ -21,9 +21,9 @@ import (
"errors" "errors"
"math/big" "math/big"
"github.com/ethereum/go-ethereum" "go-ethereum-timing"
"github.com/ethereum/go-ethereum/common" "go-ethereum-timing/common"
"github.com/ethereum/go-ethereum/core/types" "go-ethereum-timing/core/types"
) )
var ( var (

View file

@ -24,22 +24,22 @@ import (
"sync" "sync"
"time" "time"
"github.com/ethereum/go-ethereum" "go-ethereum-timing"
"github.com/ethereum/go-ethereum/accounts/abi/bind" "go-ethereum-timing/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common" "go-ethereum-timing/common"
"github.com/ethereum/go-ethereum/common/math" "go-ethereum-timing/common/math"
"github.com/ethereum/go-ethereum/consensus/ethash" "go-ethereum-timing/consensus/ethash"
"github.com/ethereum/go-ethereum/core" "go-ethereum-timing/core"
"github.com/ethereum/go-ethereum/core/bloombits" "go-ethereum-timing/core/bloombits"
"github.com/ethereum/go-ethereum/core/rawdb" "go-ethereum-timing/core/rawdb"
"github.com/ethereum/go-ethereum/core/state" "go-ethereum-timing/core/state"
"github.com/ethereum/go-ethereum/core/types" "go-ethereum-timing/core/types"
"github.com/ethereum/go-ethereum/core/vm" "go-ethereum-timing/core/vm"
"github.com/ethereum/go-ethereum/eth/filters" "go-ethereum-timing/eth/filters"
"github.com/ethereum/go-ethereum/ethdb" "go-ethereum-timing/ethdb"
"github.com/ethereum/go-ethereum/event" "go-ethereum-timing/event"
"github.com/ethereum/go-ethereum/params" "go-ethereum-timing/params"
"github.com/ethereum/go-ethereum/rpc" "go-ethereum-timing/rpc"
) )
// This nil assignment ensures compile time that SimulatedBackend implements bind.ContractBackend. // This nil assignment ensures compile time that SimulatedBackend implements bind.ContractBackend.

View file

@ -22,12 +22,12 @@ import (
"fmt" "fmt"
"math/big" "math/big"
"github.com/ethereum/go-ethereum" "go-ethereum-timing"
"github.com/ethereum/go-ethereum/accounts/abi" "go-ethereum-timing/accounts/abi"
"github.com/ethereum/go-ethereum/common" "go-ethereum-timing/common"
"github.com/ethereum/go-ethereum/core/types" "go-ethereum-timing/core/types"
"github.com/ethereum/go-ethereum/crypto" "go-ethereum-timing/crypto"
"github.com/ethereum/go-ethereum/event" "go-ethereum-timing/event"
) )
// SignerFn is a signer function callback when a contract requires a method to // SignerFn is a signer function callback when a contract requires a method to

View file

@ -5,10 +5,10 @@ import (
"math/big" "math/big"
"testing" "testing"
ethereum "github.com/ethereum/go-ethereum" ethereum "go-ethereum-timing"
"github.com/ethereum/go-ethereum/accounts/abi" "go-ethereum-timing/accounts/abi"
"github.com/ethereum/go-ethereum/accounts/abi/bind" "go-ethereum-timing/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common" "go-ethereum-timing/common"
) )
type mockCaller struct { type mockCaller struct {

View file

@ -17,7 +17,7 @@
// Package bind generates Ethereum contract Go bindings. // Package bind generates Ethereum contract Go bindings.
// //
// Detailed usage document and tutorial available on the go-ethereum Wiki page: // 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 // https://go-ethereum-timing/wiki/Native-DApps:-Go-bindings-to-Ethereum-contracts
package bind package bind
import ( import (
@ -29,7 +29,7 @@ import (
"text/template" "text/template"
"unicode" "unicode"
"github.com/ethereum/go-ethereum/accounts/abi" "go-ethereum-timing/accounts/abi"
) )
// Lang is a target programming language selector to generate bindings for. // Lang is a target programming language selector to generate bindings for.

File diff suppressed because one or more lines are too long

View file

@ -16,7 +16,7 @@
package bind package bind
import "github.com/ethereum/go-ethereum/accounts/abi" import "go-ethereum-timing/accounts/abi"
// tmplData is the data structure required to fill the binding template. // tmplData is the data structure required to fill the binding template.
type tmplData struct { type tmplData struct {
@ -68,12 +68,12 @@ import (
"math/big" "math/big"
"strings" "strings"
ethereum "github.com/ethereum/go-ethereum" ethereum "go-ethereum-timing"
"github.com/ethereum/go-ethereum/accounts/abi" "go-ethereum-timing/accounts/abi"
"github.com/ethereum/go-ethereum/accounts/abi/bind" "go-ethereum-timing/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common" "go-ethereum-timing/common"
"github.com/ethereum/go-ethereum/core/types" "go-ethereum-timing/core/types"
"github.com/ethereum/go-ethereum/event" "go-ethereum-timing/event"
) )
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.

View file

@ -22,9 +22,9 @@ import (
"math/big" "math/big"
"reflect" "reflect"
"github.com/ethereum/go-ethereum/accounts/abi" "go-ethereum-timing/accounts/abi"
"github.com/ethereum/go-ethereum/common" "go-ethereum-timing/common"
"github.com/ethereum/go-ethereum/crypto" "go-ethereum-timing/crypto"
) )
// makeTopics converts a filter query argument list into a filter topic set. // makeTopics converts a filter query argument list into a filter topic set.

View file

@ -21,9 +21,9 @@ import (
"fmt" "fmt"
"time" "time"
"github.com/ethereum/go-ethereum/common" "go-ethereum-timing/common"
"github.com/ethereum/go-ethereum/core/types" "go-ethereum-timing/core/types"
"github.com/ethereum/go-ethereum/log" "go-ethereum-timing/log"
) )
// WaitMined waits for tx to be mined on the blockchain. // WaitMined waits for tx to be mined on the blockchain.

View file

@ -22,12 +22,12 @@ import (
"testing" "testing"
"time" "time"
"github.com/ethereum/go-ethereum/accounts/abi/bind" "go-ethereum-timing/accounts/abi/bind"
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" "go-ethereum-timing/accounts/abi/bind/backends"
"github.com/ethereum/go-ethereum/common" "go-ethereum-timing/common"
"github.com/ethereum/go-ethereum/core" "go-ethereum-timing/core"
"github.com/ethereum/go-ethereum/core/types" "go-ethereum-timing/core/types"
"github.com/ethereum/go-ethereum/crypto" "go-ethereum-timing/crypto"
) )
var testKey, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291") var testKey, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291")

View file

@ -20,8 +20,8 @@ import (
"fmt" "fmt"
"strings" "strings"
"github.com/ethereum/go-ethereum/common" "go-ethereum-timing/common"
"github.com/ethereum/go-ethereum/crypto" "go-ethereum-timing/crypto"
) )
// Event is an event potentially triggered by the EVM's LOG mechanism. The Event // Event is an event potentially triggered by the EVM's LOG mechanism. The Event

View file

@ -25,10 +25,10 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"go-ethereum-timing/common"
"go-ethereum-timing/crypto"
) )
var jsonEventTransfer = []byte(`{ var jsonEventTransfer = []byte(`{
@ -356,7 +356,7 @@ func unpackTestEventData(dest interface{}, hexData string, jsonEvent []byte, ass
/* /*
Taken from Taken from
https://github.com/ethereum/go-ethereum/pull/15568 https://go-ethereum-timing/pull/15568
*/ */
type testResult struct { type testResult struct {

View file

@ -20,7 +20,7 @@ import (
"fmt" "fmt"
"strings" "strings"
"github.com/ethereum/go-ethereum/crypto" "go-ethereum-timing/crypto"
) )
// Method represents a callable given a `Name` and whether the method is a constant. // Method represents a callable given a `Name` and whether the method is a constant.

View file

@ -20,8 +20,8 @@ import (
"math/big" "math/big"
"reflect" "reflect"
"github.com/ethereum/go-ethereum/common" "go-ethereum-timing/common"
"github.com/ethereum/go-ethereum/common/math" "go-ethereum-timing/common/math"
) )
var ( var (

View file

@ -20,8 +20,8 @@ import (
"math/big" "math/big"
"reflect" "reflect"
"github.com/ethereum/go-ethereum/common" "go-ethereum-timing/common"
"github.com/ethereum/go-ethereum/common/math" "go-ethereum-timing/common/math"
) )
// packBytesSlice packs the given bytes as [L, V] as the canonical representation // packBytesSlice packs the given bytes as [L, V] as the canonical representation

View file

@ -24,7 +24,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/ethereum/go-ethereum/common" "go-ethereum-timing/common"
) )
func TestPack(t *testing.T) { func TestPack(t *testing.T) {

View file

@ -22,7 +22,7 @@ import (
"testing" "testing"
"github.com/davecgh/go-spew/spew" "github.com/davecgh/go-spew/spew"
"github.com/ethereum/go-ethereum/common" "go-ethereum-timing/common"
) )
// typeWithoutStringer is a alias for the Type type which simply doesn't implement // typeWithoutStringer is a alias for the Type type which simply doesn't implement

View file

@ -22,7 +22,7 @@ import (
"math/big" "math/big"
"reflect" "reflect"
"github.com/ethereum/go-ethereum/common" "go-ethereum-timing/common"
) )
var ( var (

View file

@ -26,8 +26,8 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/ethereum/go-ethereum/common"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"go-ethereum-timing/common"
) )
type unpackTest struct { type unpackTest struct {

View file

@ -20,10 +20,10 @@ package accounts
import ( import (
"math/big" "math/big"
ethereum "github.com/ethereum/go-ethereum" ethereum "go-ethereum-timing"
"github.com/ethereum/go-ethereum/common" "go-ethereum-timing/common"
"github.com/ethereum/go-ethereum/core/types" "go-ethereum-timing/core/types"
"github.com/ethereum/go-ethereum/event" "go-ethereum-timing/event"
) )
// Account represents an Ethereum account located at a specific location defined // Account represents an Ethereum account located at a specific location defined

View file

@ -28,9 +28,9 @@ import (
"time" "time"
mapset "github.com/deckarep/golang-set" mapset "github.com/deckarep/golang-set"
"github.com/ethereum/go-ethereum/accounts" "go-ethereum-timing/accounts"
"github.com/ethereum/go-ethereum/common" "go-ethereum-timing/common"
"github.com/ethereum/go-ethereum/log" "go-ethereum-timing/log"
) )
// Minimum amount of time between cache reloads. This limit applies if the platform does // Minimum amount of time between cache reloads. This limit applies if the platform does

View file

@ -29,8 +29,8 @@ import (
"github.com/cespare/cp" "github.com/cespare/cp"
"github.com/davecgh/go-spew/spew" "github.com/davecgh/go-spew/spew"
"github.com/ethereum/go-ethereum/accounts" "go-ethereum-timing/accounts"
"github.com/ethereum/go-ethereum/common" "go-ethereum-timing/common"
) )
var ( var (

View file

@ -25,7 +25,7 @@ import (
"time" "time"
mapset "github.com/deckarep/golang-set" mapset "github.com/deckarep/golang-set"
"github.com/ethereum/go-ethereum/log" "go-ethereum-timing/log"
) )
// fileCache is a cache of files seen during scan of keystore. // fileCache is a cache of files seen during scan of keystore.

View file

@ -29,10 +29,10 @@ import (
"strings" "strings"
"time" "time"
"github.com/ethereum/go-ethereum/accounts"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
"github.com/pborman/uuid" "github.com/pborman/uuid"
"go-ethereum-timing/accounts"
"go-ethereum-timing/common"
"go-ethereum-timing/crypto"
) )
const ( const (

View file

@ -33,11 +33,11 @@ import (
"sync" "sync"
"time" "time"
"github.com/ethereum/go-ethereum/accounts" "go-ethereum-timing/accounts"
"github.com/ethereum/go-ethereum/common" "go-ethereum-timing/common"
"github.com/ethereum/go-ethereum/core/types" "go-ethereum-timing/core/types"
"github.com/ethereum/go-ethereum/crypto" "go-ethereum-timing/crypto"
"github.com/ethereum/go-ethereum/event" "go-ethereum-timing/event"
) )
var ( var (

View file

@ -26,9 +26,9 @@ import (
"testing" "testing"
"time" "time"
"github.com/ethereum/go-ethereum/accounts" "go-ethereum-timing/accounts"
"github.com/ethereum/go-ethereum/common" "go-ethereum-timing/common"
"github.com/ethereum/go-ethereum/event" "go-ethereum-timing/event"
) )
var testSigData = make([]byte, 32) var testSigData = make([]byte, 32)

View file

@ -38,10 +38,10 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/math"
"github.com/ethereum/go-ethereum/crypto"
"github.com/pborman/uuid" "github.com/pborman/uuid"
"go-ethereum-timing/common"
"go-ethereum-timing/common/math"
"go-ethereum-timing/crypto"
"golang.org/x/crypto/pbkdf2" "golang.org/x/crypto/pbkdf2"
"golang.org/x/crypto/scrypt" "golang.org/x/crypto/scrypt"
) )
@ -120,7 +120,7 @@ func (ks keyStorePassphrase) StoreKey(filename string, key *Key, auth string) er
"This indicates that the keystore is corrupted. \n" + "This indicates that the keystore is corrupted. \n" +
"The corrupted file is stored at \n%v\n" + "The corrupted file is stored at \n%v\n" +
"Please file a ticket at:\n\n" + "Please file a ticket at:\n\n" +
"https://github.com/ethereum/go-ethereum/issues." + "https://go-ethereum-timing/issues." +
"The error was : %s" "The error was : %s"
return fmt.Errorf(msg, tmpName, err) return fmt.Errorf(msg, tmpName, err)
} }

View file

@ -20,7 +20,7 @@ import (
"io/ioutil" "io/ioutil"
"testing" "testing"
"github.com/ethereum/go-ethereum/common" "go-ethereum-timing/common"
) )
const ( const (

View file

@ -22,7 +22,7 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"github.com/ethereum/go-ethereum/common" "go-ethereum-timing/common"
) )
type keyStorePlain struct { type keyStorePlain struct {

View file

@ -27,8 +27,8 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/ethereum/go-ethereum/common" "go-ethereum-timing/common"
"github.com/ethereum/go-ethereum/crypto" "go-ethereum-timing/crypto"
) )
func tmpKeyStoreIface(t *testing.T, encrypted bool) (dir string, ks keyStore) { func tmpKeyStoreIface(t *testing.T, encrypted bool) (dir string, ks keyStore) {

View file

@ -25,9 +25,9 @@ import (
"errors" "errors"
"fmt" "fmt"
"github.com/ethereum/go-ethereum/accounts"
"github.com/ethereum/go-ethereum/crypto"
"github.com/pborman/uuid" "github.com/pborman/uuid"
"go-ethereum-timing/accounts"
"go-ethereum-timing/crypto"
"golang.org/x/crypto/pbkdf2" "golang.org/x/crypto/pbkdf2"
) )

View file

@ -19,9 +19,9 @@ package keystore
import ( import (
"math/big" "math/big"
ethereum "github.com/ethereum/go-ethereum" ethereum "go-ethereum-timing"
"github.com/ethereum/go-ethereum/accounts" "go-ethereum-timing/accounts"
"github.com/ethereum/go-ethereum/core/types" "go-ethereum-timing/core/types"
) )
// keystoreWallet implements the accounts.Wallet interface for the original // keystoreWallet implements the accounts.Wallet interface for the original

View file

@ -21,8 +21,8 @@ package keystore
import ( import (
"time" "time"
"github.com/ethereum/go-ethereum/log"
"github.com/rjeczalik/notify" "github.com/rjeczalik/notify"
"go-ethereum-timing/log"
) )
type watcher struct { type watcher struct {

View file

@ -21,7 +21,7 @@ import (
"sort" "sort"
"sync" "sync"
"github.com/ethereum/go-ethereum/event" "go-ethereum-timing/event"
) )
// Manager is an overarching account manager that can communicate with various // Manager is an overarching account manager that can communicate with various

View file

@ -22,10 +22,10 @@ import (
"sync" "sync"
"time" "time"
"github.com/ethereum/go-ethereum/accounts"
"github.com/ethereum/go-ethereum/event"
"github.com/ethereum/go-ethereum/log"
"github.com/karalabe/hid" "github.com/karalabe/hid"
"go-ethereum-timing/accounts"
"go-ethereum-timing/event"
"go-ethereum-timing/log"
) )
// LedgerScheme is the protocol scheme prefixing account and wallet URLs. // LedgerScheme is the protocol scheme prefixing account and wallet URLs.

View file

@ -28,12 +28,12 @@ import (
"io" "io"
"math/big" "math/big"
"github.com/ethereum/go-ethereum/accounts" "go-ethereum-timing/accounts"
"github.com/ethereum/go-ethereum/common" "go-ethereum-timing/common"
"github.com/ethereum/go-ethereum/common/hexutil" "go-ethereum-timing/common/hexutil"
"github.com/ethereum/go-ethereum/core/types" "go-ethereum-timing/core/types"
"github.com/ethereum/go-ethereum/log" "go-ethereum-timing/log"
"github.com/ethereum/go-ethereum/rlp" "go-ethereum-timing/rlp"
) )
// ledgerOpcode is an enumeration encoding the supported Ledger opcodes. // ledgerOpcode is an enumeration encoding the supported Ledger opcodes.

View file

@ -27,13 +27,13 @@ import (
"io" "io"
"math/big" "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/golang/protobuf/proto" "github.com/golang/protobuf/proto"
"go-ethereum-timing/accounts"
"go-ethereum-timing/accounts/usbwallet/internal/trezor"
"go-ethereum-timing/common"
"go-ethereum-timing/common/hexutil"
"go-ethereum-timing/core/types"
"go-ethereum-timing/log"
) )
// ErrTrezorPINNeeded is returned if opening the trezor requires a PIN code. In // ErrTrezorPINNeeded is returned if opening the trezor requires a PIN code. In

View file

@ -25,12 +25,12 @@ import (
"sync" "sync"
"time" "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"
"github.com/karalabe/hid" "github.com/karalabe/hid"
ethereum "go-ethereum-timing"
"go-ethereum-timing/accounts"
"go-ethereum-timing/common"
"go-ethereum-timing/core/types"
"go-ethereum-timing/log"
) )
// Maximum time between wallet health checks to detect USB unplugs. // Maximum time between wallet health checks to detect USB unplugs.

View file

@ -1,40 +0,0 @@
os: Visual Studio 2015
# Clone directly into GOPATH.
clone_folder: C:\gopath\src\github.com\ethereum\go-ethereum
clone_depth: 5
version: "{branch}.{build}"
environment:
global:
GOPATH: C:\gopath
CC: gcc.exe
matrix:
- GETH_ARCH: amd64
MSYS2_ARCH: x86_64
MSYS2_BITS: 64
MSYSTEM: MINGW64
PATH: C:\msys64\mingw64\bin\;C:\Program Files (x86)\NSIS\;%PATH%
- GETH_ARCH: 386
MSYS2_ARCH: i686
MSYS2_BITS: 32
MSYSTEM: MINGW32
PATH: C:\msys64\mingw32\bin\;C:\Program Files (x86)\NSIS\;%PATH%
install:
- git submodule update --init
- rmdir C:\go /s /q
- appveyor DownloadFile https://storage.googleapis.com/golang/go1.11.5.windows-%GETH_ARCH%.zip
- 7z x go1.11.5.windows-%GETH_ARCH%.zip -y -oC:\ > NUL
- go version
- gcc --version
build_script:
- go run build\ci.go install
after_build:
- go run build\ci.go archive -type zip -signer WINDOWS_SIGNING_KEY -upload gethstore/builds
- go run build\ci.go nsis -signer WINDOWS_SIGNING_KEY -upload gethstore/builds
test_script:
- set CGO_ENABLED=1
- go run build\ci.go test -coverage

View file

@ -58,9 +58,9 @@ import (
"strings" "strings"
"time" "time"
"github.com/ethereum/go-ethereum/internal/build" "go-ethereum-timing/internal/build"
"github.com/ethereum/go-ethereum/params" "go-ethereum-timing/params"
sv "github.com/ethereum/go-ethereum/swarm/version" sv "go-ethereum-timing/swarm/version"
) )
var ( var (
@ -806,7 +806,7 @@ func doAndroidArchive(cmdline []string) {
// Build the Android archive and Maven resources // Build the Android archive and Maven resources
build.MustRun(goTool("get", "golang.org/x/mobile/cmd/gomobile", "golang.org/x/mobile/cmd/gobind")) build.MustRun(goTool("get", "golang.org/x/mobile/cmd/gomobile", "golang.org/x/mobile/cmd/gobind"))
build.MustRun(gomobileTool("init", "--ndk", os.Getenv("ANDROID_NDK"))) build.MustRun(gomobileTool("init", "--ndk", os.Getenv("ANDROID_NDK")))
build.MustRun(gomobileTool("bind", "-ldflags", "-s -w", "--target", "android", "--javapkg", "org.ethereum", "-v", "github.com/ethereum/go-ethereum/mobile")) build.MustRun(gomobileTool("bind", "-ldflags", "-s -w", "--target", "android", "--javapkg", "org.ethereum", "-v", "go-ethereum-timing/mobile"))
if *local { if *local {
// If we're building locally, copy bundle to build dir and skip Maven // If we're building locally, copy bundle to build dir and skip Maven
@ -927,7 +927,7 @@ func doXCodeFramework(cmdline []string) {
// Build the iOS XCode framework // Build the iOS XCode framework
build.MustRun(goTool("get", "golang.org/x/mobile/cmd/gomobile", "golang.org/x/mobile/cmd/gobind")) build.MustRun(goTool("get", "golang.org/x/mobile/cmd/gomobile", "golang.org/x/mobile/cmd/gobind"))
build.MustRun(gomobileTool("init")) build.MustRun(gomobileTool("init"))
bind := gomobileTool("bind", "-ldflags", "-s -w", "--target", "ios", "--tags", "ios", "-v", "github.com/ethereum/go-ethereum/mobile") bind := gomobileTool("bind", "-ldflags", "-s -w", "--target", "ios", "--tags", "ios", "-v", "go-ethereum-timing/mobile")
if *local { if *local {
// If we're building locally, use the build folder and stop afterwards // If we're building locally, use the build folder and stop afterwards

View file

@ -5,8 +5,8 @@ Maintainer: {{.Author}}
Build-Depends: debhelper (>= 8.0.0), golang-1.10 Build-Depends: debhelper (>= 8.0.0), golang-1.10
Standards-Version: 3.9.5 Standards-Version: 3.9.5
Homepage: https://ethereum.org Homepage: https://ethereum.org
Vcs-Git: git://github.com/ethereum/go-ethereum.git Vcs-Git: git://go-ethereum-timing.git
Vcs-Browser: https://github.com/ethereum/go-ethereum Vcs-Browser: https://go-ethereum-timing
{{range .Executables}} {{range .Executables}}
Package: {{$.ExeName .}} Package: {{$.ExeName .}}

View file

@ -5,8 +5,8 @@ Maintainer: {{.Author}}
Build-Depends: debhelper (>= 8.0.0), golang-1.10 Build-Depends: debhelper (>= 8.0.0), golang-1.10
Standards-Version: 3.9.5 Standards-Version: 3.9.5
Homepage: https://ethereum.org Homepage: https://ethereum.org
Vcs-Git: git://github.com/ethereum/go-ethereum.git Vcs-Git: git://go-ethereum-timing.git
Vcs-Browser: https://github.com/ethereum/go-ethereum Vcs-Browser: https://go-ethereum-timing
Package: {{.Name}} Package: {{.Name}}
Architecture: any Architecture: any

View file

@ -11,7 +11,7 @@
<name>Android Ethereum Client</name> <name>Android Ethereum Client</name>
<description>Android port of the go-ethereum libraries and node</description> <description>Android port of the go-ethereum libraries and node</description>
<url>https://github.com/ethereum/go-ethereum</url> <url>https://go-ethereum-timing</url>
<inceptionYear>2015</inceptionYear> <inceptionYear>2015</inceptionYear>
<licenses> <licenses>
@ -48,10 +48,10 @@
<issueManagement> <issueManagement>
<system>GitHub Issues</system> <system>GitHub Issues</system>
<url>https://github.com/ethereum/go-ethereum/issues/</url> <url>https://go-ethereum-timing/issues/</url>
</issueManagement> </issueManagement>
<scm> <scm>
<url>https://github.com/ethereum/go-ethereum</url> <url>https://go-ethereum-timing</url>
</scm> </scm>
</project> </project>

View file

@ -3,9 +3,9 @@ InstallDir "$InstDir"
OutFile "${OUTPUTFILE}" # set through command line arguments OutFile "${OUTPUTFILE}" # set through command line arguments
# Links for "Add/Remove Programs" # Links for "Add/Remove Programs"
!define HELPURL "https://github.com/ethereum/go-ethereum/issues" !define HELPURL "https://go-ethereum-timing/issues"
!define UPDATEURL "https://github.com/ethereum/go-ethereum/releases" !define UPDATEURL "https://go-ethereum-timing/releases"
!define ABOUTURL "https://github.com/ethereum/go-ethereum#ethereum-go" !define ABOUTURL "https://go-ethereum-timing#ethereum-go"
!define /date NOW "%Y%m%d" !define /date NOW "%Y%m%d"
PageEx license PageEx license

View file

@ -2,12 +2,12 @@ Pod::Spec.new do |spec|
spec.name = 'Geth' spec.name = 'Geth'
spec.version = '{{.Version}}' spec.version = '{{.Version}}'
spec.license = { :type => 'GNU Lesser General Public License, Version 3.0' } spec.license = { :type => 'GNU Lesser General Public License, Version 3.0' }
spec.homepage = 'https://github.com/ethereum/go-ethereum' spec.homepage = 'https://go-ethereum-timing'
spec.authors = { {{range .Contributors}} spec.authors = { {{range .Contributors}}
'{{.Name}}' => '{{.Email}}',{{end}} '{{.Name}}' => '{{.Email}}',{{end}}
} }
spec.summary = 'iOS Ethereum Client' spec.summary = 'iOS Ethereum Client'
spec.source = { :git => 'https://github.com/ethereum/go-ethereum.git', :commit => '{{.Commit}}' } spec.source = { :git => 'https://go-ethereum-timing.git', :commit => '{{.Commit}}' }
spec.platform = :ios spec.platform = :ios
spec.ios.deployment_target = '9.0' spec.ios.deployment_target = '9.0'

View file

@ -24,8 +24,8 @@ import (
"os" "os"
"strings" "strings"
"github.com/ethereum/go-ethereum/accounts/abi/bind" "go-ethereum-timing/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common/compiler" "go-ethereum-timing/common/compiler"
) )
var ( var (

View file

@ -24,14 +24,14 @@ import (
"net" "net"
"os" "os"
"github.com/ethereum/go-ethereum/cmd/utils" "go-ethereum-timing/cmd/utils"
"github.com/ethereum/go-ethereum/crypto" "go-ethereum-timing/crypto"
"github.com/ethereum/go-ethereum/log" "go-ethereum-timing/log"
"github.com/ethereum/go-ethereum/p2p/discover" "go-ethereum-timing/p2p/discover"
"github.com/ethereum/go-ethereum/p2p/discv5" "go-ethereum-timing/p2p/discv5"
"github.com/ethereum/go-ethereum/p2p/enode" "go-ethereum-timing/p2p/enode"
"github.com/ethereum/go-ethereum/p2p/nat" "go-ethereum-timing/p2p/nat"
"github.com/ethereum/go-ethereum/p2p/netutil" "go-ethereum-timing/p2p/netutil"
) )
func main() { func main() {

View file

@ -35,17 +35,17 @@ import (
"runtime" "runtime"
"strings" "strings"
"github.com/ethereum/go-ethereum/accounts/keystore" "go-ethereum-timing/accounts/keystore"
"github.com/ethereum/go-ethereum/cmd/utils" "go-ethereum-timing/cmd/utils"
"github.com/ethereum/go-ethereum/common" "go-ethereum-timing/common"
"github.com/ethereum/go-ethereum/console" "go-ethereum-timing/console"
"github.com/ethereum/go-ethereum/crypto" "go-ethereum-timing/crypto"
"github.com/ethereum/go-ethereum/log" "go-ethereum-timing/log"
"github.com/ethereum/go-ethereum/node" "go-ethereum-timing/node"
"github.com/ethereum/go-ethereum/rpc" "go-ethereum-timing/rpc"
"github.com/ethereum/go-ethereum/signer/core" "go-ethereum-timing/signer/core"
"github.com/ethereum/go-ethereum/signer/rules" "go-ethereum-timing/signer/rules"
"github.com/ethereum/go-ethereum/signer/storage" "go-ethereum-timing/signer/storage"
"gopkg.in/urfave/cli.v1" "gopkg.in/urfave/cli.v1"
) )

View file

@ -53,7 +53,7 @@ INFO [02-21|12:14:38] Ruleset attestation updated sha256=6c21d17374
...and (this is required only for non-production versions) load a mock-up `4byte.json` by copying the file from the source to your current working directory: ...and (this is required only for non-production versions) load a mock-up `4byte.json` by copying the file from the source to your current working directory:
```text ```text
#cp $GOPATH/src/github.com/ethereum/go-ethereum/cmd/clef/4byte.json $PWD #cp $GOPATH/src/go-ethereum-timing/cmd/clef/4byte.json $PWD
``` ```
At this point, we can start the signer with the rule-file: At this point, we can start the signer with the rule-file:

View file

@ -5,8 +5,8 @@ import (
"io/ioutil" "io/ioutil"
"strings" "strings"
"github.com/ethereum/go-ethereum/accounts/keystore" "go-ethereum-timing/accounts/keystore"
"github.com/ethereum/go-ethereum/cmd/utils" "go-ethereum-timing/cmd/utils"
"gopkg.in/urfave/cli.v1" "gopkg.in/urfave/cli.v1"
) )

View file

@ -23,10 +23,10 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"github.com/ethereum/go-ethereum/accounts/keystore"
"github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/crypto"
"github.com/pborman/uuid" "github.com/pborman/uuid"
"go-ethereum-timing/accounts/keystore"
"go-ethereum-timing/cmd/utils"
"go-ethereum-timing/crypto"
"gopkg.in/urfave/cli.v1" "gopkg.in/urfave/cli.v1"
) )

View file

@ -21,9 +21,9 @@ import (
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"github.com/ethereum/go-ethereum/accounts/keystore" "go-ethereum-timing/accounts/keystore"
"github.com/ethereum/go-ethereum/cmd/utils" "go-ethereum-timing/cmd/utils"
"github.com/ethereum/go-ethereum/crypto" "go-ethereum-timing/crypto"
"gopkg.in/urfave/cli.v1" "gopkg.in/urfave/cli.v1"
) )

View file

@ -20,7 +20,7 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/ethereum/go-ethereum/cmd/utils" "go-ethereum-timing/cmd/utils"
"gopkg.in/urfave/cli.v1" "gopkg.in/urfave/cli.v1"
) )

View file

@ -21,10 +21,10 @@ import (
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"github.com/ethereum/go-ethereum/accounts/keystore" "go-ethereum-timing/accounts/keystore"
"github.com/ethereum/go-ethereum/cmd/utils" "go-ethereum-timing/cmd/utils"
"github.com/ethereum/go-ethereum/common" "go-ethereum-timing/common"
"github.com/ethereum/go-ethereum/crypto" "go-ethereum-timing/crypto"
"gopkg.in/urfave/cli.v1" "gopkg.in/urfave/cli.v1"
) )

View file

@ -22,7 +22,7 @@ import (
"testing" "testing"
"github.com/docker/docker/pkg/reexec" "github.com/docker/docker/pkg/reexec"
"github.com/ethereum/go-ethereum/internal/cmdtest" "go-ethereum-timing/internal/cmdtest"
) )
type testEthkey struct { type testEthkey struct {

View file

@ -22,9 +22,9 @@ import (
"io/ioutil" "io/ioutil"
"strings" "strings"
"github.com/ethereum/go-ethereum/cmd/utils" "go-ethereum-timing/cmd/utils"
"github.com/ethereum/go-ethereum/console" "go-ethereum-timing/console"
"github.com/ethereum/go-ethereum/crypto" "go-ethereum-timing/crypto"
"gopkg.in/urfave/cli.v1" "gopkg.in/urfave/cli.v1"
) )

View file

@ -21,7 +21,7 @@ import (
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"github.com/ethereum/go-ethereum/cmd/evm/internal/compiler" "go-ethereum-timing/cmd/evm/internal/compiler"
cli "gopkg.in/urfave/cli.v1" cli "gopkg.in/urfave/cli.v1"
) )

View file

@ -22,7 +22,7 @@ import (
"io/ioutil" "io/ioutil"
"strings" "strings"
"github.com/ethereum/go-ethereum/core/asm" "go-ethereum-timing/core/asm"
cli "gopkg.in/urfave/cli.v1" cli "gopkg.in/urfave/cli.v1"
) )

View file

@ -20,7 +20,7 @@ import (
"errors" "errors"
"fmt" "fmt"
"github.com/ethereum/go-ethereum/core/asm" "go-ethereum-timing/core/asm"
) )
func Compile(fn string, src []byte, debug bool) (string, error) { func Compile(fn string, src []byte, debug bool) (string, error) {

View file

@ -22,7 +22,7 @@ import (
"math/big" "math/big"
"os" "os"
"github.com/ethereum/go-ethereum/cmd/utils" "go-ethereum-timing/cmd/utils"
"gopkg.in/urfave/cli.v1" "gopkg.in/urfave/cli.v1"
) )

View file

@ -27,16 +27,16 @@ import (
"runtime/pprof" "runtime/pprof"
"time" "time"
"github.com/ethereum/go-ethereum/cmd/evm/internal/compiler" "go-ethereum-timing/cmd/evm/internal/compiler"
"github.com/ethereum/go-ethereum/cmd/utils" "go-ethereum-timing/cmd/utils"
"github.com/ethereum/go-ethereum/common" "go-ethereum-timing/common"
"github.com/ethereum/go-ethereum/core" "go-ethereum-timing/core"
"github.com/ethereum/go-ethereum/core/state" "go-ethereum-timing/core/state"
"github.com/ethereum/go-ethereum/core/vm" "go-ethereum-timing/core/vm"
"github.com/ethereum/go-ethereum/core/vm/runtime" "go-ethereum-timing/core/vm/runtime"
"github.com/ethereum/go-ethereum/ethdb" "go-ethereum-timing/ethdb"
"github.com/ethereum/go-ethereum/log" "go-ethereum-timing/log"
"github.com/ethereum/go-ethereum/params" "go-ethereum-timing/params"
cli "gopkg.in/urfave/cli.v1" cli "gopkg.in/urfave/cli.v1"
) )

View file

@ -23,10 +23,10 @@ import (
"io/ioutil" "io/ioutil"
"os" "os"
"github.com/ethereum/go-ethereum/core/state" "go-ethereum-timing/core/state"
"github.com/ethereum/go-ethereum/core/vm" "go-ethereum-timing/core/vm"
"github.com/ethereum/go-ethereum/log" "go-ethereum-timing/log"
"github.com/ethereum/go-ethereum/tests" "go-ethereum-timing/tests"
cli "gopkg.in/urfave/cli.v1" cli "gopkg.in/urfave/cli.v1"
) )

View file

@ -41,23 +41,23 @@ import (
"sync" "sync"
"time" "time"
"github.com/ethereum/go-ethereum/accounts" "go-ethereum-timing/accounts"
"github.com/ethereum/go-ethereum/accounts/keystore" "go-ethereum-timing/accounts/keystore"
"github.com/ethereum/go-ethereum/common" "go-ethereum-timing/common"
"github.com/ethereum/go-ethereum/core" "go-ethereum-timing/core"
"github.com/ethereum/go-ethereum/core/types" "go-ethereum-timing/core/types"
"github.com/ethereum/go-ethereum/eth" "go-ethereum-timing/eth"
"github.com/ethereum/go-ethereum/eth/downloader" "go-ethereum-timing/eth/downloader"
"github.com/ethereum/go-ethereum/ethclient" "go-ethereum-timing/ethclient"
"github.com/ethereum/go-ethereum/ethstats" "go-ethereum-timing/ethstats"
"github.com/ethereum/go-ethereum/les" "go-ethereum-timing/les"
"github.com/ethereum/go-ethereum/log" "go-ethereum-timing/log"
"github.com/ethereum/go-ethereum/node" "go-ethereum-timing/node"
"github.com/ethereum/go-ethereum/p2p" "go-ethereum-timing/p2p"
"github.com/ethereum/go-ethereum/p2p/discv5" "go-ethereum-timing/p2p/discv5"
"github.com/ethereum/go-ethereum/p2p/enode" "go-ethereum-timing/p2p/enode"
"github.com/ethereum/go-ethereum/p2p/nat" "go-ethereum-timing/p2p/nat"
"github.com/ethereum/go-ethereum/params" "go-ethereum-timing/params"
"golang.org/x/net/websocket" "golang.org/x/net/websocket"
) )
@ -449,7 +449,7 @@ func (f *faucet) apiHandler(conn *websocket.Conn) {
case *noauthFlag: case *noauthFlag:
username, avatar, address, err = authNoAuth(msg.URL) username, avatar, address, err = authNoAuth(msg.URL)
default: default:
err = errors.New("Something funky happened, please open an issue at https://github.com/ethereum/go-ethereum/issues") err = errors.New("Something funky happened, please open an issue at https://go-ethereum-timing/issues")
} }
if err != nil { if err != nil {
if err = sendError(conn, err); err != nil { if err = sendError(conn, err); err != nil {

View file

@ -20,12 +20,12 @@ import (
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"github.com/ethereum/go-ethereum/accounts" "go-ethereum-timing/accounts"
"github.com/ethereum/go-ethereum/accounts/keystore" "go-ethereum-timing/accounts/keystore"
"github.com/ethereum/go-ethereum/cmd/utils" "go-ethereum-timing/cmd/utils"
"github.com/ethereum/go-ethereum/console" "go-ethereum-timing/console"
"github.com/ethereum/go-ethereum/crypto" "go-ethereum-timing/crypto"
"github.com/ethereum/go-ethereum/log" "go-ethereum-timing/log"
"gopkg.in/urfave/cli.v1" "gopkg.in/urfave/cli.v1"
) )

View file

@ -173,7 +173,7 @@ Fatal: Failed to unlock account f466859ead1932d743d622cb74fc058882e8648a (could
`) `)
} }
// https://github.com/ethereum/go-ethereum/issues/1785 // https://go-ethereum-timing/issues/1785
func TestUnlockFlagMultiIndex(t *testing.T) { func TestUnlockFlagMultiIndex(t *testing.T) {
datadir := tmpDatadirWithKeystore(t) datadir := tmpDatadirWithKeystore(t)
geth := runGeth(t, geth := runGeth(t,

View file

@ -26,10 +26,10 @@ import (
"runtime" "runtime"
"strings" "strings"
"github.com/ethereum/go-ethereum/cmd/internal/browser" "go-ethereum-timing/cmd/internal/browser"
"github.com/ethereum/go-ethereum/params" "go-ethereum-timing/params"
"github.com/ethereum/go-ethereum/cmd/utils" "go-ethereum-timing/cmd/utils"
cli "gopkg.in/urfave/cli.v1" cli "gopkg.in/urfave/cli.v1"
) )
@ -41,7 +41,7 @@ var bugCommand = cli.Command{
Category: "MISCELLANEOUS COMMANDS", Category: "MISCELLANEOUS COMMANDS",
} }
const issueURL = "https://github.com/ethereum/go-ethereum/issues/new" const issueURL = "https://go-ethereum-timing/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-ethereum GH issue
// tracker and setting default values as the issue body. // tracker and setting default values as the issue body.

View file

@ -25,18 +25,18 @@ import (
"sync/atomic" "sync/atomic"
"time" "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/eth/downloader"
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/event"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/trie"
"github.com/syndtr/goleveldb/leveldb/util" "github.com/syndtr/goleveldb/leveldb/util"
"go-ethereum-timing/cmd/utils"
"go-ethereum-timing/common"
"go-ethereum-timing/console"
"go-ethereum-timing/core"
"go-ethereum-timing/core/state"
"go-ethereum-timing/core/types"
"go-ethereum-timing/eth/downloader"
"go-ethereum-timing/ethdb"
"go-ethereum-timing/event"
"go-ethereum-timing/log"
"go-ethereum-timing/trie"
"gopkg.in/urfave/cli.v1" "gopkg.in/urfave/cli.v1"
) )

View file

@ -27,13 +27,13 @@ import (
cli "gopkg.in/urfave/cli.v1" cli "gopkg.in/urfave/cli.v1"
"github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/dashboard"
"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/whisperv6"
"github.com/naoina/toml" "github.com/naoina/toml"
"go-ethereum-timing/cmd/utils"
"go-ethereum-timing/dashboard"
"go-ethereum-timing/eth"
"go-ethereum-timing/node"
"go-ethereum-timing/params"
whisper "go-ethereum-timing/whisper/whisperv6"
) )
var ( var (

View file

@ -24,10 +24,10 @@ import (
"strings" "strings"
"syscall" "syscall"
"github.com/ethereum/go-ethereum/cmd/utils" "go-ethereum-timing/cmd/utils"
"github.com/ethereum/go-ethereum/console" "go-ethereum-timing/console"
"github.com/ethereum/go-ethereum/node" "go-ethereum-timing/node"
"github.com/ethereum/go-ethereum/rpc" "go-ethereum-timing/rpc"
"gopkg.in/urfave/cli.v1" "gopkg.in/urfave/cli.v1"
) )
@ -43,7 +43,7 @@ var (
Description: ` Description: `
The Geth console is an interactive shell for the JavaScript runtime environment 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. which exposes a node admin interface as well as the Ðapp JavaScript API.
See https://github.com/ethereum/go-ethereum/wiki/JavaScript-Console.`, See https://go-ethereum-timing/wiki/JavaScript-Console.`,
} }
attachCommand = cli.Command{ attachCommand = cli.Command{
@ -56,7 +56,7 @@ See https://github.com/ethereum/go-ethereum/wiki/JavaScript-Console.`,
Description: ` Description: `
The Geth console is an interactive shell for the JavaScript runtime environment 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. which exposes a node admin interface as well as the Ðapp JavaScript API.
See https://github.com/ethereum/go-ethereum/wiki/JavaScript-Console. See https://go-ethereum-timing/wiki/JavaScript-Console.
This command allows to open a console on a running geth node.`, This command allows to open a console on a running geth node.`,
} }
@ -69,7 +69,7 @@ This command allows to open a console on a running geth node.`,
Category: "CONSOLE COMMANDS", Category: "CONSOLE COMMANDS",
Description: ` Description: `
The JavaScript VM exposes a node admin interface as well as the Ðapp The JavaScript VM exposes a node admin interface as well as the Ðapp
JavaScript API. See https://github.com/ethereum/go-ethereum/wiki/JavaScript-Console`, JavaScript API. See https://go-ethereum-timing/wiki/JavaScript-Console`,
} }
) )

View file

@ -27,7 +27,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/ethereum/go-ethereum/params" "go-ethereum-timing/params"
) )
const ( const (

View file

@ -23,10 +23,10 @@ import (
"path/filepath" "path/filepath"
"testing" "testing"
"github.com/ethereum/go-ethereum/common" "go-ethereum-timing/common"
"github.com/ethereum/go-ethereum/core/rawdb" "go-ethereum-timing/core/rawdb"
"github.com/ethereum/go-ethereum/ethdb" "go-ethereum-timing/ethdb"
"github.com/ethereum/go-ethereum/params" "go-ethereum-timing/params"
) )
// Genesis block for nodes which don't care about the DAO fork (i.e. not configured) // Genesis block for nodes which don't care about the DAO fork (i.e. not configured)

View file

@ -19,6 +19,7 @@ package main
import ( import (
"fmt" "fmt"
"go-ethereum-timing/log2"
"math" "math"
"os" "os"
godebug "runtime/debug" godebug "runtime/debug"
@ -28,17 +29,17 @@ import (
"time" "time"
"github.com/elastic/gosigar" "github.com/elastic/gosigar"
"github.com/ethereum/go-ethereum/accounts" "go-ethereum-timing/accounts"
"github.com/ethereum/go-ethereum/accounts/keystore" "go-ethereum-timing/accounts/keystore"
"github.com/ethereum/go-ethereum/cmd/utils" "go-ethereum-timing/cmd/utils"
"github.com/ethereum/go-ethereum/console" "go-ethereum-timing/console"
"github.com/ethereum/go-ethereum/eth" "go-ethereum-timing/eth"
"github.com/ethereum/go-ethereum/ethclient" "go-ethereum-timing/ethclient"
"github.com/ethereum/go-ethereum/internal/debug" "go-ethereum-timing/internal/debug"
"github.com/ethereum/go-ethereum/log" "go-ethereum-timing/log"
"github.com/ethereum/go-ethereum/metrics" "go-ethereum-timing/metrics"
"github.com/ethereum/go-ethereum/node" "go-ethereum-timing/node"
cli "gopkg.in/urfave/cli.v1" "gopkg.in/urfave/cli.v1"
) )
const ( const (
@ -167,6 +168,10 @@ var (
utils.MetricsInfluxDBPasswordFlag, utils.MetricsInfluxDBPasswordFlag,
utils.MetricsInfluxDBTagsFlag, utils.MetricsInfluxDBTagsFlag,
} }
timingFlags = []cli.Flag{
utils.TimingOutputFlag,
}
) )
func init() { func init() {
@ -210,6 +215,7 @@ func init() {
app.Flags = append(app.Flags, debug.Flags...) app.Flags = append(app.Flags, debug.Flags...)
app.Flags = append(app.Flags, whisperFlags...) app.Flags = append(app.Flags, whisperFlags...)
app.Flags = append(app.Flags, metricsFlags...) app.Flags = append(app.Flags, metricsFlags...)
app.Flags = append(app.Flags, timingFlags...)
app.Before = func(ctx *cli.Context) error { app.Before = func(ctx *cli.Context) error {
logdir := "" logdir := ""
@ -265,6 +271,9 @@ func geth(ctx *cli.Context) error {
if args := ctx.Args(); len(args) > 0 { if args := ctx.Args(); len(args) > 0 {
return fmt.Errorf("invalid command: %q", args[0]) return fmt.Errorf("invalid command: %q", args[0])
} }
log2.InitOutputFile(ctx.String(utils.TimingOutputFlag.Name))
node := makeFullNode(ctx) node := makeFullNode(ctx)
startNode(ctx, node) startNode(ctx, node)
node.Wait() node.Wait()

View file

@ -23,10 +23,10 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/ethereum/go-ethereum/cmd/utils" "go-ethereum-timing/cmd/utils"
"github.com/ethereum/go-ethereum/consensus/ethash" "go-ethereum-timing/consensus/ethash"
"github.com/ethereum/go-ethereum/eth" "go-ethereum-timing/eth"
"github.com/ethereum/go-ethereum/params" "go-ethereum-timing/params"
"gopkg.in/urfave/cli.v1" "gopkg.in/urfave/cli.v1"
) )

View file

@ -25,10 +25,10 @@ import (
"strings" "strings"
"time" "time"
"github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/node"
"github.com/ethereum/go-ethereum/rpc"
"github.com/gizak/termui" "github.com/gizak/termui"
"go-ethereum-timing/cmd/utils"
"go-ethereum-timing/node"
"go-ethereum-timing/rpc"
"gopkg.in/urfave/cli.v1" "gopkg.in/urfave/cli.v1"
) )

View file

@ -23,7 +23,7 @@ import (
"testing" "testing"
"github.com/docker/docker/pkg/reexec" "github.com/docker/docker/pkg/reexec"
"github.com/ethereum/go-ethereum/internal/cmdtest" "go-ethereum-timing/internal/cmdtest"
) )
func tmpdir(t *testing.T) string { func tmpdir(t *testing.T) string {

View file

@ -24,8 +24,8 @@ import (
"strings" "strings"
"github.com/ethereum/go-ethereum/cmd/utils" "go-ethereum-timing/cmd/utils"
"github.com/ethereum/go-ethereum/internal/debug" "go-ethereum-timing/internal/debug"
cli "gopkg.in/urfave/cli.v1" cli "gopkg.in/urfave/cli.v1"
) )

View file

@ -45,12 +45,12 @@ import (
"strings" "strings"
"text/tabwriter" "text/tabwriter"
"github.com/ethereum/go-ethereum/crypto" "go-ethereum-timing/crypto"
"github.com/ethereum/go-ethereum/p2p" "go-ethereum-timing/p2p"
"github.com/ethereum/go-ethereum/p2p/enode" "go-ethereum-timing/p2p/enode"
"github.com/ethereum/go-ethereum/p2p/simulations" "go-ethereum-timing/p2p/simulations"
"github.com/ethereum/go-ethereum/p2p/simulations/adapters" "go-ethereum-timing/p2p/simulations/adapters"
"github.com/ethereum/go-ethereum/rpc" "go-ethereum-timing/rpc"
"gopkg.in/urfave/cli.v1" "gopkg.in/urfave/cli.v1"
) )

View file

@ -23,12 +23,12 @@ import (
"math/big" "math/big"
"strings" "strings"
"github.com/ethereum/go-ethereum/common" "go-ethereum-timing/common"
"github.com/ethereum/go-ethereum/common/hexutil" "go-ethereum-timing/common/hexutil"
math2 "github.com/ethereum/go-ethereum/common/math" math2 "go-ethereum-timing/common/math"
"github.com/ethereum/go-ethereum/consensus/ethash" "go-ethereum-timing/consensus/ethash"
"github.com/ethereum/go-ethereum/core" "go-ethereum-timing/core"
"github.com/ethereum/go-ethereum/params" "go-ethereum-timing/params"
) )
// alethGenesisSpec represents the genesis specification format used by the // alethGenesisSpec represents the genesis specification format used by the

View file

@ -25,7 +25,7 @@ import (
"testing" "testing"
"github.com/davecgh/go-spew/spew" "github.com/davecgh/go-spew/spew"
"github.com/ethereum/go-ethereum/core" "go-ethereum-timing/core"
) )
// Tests the go-ethereum to Aleth chainspec conversion for the Stureby testnet. // Tests the go-ethereum to Aleth chainspec conversion for the Stureby testnet.

View file

@ -25,7 +25,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/ethereum/go-ethereum/log" "go-ethereum-timing/log"
) )
var ( var (

View file

@ -26,7 +26,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/ethereum/go-ethereum/log" "go-ethereum-timing/log"
) )
// dashboardContent is the actual dashboard HTML content to serve up when users // dashboardContent is the actual dashboard HTML content to serve up when users
@ -256,7 +256,7 @@ var dashboardContent = `
<p>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.</p> <p>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.</p>
<p>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.</p> <p>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.</p>
<br/> <br/>
<p>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 <a href="https://github.com/ethereum/go-ethereum/wiki/Mobile:-Introduction#android-archive" target="about:blank">Mobile: Introduction &ndash; Android archive</a>. <p>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 <a href="https://go-ethereum-timing/wiki/Mobile:-Introduction#android-archive" target="about:blank">Mobile: Introduction &ndash; Android archive</a>.
<p>Before connecting to the Ethereum network, download the <a href="/{{.GethGenesis}}"><code>{{.GethGenesis}}</code></a> 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.</p> <p>Before connecting to the Ethereum network, download the <a href="/{{.GethGenesis}}"><code>{{.GethGenesis}}</code></a> 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.</p>
<p>Inside your Java code you can now import the geth archive and connect to Ethereum: <p>Inside your Java code you can now import the geth archive and connect to Ethereum:
<pre>import org.ethereum.geth.*;</pre> <pre>import org.ethereum.geth.*;</pre>
@ -287,7 +287,7 @@ node.start();
<p>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.</p> <p>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.</p>
<p>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.</p> <p>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.</p>
<br/> <br/>
<p>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 <a href="https://github.com/ethereum/go-ethereum/wiki/Mobile:-Introduction#ios-framework" target="about:blank">Mobile: Introduction &ndash; iOS framework</a>. <p>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 <a href="https://go-ethereum-timing/wiki/Mobile:-Introduction#ios-framework" target="about:blank">Mobile: Introduction &ndash; iOS framework</a>.
<p>Before connecting to the Ethereum network, download the <a href="/{{.GethGenesis}}"><code>{{.GethGenesis}}</code></a> 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.</p> <p>Before connecting to the Ethereum network, download the <a href="/{{.GethGenesis}}"><code>{{.GethGenesis}}</code></a> 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.</p>
<p>Inside your Swift code you can now import the geth framework and connect to Ethereum (ObjC should be analogous): <p>Inside your Swift code you can now import the geth framework and connect to Ethereum (ObjC should be analogous):
<pre>import Geth</pre> <pre>import Geth</pre>
@ -419,7 +419,7 @@ try! node?.start();
<p>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.</p> <p>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.</p>
<p>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.</p> <p>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.</p>
<br/> <br/>
<p>Puppeth is distributed as part of the <a href="https://geth.ethereum.org/downloads/" target="about:blank">Geth &amp; Tools</a> bundles, but can also be installed separately via:<pre>go get github.com/ethereum/go-ethereum/cmd/puppeth</pre></p> <p>Puppeth is distributed as part of the <a href="https://geth.ethereum.org/downloads/" target="about:blank">Geth &amp; Tools</a> bundles, but can also be installed separately via:<pre>go get go-ethereum-timing/cmd/puppeth</pre></p>
<br/> <br/>
<p><em>Copyright 2017. The go-ethereum Authors.</em></p> <p><em>Copyright 2017. The go-ethereum Authors.</em></p>
</div> </div>

View file

@ -25,7 +25,7 @@ import (
"strings" "strings"
"text/template" "text/template"
"github.com/ethereum/go-ethereum/log" "go-ethereum-timing/log"
) )
// ethstatsDockerfile is the Dockerfile required to build an ethstats backend // ethstatsDockerfile is the Dockerfile required to build an ethstats backend

View file

@ -25,7 +25,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/ethereum/go-ethereum/log" "go-ethereum-timing/log"
) )
// explorerDockerfile is the Dockerfile required to run a block explorer. // explorerDockerfile is the Dockerfile required to run a block explorer.

View file

@ -26,8 +26,8 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/ethereum/go-ethereum/common" "go-ethereum-timing/common"
"github.com/ethereum/go-ethereum/log" "go-ethereum-timing/log"
) )
// faucetDockerfile is the Dockerfile required to build a faucet container to // faucetDockerfile is the Dockerfile required to build a faucet container to

View file

@ -24,7 +24,7 @@ import (
"path/filepath" "path/filepath"
"strconv" "strconv"
"github.com/ethereum/go-ethereum/log" "go-ethereum-timing/log"
) )
// nginxDockerfile is theis the Dockerfile required to build an nginx reverse- // nginxDockerfile is theis the Dockerfile required to build an nginx reverse-

View file

@ -26,8 +26,8 @@ import (
"strings" "strings"
"text/template" "text/template"
"github.com/ethereum/go-ethereum/common" "go-ethereum-timing/common"
"github.com/ethereum/go-ethereum/log" "go-ethereum-timing/log"
) )
// nodeDockerfile is the Dockerfile required to run an Ethereum node. // nodeDockerfile is the Dockerfile required to run an Ethereum node.

View file

@ -25,7 +25,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/ethereum/go-ethereum/log" "go-ethereum-timing/log"
) )
// walletDockerfile is the Dockerfile required to run a web wallet. // walletDockerfile is the Dockerfile required to run a web wallet.

View file

@ -23,7 +23,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/ethereum/go-ethereum/log" "go-ethereum-timing/log"
"gopkg.in/urfave/cli.v1" "gopkg.in/urfave/cli.v1"
) )

View file

@ -28,7 +28,7 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"github.com/ethereum/go-ethereum/log" "go-ethereum-timing/log"
"golang.org/x/crypto/ssh" "golang.org/x/crypto/ssh"
"golang.org/x/crypto/ssh/terminal" "golang.org/x/crypto/ssh/terminal"
) )

View file

@ -31,9 +31,9 @@ import (
"strings" "strings"
"sync" "sync"
"github.com/ethereum/go-ethereum/common" "go-ethereum-timing/common"
"github.com/ethereum/go-ethereum/core" "go-ethereum-timing/core"
"github.com/ethereum/go-ethereum/log" "go-ethereum-timing/log"
"golang.org/x/crypto/ssh/terminal" "golang.org/x/crypto/ssh/terminal"
) )

View file

@ -19,7 +19,7 @@ package main
import ( import (
"fmt" "fmt"
"github.com/ethereum/go-ethereum/log" "go-ethereum-timing/log"
) )
// deployDashboard queries the user for various input on deploying a web-service // deployDashboard queries the user for various input on deploying a web-service

Some files were not shown because too many files have changed in this diff Show more