• Péter Szilágyi's avatar
    consensus, core: EIP 100 polishes, fix chain maker diff · 8c313eed
    Péter Szilágyi authored
    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).
    8c313eed
chain_makers.go 9.48 KB