holesky: fix timestamp (#2819)
* holesky: fix timestamp * log a bit more about genesis
This commit is contained in:
parent
c88c1911c9
commit
a5541a5a4f
|
@ -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:
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue