go-ethereum/tests
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
..
files tests: updated homestead tests 2016-02-18 10:08:18 +01:00
block_test.go tests: updated homestead tests 2016-02-18 10:08:18 +01:00
block_test_util.go tests: updated homestead tests 2016-02-18 10:08:18 +01:00
init.go core: Added new TD strategy which mitigate the risk for selfish mining 2016-02-18 10:12:13 +01:00
rlp_test.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
rlp_test_util.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
state_test.go core, core/vm, crypto: fixes for homestead 2016-02-18 10:11:48 +01:00
state_test_util.go tests: updated homestead tests 2016-02-18 10:08:18 +01:00
transaction_test.go tests: updated homestead tests 2016-02-18 10:08:18 +01:00
transaction_test_util.go tests: updated homestead tests 2016-02-18 10:08:18 +01:00
util.go parmas, crypto, core, core/vm: homestead consensus protocol changes 2016-02-18 10:08:11 +01:00
vm_test.go cmd/evm, core/vm, test: refactored VM and core 2015-10-04 01:13:54 +02:00
vm_test_util.go core/state, core, miner: handle missing root error from state.New 2015-10-16 02:22:06 +02:00