diff --git a/nimbus/constants.nim b/nimbus/constants.nim index b7600be23..4a0c71978 100644 --- a/nimbus/constants.nim +++ b/nimbus/constants.nim @@ -16,8 +16,8 @@ const # address zero by accident, unrecoverably, due to poor user interface issues. ZERO_ADDRESS* = default(EthAddress) - # ZERO_HASH32 is the parent hash of genesis blocks. - ZERO_HASH32* = Hash256() + # ZERO_HASH256 is the parent hash of genesis blocks. + ZERO_HASH256* = Hash256() GAS_LIMIT_EMA_DENOMINATOR* = 1_024 GAS_LIMIT_ADJUSTMENT_FACTOR* = 1_024 @@ -43,10 +43,10 @@ const GENESIS_BLOCK_NUMBER* = 0.toBlockNumber GENESIS_DIFFICULTY* = 131_072.u256 GENESIS_GAS_LIMIT* = 3_141_592 - GENESIS_PARENT_HASH* = ZERO_HASH32 + GENESIS_PARENT_HASH* = ZERO_HASH256 GENESIS_COINBASE* = ZERO_ADDRESS GENESIS_NONCE* = "\x00\x00\x00\x00\x00\x00\x00B" - GENESIS_MIX_HASH* = ZERO_HASH32 + GENESIS_MIX_HASH* = ZERO_HASH256 GENESIS_EXTRA_DATA* = "" GAS_LIMIT_MINIMUM* = 5000 GAS_LIMIT_MAXIMUM* = high(GasInt) diff --git a/nimbus/p2p/clique/clique_verify.nim b/nimbus/p2p/clique/clique_verify.nim index dadd428e7..831b71485 100644 --- a/nimbus/p2p/clique/clique_verify.nim +++ b/nimbus/p2p/clique/clique_verify.nim @@ -295,7 +295,7 @@ proc cliqueVerifyImpl*(c: Clique; header: BlockHeader; ## optionally pass in a batch of parents (ascending order) to avoid looking ## those up from the database. This is useful for concurrently verifying ## a batch of new headers. - c.failed = (ZERO_HASH32,cliqueNoError) + c.failed = (ZERO_HASH256,cliqueNoError) block: # Check header fields independent of parent blocks