• Martin Holst Swende's avatar
    cmd/evm: add difficulty calculation to t8n tool (#23353) · 84c51bc5
    Martin Holst Swende authored
    This PR adds functionality to the evm t8n to calculate ethash difficulty. If the caller does not provide a currentDifficulty, but instead provides the parentTimestamp (well, semi-optional, will default to 0 if not given), and parentDifficulty, we can calculate it for him.
    
    The caller can also provide a parentUncleHash. In most, but not all cases, the parent uncle hash also affects the formula. If no such hash is provided (or, if the empty all-zero hash is provided), it's assumed that there were no uncles.
    84c51bc5
Name
Last commit
Last update
..
abidump Loading commit data...
abigen Loading commit data...
bootnode Loading commit data...
checkpoint-admin Loading commit data...
clef Loading commit data...
devp2p Loading commit data...
ethkey Loading commit data...
evm Loading commit data...
faucet Loading commit data...
geth Loading commit data...
p2psim Loading commit data...
puppeth Loading commit data...
rlpdump Loading commit data...
utils Loading commit data...