84c51bc5ec
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.
12 lines
253 B
JSON
12 lines
253 B
JSON
{
|
|
"a94f5374fce5edbc8e2a8697c15331677e6ebf0b": {
|
|
"balance": "0x5ffd4878be161d74",
|
|
"code": "0x",
|
|
"nonce": "0xac",
|
|
"storage": {}
|
|
},
|
|
"0x8a8eafb1cf62bfbeb1741769dae1a9dd47996192":{
|
|
"balance": "0xfeedbead",
|
|
"nonce" : "0x00"
|
|
}
|
|
} |