-
Notifications
You must be signed in to change notification settings - Fork 312
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
Wallet's persistence should have a fixed "header" section #1193
Comments
During today's discussion in the Lib Team Call, we were assuming that this issue requires breaking changes and so that it could be required for alpha.3. What do you think @evanlinjin? |
I can put together a draft for this. The plan will be:
I'm happy to collaborate if there are other ideas out there, and let me know if this isn't the solution you had in mind. After staring at the code in store.rs, I tend to view persistence in terms of a flat file, so I'm wondering if the header concept will generalize just as well to an sqlite context - or if that would entail a totally new interface. edit: I will shelf this idea for now |
I think it will map fine to sqlite. My main concern is that this isn't a "pants on fire" problem for us yet. I'm not sure it's worth the API complexity to remove this error case where you try and change the network or genesis block at a later point. The actual APIs will never produce this changeset so we're talking about making some (but not all) programmer errors impossible. If you are applying the wrong changeset to the wrong thing is it really a big benefit to remove the invalid action of changing the network even when this still can add wrong transactions or blocks to the thing? Definitely bring this up on dev call if you haven't already to see what others think. |
I agree this isn't a critical issue and should be pushed to the post 1.0.0 milestone. |
Describe the enhancement
Add a fixed header section to the wallet's persistence.
This is initially proposed by @LLFourn: #1178 (comment)
Use case
This can be used to store data that are mostly unchanging such as network type, version, etc.
Implementation proposal
The text was updated successfully, but these errors were encountered: