newMemoryDB

This commit is contained in:
Yuriy Glukhov 2018-09-19 12:40:35 +03:00 committed by zah
parent 0adfaf0f31
commit 5acd6cc049
1 changed files with 1 additions and 1 deletions

View File

@ -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)