mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-12 13:24:21 +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)
|
result.config = publicChainConfig(id)
|
||||||
|
|
||||||
proc toBlock*(g: Genesis, db: BaseChainDB = nil): BlockHeader =
|
proc toBlock*(g: Genesis, db: BaseChainDB = nil): BlockHeader =
|
||||||
let tdb = if db.isNil: trieDB(newMemDB())
|
let tdb = if db.isNil: newMemoryDB()
|
||||||
else: db.db
|
else: db.db
|
||||||
var trie = initHexaryTrie(tdb)
|
var trie = initHexaryTrie(tdb)
|
||||||
var sdb = newAccountStateDB(tdb, trie.rootHash)
|
var sdb = newAccountStateDB(tdb, trie.rootHash)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user