8c313eed26
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). |
||
---|---|---|
.. | ||
algorithm_go1.7.go | ||
algorithm_go1.8_test.go | ||
algorithm_go1.8.go | ||
algorithm_test.go | ||
algorithm.go | ||
consensus_test.go | ||
consensus.go | ||
ethash_test.go | ||
ethash.go | ||
sealer.go |