fixes missing emptyRlp in genesis.nim
This commit is contained in:
parent
960539df81
commit
e710aa9423
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue