mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-24 03:00:25 +00:00
newMemoryDB
This commit is contained in:
parent
0adfaf0f31
commit
5acd6cc049
@ -64,7 +64,7 @@ proc defaultGenesisBlockForNetwork*(id: PublicNetwork): Genesis =
|
||||
result.config = publicChainConfig(id)
|
||||
|
||||
proc toBlock*(g: Genesis, db: BaseChainDB = nil): BlockHeader =
|
||||
let tdb = if db.isNil: trieDB(newMemDB())
|
||||
let tdb = if db.isNil: newMemoryDB()
|
||||
else: db.db
|
||||
var trie = initHexaryTrie(tdb)
|
||||
var sdb = newAccountStateDB(tdb, trie.rootHash)
|
||||
|
Loading…
x
Reference in New Issue
Block a user