-
-
Notifications
You must be signed in to change notification settings - Fork 561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using identity's keystore as default first #677
Conversation
4fed0f1
to
e48e603
Compare
1e3edf0
to
f23527f
Compare
588765e
to
7eedd43
Compare
@haadcode I believe all the tests should pass now |
4000379
to
a2c3fa4
Compare
Ok, pushed some more requested changed. @haadcode @shamb0t Please have a look. I'm too deep in the weeds to think about it clearly / objectively and some of the requested changes require changes to our semantics around You can see examples of this in the tests and also in this |
@aphelionz can you provide tests which fail that this PR fixes? It's still not clear to me that this is necessary. Are these essentially keystore and cache managers? Is it inconsistent to expect users to close cache/keystore themselves if they are non-default ones passed in? Also can you elaborate on
What are the requested changes and what are the changes to the semantics around |
package-lock pointing to branch more cache management stuff WIP Passing tests Removing static linking fixing tests and linting fixing package.json removing last debugger removing last debugger Adding keystore and cache getters PR comments Removing extraneous cache management Package files Closing caches using dbAddress as this.caches key new tests for store management Working but with slightly different semantics Rebuild package-lock Dependency updates removeHandler restoring db.close in replication status test package.json files move handler to orbitdb.caches Test updates Cache management cleanup use store.options.directory requestCache in onLoad and onDrop add status test Adding db to this.stores in onLoad and onDrop Working RC5 before rebase Updating package-lock restoring original replicaiton status test package files removing keystore getter more keystore cleanup typo
7eb4661
to
f9feb27
Compare
This PR uses the keystore from
options.identity
first in createInstance, and then looks foroptions.keystore
Additionally, it marks a cache as "default" which means the Store class won't close it, as opposed to a custom cache location created by passing in
options.directory
, which it will close.