holesky: fix timestamp (#2819)

* holesky: fix timestamp

* log a bit more about genesis
This commit is contained in:
Jacek Sieka 2024-11-02 08:18:26 +01:00 committed by GitHub
parent c88c1911c9
commit a5541a5a4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View File

@ -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:

View File

@ -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,