From a5541a5a4f27720b60d4daacea45a85bf4d9aa30 Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Sat, 2 Nov 2024 08:18:26 +0100 Subject: [PATCH] holesky: fix timestamp (#2819) * holesky: fix timestamp * log a bit more about genesis --- nimbus/common/chain_config.nim | 2 +- nimbus/common/common.nim | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/nimbus/common/chain_config.nim b/nimbus/common/chain_config.nim index d618b73c4..efc3156d3 100644 --- a/nimbus/common/chain_config.nim +++ b/nimbus/common/chain_config.nim @@ -540,7 +540,7 @@ func genesisBlockForNetwork*(id: NetworkId): Genesis difficulty: 0x01.u256, gasLimit: 0x17D7840, nonce: uint64(0x1234).to(Bytes8), - timestamp: EthTime(1_695_902_100), + timestamp: EthTime(0x65156994), alloc: decodePrealloc(holeskyAllocData) ) else: diff --git a/nimbus/common/common.nim b/nimbus/common/common.nim index 04b698eb8..90f5f631b 100644 --- a/nimbus/common/common.nim +++ b/nimbus/common/common.nim @@ -125,7 +125,13 @@ proc initializeDb(com: CommonRef) = proc contains(kvt: CoreDbKvtRef; key: openArray[byte]): bool = kvt.hasKeyRc(key).expect "valid bool" if canonicalHeadHashKey().toOpenArray notin kvt: - info "Writing genesis to DB" + info "Writing genesis to DB", + blockHash = com.genesisHeader.rlpHash, + stateRoot = com.genesisHeader.stateRoot, + difficulty = com.genesisHeader.difficulty, + gasLimit = com.genesisHeader.gasLimit, + timestamp = com.genesisHeader.timestamp, + nonce = com.genesisHeader.nonce doAssert(com.genesisHeader.number == 0.BlockNumber, "can't commit genesis block with number > 0") doAssert(com.db.persistHeader(com.genesisHeader,