This website requires JavaScript.
Explore
Help
Sign In
cerc-io
/
plugeth
Watch
18
Star
0
Fork
1
You've already forked plugeth
Code
Issues
4
Pull Requests
Packages
Projects
Releases
Wiki
Activity
3cbece6224
plugeth
/
cmd
/
evm
/
testdata
/
14
/
txs.json
2 lines
3 B
JSON
Raw
Normal View
History
Unescape
Escape
cmd/evm: add difficulty calculation to t8n tool (#23353) 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.
2021-08-25 13:04:26 +00:00
[
]
Reference in New Issue
Copy Permalink