mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-23 18:49:57 +00:00
Use real file for sqlite
This commit is contained in:
parent
04f404fb22
commit
3ec46fa668
@ -43,7 +43,7 @@ type
|
||||
|
||||
proc newTrieDb(): TrieDatabaseRef =
|
||||
# XXX: Setup db storage location according to config
|
||||
result = trieDB(newChainDb(":memory:"))
|
||||
result = trieDB(newChainDb("nimbus.db"))
|
||||
|
||||
proc initializeEmptyDb(db: BaseChainDB) =
|
||||
echo "Writing genesis to DB"
|
||||
@ -80,6 +80,7 @@ proc start(): NimbusObject =
|
||||
|
||||
if canonicalHeadHashKey().toOpenArray notin trieDB:
|
||||
initializeEmptyDb(chainDb)
|
||||
assert(canonicalHeadHashKey().toOpenArray in trieDB)
|
||||
|
||||
nimbus.ethNode = newEthereumNode(keypair, address, conf.net.networkId,
|
||||
nil, nimbusClientId)
|
||||
|
Loading…
x
Reference in New Issue
Block a user