Loading of existing db is not working. #9
Unanswered
reitcircles
asked this question in
Q&A
Replies: 1 comment
-
Also what is the best way to store the trie into say a postgres database. What do we need to store as data structure that can be reloaded ? Something like a JSON based structure would be ideal. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When we use the following function:
const trie = await Trie.load(new Store('db'))
following error is comingcaught ModuleError: Database is not open` at maybeError (... node_modules/abstract-level/abstract-level.js:806:27) at ClassicLevel.get (.../node_modules/abstract-level/abstract-level.js:282:9) at Store.get .../node_modules/@aiken-lang/merkle-patricia-forestry/dist/index.cjs:207:44) at _Trie.load .../node_modules/@aiken-lang/merkle-patricia-forestry/dist/index.cjs:377:30) at REPL13:1:52 { code: 'LEVEL_DATABASE_NOT_OPEN'
Beta Was this translation helpful? Give feedback.
All reactions