fixes missing emptyRlp in genesis.nim

This commit is contained in:
jangko 2021-11-02 17:25:22 +07:00
parent 960539df81
commit e710aa9423
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
1 changed files with 1 additions and 0 deletions

View File

@ -8,6 +8,7 @@ import
proc toBlock*(g: Genesis, db: BaseChainDB = nil): BlockHeader =
let (tdb, pruneTrie) = if db.isNil: (newMemoryDB(), true)
else: (db.db, db.pruneTrie)
tdb.put(emptyRlpHash.data, emptyRlp)
var sdb = newAccountStateDB(tdb, emptyRlpHash, pruneTrie)
for address, account in g.alloc: