Go to file
Jeffrey Wilcke 5b283663b4 core: Added new TD strategy which mitigate the risk for selfish mining
Assuming the following scenario where a miner has 15% of all hashing
power and the ability to exert a moderate control over the network to
the point where if the attacker sees a message A, it can't stop A from
propagating, but what it **can** do is send a message B and ensure that
most nodes see B before A. The attacker can then selfish mine and
augment selfish mining strategy by giving his own blocks an advantage.

This change makes the time at which a block is received less relevant
and so the level of control an attacker has over the network no longer
makes a difference.

This change changes the current td algorithm `B_td > C_td` to the new
algorithm `B_td > C_td || B_td == C_td && rnd < 0.5`.
2016-02-18 10:12:13 +01:00
_data Chain tests 2014-12-30 15:42:26 +01:00
accounts accounts/abi: support for typed array 2016-02-14 18:56:56 +01:00
build all: Add GPU mining, disabled by default 2015-10-07 13:19:30 +02:00
cmd parmas, crypto, core, core/vm: homestead consensus protocol changes 2016-02-18 10:08:11 +01:00
common core, core/vm, crypto: fixes for homestead 2016-02-18 10:11:48 +01:00
compression/rle all: fix license headers one more time 2015-07-23 18:35:11 +02:00
containers/docker containers/docker/master-alpine: add the legacy gmp lib back for now 2016-01-31 16:19:55 +02:00
core core: Added new TD strategy which mitigate the risk for selfish mining 2016-02-18 10:12:13 +01:00
crypto parmas, crypto, core, core/vm: homestead consensus protocol changes 2016-02-18 10:08:11 +01:00
errs all: fix license headers one more time 2015-07-23 18:35:11 +02:00
eth parmas, crypto, core, core/vm: homestead consensus protocol changes 2016-02-18 10:08:11 +01:00
ethdb core/state, ethdb, trie: test intermediate secure key leak, fix memdb bug 2016-01-20 16:06:28 +02:00
event event/filter: fix data race in the test 2015-11-05 16:55:53 +02:00
generators all: fix license headers one more time 2015-07-23 18:35:11 +02:00
Godeps Godeps: update all dependencies to latest code 2016-02-11 16:16:52 +02:00
internal/debug internal/debug: APIs for profiling and tracing 2016-01-28 13:36:11 +01:00
jsre jsre: include constructor properties in auto-completion 2016-02-15 16:43:25 +01:00
light rpc: migrated the RPC insterface to a new reflection based RPC layer 2016-01-26 13:51:50 +01: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, core/vm, crypto: fixes for homestead 2016-02-18 10:11:48 +01:00
node cmd, node, rpc: readd inproc RPC client, expose via node 2016-02-09 14:10:40 +02:00
p2p p2p/discover: fix Windows-specific issue for larger-than-buffer packets 2016-01-22 23:44:25 +01:00
params core, core/vm, crypto: fixes for homestead 2016-02-18 10:11:48 +01:00
pow all: Add GPU mining, disabled by default 2015-10-07 13:19:30 +02:00
rlp rlp: move ListSize to raw.go 2015-09-10 19:41:51 +02:00
rpc cmd, node, rpc: readd inproc RPC client, expose via node 2016-02-09 14:10:40 +02:00
tests core: Added new TD strategy which mitigate the risk for selfish mining 2016-02-18 10:12:13 +01:00
trie core/state, ethdb, trie: test intermediate secure key leak, fix memdb bug 2016-01-20 16:06:28 +02:00
whisper rpc: migrated the RPC insterface to a new reflection based RPC layer 2016-01-26 13:51:50 +01:00
.gitattributes .gitattributes: add 2015-08-06 17:18:59 +02:00
.gitignore updated ignore 2015-05-07 00:03:11 +02: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
CONTRIBUTING.md CONTRIBUTING: Added a feature section 2016-02-02 15:44:27 +01: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.