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
Make storage not dependent on WASM #499
Conversation
06be03f
to
ef505ea
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll need to do a deeper dive later, but really nice work. I like the direction this PR takes things, so I don't think I'll have any structural change requests later. Just a few comments about some things.
1c512f3
to
983abd8
Compare
needs rebase |
} | ||
|
||
async fn build_indexed_db_database() -> Result<Rexie, MutinyError> { | ||
let rexie = Rexie::builder(WALLET_DATABASE_NAME) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So now everything will be saved into WALLET_DATABASE_NAME
but as a key value store? So the gossip, logging, and peer storage stuff will go away? Kind of a breaking change except those components were not critical right?
Do all the keys in the wallet DB map exactly the same with this PR too? Trying to figure out if all clients will need a fresh instance after this upgrade.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the gossip, logging, and peer storage stuff will go away? Kind of a breaking change except those components were not critical right?
yeah pretty much
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems so. We just have to reconnect peer. I'll make sure to test that.
386aece
to
b6021e6
Compare
Okay I think the code looks good, massive work. Gonna spend a bit of time testing this. |
|
I did an export and import and it didn't look like everything came through. Here's what I got after importing:
But I'm missing a handful of things and it looks like the mnemoic is different so I don't think this works very well. Hard to diagnose what might have gone wrong. The export file looks right but it's hard to parse because logs are in here too, I think we should be excluding that. |
c0725b3
to
6c20352
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LFG
Need to add docs and more tests but this works ™️