go-pulse/consensus/ethash
Péter Szilágyi 8c313eed26
consensus, core: EIP 100 polishes, fix chain maker diff
This PR polishes the EIP 100 difficulty adjustment algorithm
to match the same mechanisms as the Homestead was implemented
to keep the code uniform. It also avoids a few memory allocs
by reusing big1 and big2, pulling it out of the common package
and into ethash.

The commit also fixes chain maker to forward the uncle hash
when creating a simulated chain (it wasn't needed until now
so we just skipped a copy there).
2017-06-30 16:42:09 +03:00
..
algorithm_go1.7.go core, consensus: pluggable consensus engines (#3817) 2017-04-05 00:16:29 +02:00
algorithm_go1.8_test.go rlp, trie, contracts, compression, consensus: improve comments (#14580) 2017-06-12 14:45:17 +02:00
algorithm_go1.8.go core, consensus: pluggable consensus engines (#3817) 2017-04-05 00:16:29 +02:00
algorithm_test.go core, consensus: pluggable consensus engines (#3817) 2017-04-05 00:16:29 +02:00
algorithm.go rlp, trie, contracts, compression, consensus: improve comments (#14580) 2017-06-12 14:45:17 +02:00
consensus_test.go consensus/ethash: fix TestCalcDifficulty 2017-05-24 15:40:54 +02:00
consensus.go consensus, core: EIP 100 polishes, fix chain maker diff 2017-06-30 16:42:09 +03:00
ethash_test.go core, consensus: pluggable consensus engines (#3817) 2017-04-05 00:16:29 +02:00
ethash.go rlp, trie, contracts, compression, consensus: improve comments (#14580) 2017-06-12 14:45:17 +02:00
sealer.go consensus, eth: don't CPU mine by default during remote mining 2017-04-07 17:22:06 +03:00