mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-28 21:16:29 +00:00
allow custom net parser to skip chain config and only parse genesis data
This commit is contained in:
parent
455756c098
commit
8e4b917fd3
@ -397,9 +397,7 @@ proc processCustomGenesisConfig(customGenesis: JsonNode): ConfigStatus =
|
|||||||
checkForFork(forkDetails, istanbulBlock, petersburgBlock)
|
checkForFork(forkDetails, istanbulBlock, petersburgBlock)
|
||||||
checkForFork(forkDetails, muirGlacierBlock, istanbulBlock)
|
checkForFork(forkDetails, muirGlacierBlock, istanbulBlock)
|
||||||
checkForFork(forkDetails, istanbulBlock, berlinBlock)
|
checkForFork(forkDetails, istanbulBlock, berlinBlock)
|
||||||
else:
|
|
||||||
error "No chain configuration found."
|
|
||||||
quit(1)
|
|
||||||
validateConfigValue(customGenesis, nonce, JString, BlockNonce, checkError = false)
|
validateConfigValue(customGenesis, nonce, JString, BlockNonce, checkError = false)
|
||||||
validateConfigValue(customGenesis, extraData, JSTring, seq[byte], checkError = false)
|
validateConfigValue(customGenesis, extraData, JSTring, seq[byte], checkError = false)
|
||||||
validateConfigValue(customGenesis, gasLimit, JString, int64, checkError = false)
|
validateConfigValue(customGenesis, gasLimit, JString, int64, checkError = false)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user