mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-14 07:53:47 +00:00
Updated generate-prestate with removal of totalDifficulty
This commit is contained in:
parent
943de0bf94
commit
69012519aa
1 changed files with 6 additions and 1 deletions
|
|
@ -107,7 +107,12 @@ func (b *PrestateTest) MarshalJSON() ([]byte, error) {
|
||||||
genesis["number"] = hexToIntegerString(genesis["number"].(string))
|
genesis["number"] = hexToIntegerString(genesis["number"].(string))
|
||||||
genesis["timestamp"] = hexToIntegerString(genesis["timestamp"].(string))
|
genesis["timestamp"] = hexToIntegerString(genesis["timestamp"].(string))
|
||||||
genesis["difficulty"] = hexToIntegerString(genesis["difficulty"].(string))
|
genesis["difficulty"] = hexToIntegerString(genesis["difficulty"].(string))
|
||||||
genesis["totalDifficulty"] = hexToIntegerString(genesis["totalDifficulty"].(string))
|
if genesis["totalDifficulty"] != nil {
|
||||||
|
genesis["totalDifficulty"] = hexToIntegerString(genesis["totalDifficulty"].(string))
|
||||||
|
} else {
|
||||||
|
// Total Difficulty has been nuked from the codebase, so we might not have it anymore
|
||||||
|
genesis["totalDifficulty"] = "0"
|
||||||
|
}
|
||||||
|
|
||||||
if found := genesis["baseFeePerGas"]; found != nil {
|
if found := genesis["baseFeePerGas"]; found != nil {
|
||||||
genesis["baseFeePerGas"] = hexToIntegerString(genesis["baseFeePerGas"].(string))
|
genesis["baseFeePerGas"] = hexToIntegerString(genesis["baseFeePerGas"].(string))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue