Go to file
Felix Lange dff9b4246f cmd/geth, cmd/utils: improve input handling
These changes make prompting behave consistently on all platforms:

* The input buffer is now global.
  Buffering was previously set up for each prompt, which can cause weird
  behaviour, e.g. when running "geth account update <input.txt" where
  input.txt contains three lines. In this case, the first password
  prompt would fill up the buffer with all lines and then use only the
  first one.

* Print the "unsupported terminal" warning only once.
  Now that stdin prompting has global state, we can use it to track
  the warning there.

* Work around small liner issues, particularly on Windows.
  Prompting didn't work under most of the third-party terminal emulators
  on Windows because liner assumes line editing is always available.
2016-04-12 15:56:49 +02:00
_data Chain tests 2014-12-30 15:42:26 +01:00
.github templates: added issue template 2016-03-14 23:39:21 +01:00
accounts accounts/abi/bind: support generating bindings for various arrays 2016-04-05 18:20:50 +03:00
build all: Add GPU mining, disabled by default 2015-10-07 13:19:30 +02:00
cmd cmd/geth, cmd/utils: improve input handling 2016-04-12 15:56:49 +02:00
common Merge pull request #2404 from obscuren/common-hash-json-length-validation 2016-04-01 14:53:38 +02:00
compression/rle all: Rename crypto.Sha3{,Hash}() to crypto.Keccak256{,Hash}() 2016-02-21 22:34:34 +00:00
containers Added Vagrantfile so that developers can spin up a VM to build geth 2016-02-14 21:48:35 -05:00
core core, miner: remove Frontier canary 2016-04-04 13:18:34 +03:00
crypto tests: remove eth, node, accounts dependencies 2016-04-12 15:34:39 +02:00
errs all: fix license headers one more time 2015-07-23 18:35:11 +02:00
eth Merge pull request #2359 from bas-vk/rpc-optional-args 2016-04-12 14:03:21 +02:00
ethdb cmd, eth, ethdb, node: prioritise chaindata for resources, bump cache 2016-03-09 10:33:39 +02:00
event event/filter: fix data race in the test 2015-11-05 16:55:53 +02:00
generators generators: Don't generate params/protocol_params.go with +x bit 2016-02-21 22:46:32 +00:00
Godeps Godeps: pull in the ethash opencl fix 2016-04-11 17:14:32 +03:00
internal/debug cmd/utils, internal/debug: show all stacks for 10x Ctrl-C induced panic 2016-03-12 00:59:37 +01:00
jsre rpc: various fixes/enhancements 2016-04-12 11:02:39 +02:00
light all: Rename crypto.Sha3{,Hash}() to crypto.Keccak256{,Hash}() 2016-02-21 22:34:34 +00:00
logger logger/glog: clean up flag getters 2016-01-27 00:51:14 +01:00
metrics eth, metrics, p2p: prepare metrics and net packets to eth/62 2015-08-21 10:30:57 +03:00
miner core, miner: remove Frontier canary 2016-04-04 13:18:34 +03:00
node rpc: various fixes/enhancements 2016-04-12 11:02:39 +02:00
p2p p2p: enable EIP-8 handshake sending 2016-04-03 23:10:11 +02:00
params core: added basic chain configuration 2016-04-01 01:01:10 +02:00
pow all: Add GPU mining, disabled by default 2015-10-07 13:19:30 +02:00
rlp rlp: add "tail" struct tag 2016-02-19 11:14:29 +01:00
rpc Merge pull request #2359 from bas-vk/rpc-optional-args 2016-04-12 14:03:21 +02:00
tests tests: remove eth, node, accounts dependencies 2016-04-12 15:34:39 +02:00
trie cmd, eth, ethdb, node: prioritise chaindata for resources, bump cache 2016-03-09 10:33:39 +02:00
whisper rpc: various fixes/enhancements 2016-04-12 11:02:39 +02:00
.gitattributes .gitattributes: add 2015-08-06 17:18:59 +02:00
.gitignore Added Vagrantfile so that developers can spin up a VM to build geth 2016-02-14 21:48:35 -05:00
.gitmodules cmd/geth, jsre: updated ethereum.js => web3.js 2015-04-24 11:37:58 +02:00
.mailmap Adjust .mailmap 2015-07-07 11:50:49 -05:00
.travis.yml crypto/secp256k1: remove dependency on libgmp 2015-12-03 21:12:13 +01:00
AUTHORS all: update license information 2015-07-07 14:12:44 +02:00
COPYING all: update license information 2015-07-07 14:12:44 +02:00
COPYING.LESSER all: update license information 2015-07-07 14:12:44 +02:00
Makefile Makefile, cmd/geth: support building Android archives 2015-12-14 14:28:14 +02:00
README.md crypto/secp256k1: remove dependency on libgmp 2015-12-03 21:12:13 +01:00
VERSION VERSION, cmd/geth: bumped version 1.4.0 2015-11-03 11:48:18 +01:00

Ethereum Go

Official golang implementation of the Ethereum protocol

      | Linux   | OSX | ARM | Windows | Tests

----------|---------|-----|-----|---------|------ develop | Build+Status | Build+Status | Build+Status | Build+Status | Buildr+Status codecov.io master | Build+Status | Build+Status | Build+Status | Build+Status | Buildr+Status codecov.io

API Reference Gitter

Automated development builds

The following builds are build automatically by our build servers after each push to the develop branch.

Building the source

For prerequisites and detailed build instructions please read the Installation Instructions on the wiki.

Building geth requires both a Go and a C compiler. You can install them using your favourite package manager. Once the dependencies are installed, run

make geth

Executables

Go Ethereum comes with several wrappers/executables found in the cmd directory:

Command
geth Ethereum CLI (ethereum command line interface client)
bootnode runs a bootstrap node for the Discovery Protocol
ethtest test tool which runs with the tests suite: /path/to/test.json > ethtest --test BlockTests --stdin.
evm is a generic Ethereum Virtual Machine: evm -code 60ff60ff -gas 10000 -price 0 -dump. See -h for a detailed description.
disasm disassembles EVM code: `echo "6001"
rlpdump prints RLP structures

Command line options

geth can be configured via command line options, environment variables and config files.

To get the options available:

geth help

For further details on options, see the wiki

Contribution

If you'd like to contribute to go-ethereum please fork, fix, commit and send a pull request. Commits who do not comply with the coding standards are ignored (use gofmt!). If you send pull requests make absolute sure that you commit on the develop branch and that you do not merge to master. Commits that are directly based on master are simply ignored.

See Developers' Guide for more details on configuring your environment, testing, and dependency management.