-
Notifications
You must be signed in to change notification settings - Fork 330
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
SQLite shouldn't depend on serde_json
#1695
Comments
Agreed. I originally put this in to handle the generic Anchors, but now I think we only need height and hash and those can go in their own columns. |
I would like to work on this. |
@nymius that would be great. IMO the approach should be to just implement things for anchors that implement cc @evanlinjin |
Ok, so your approach is to Correcting me here: |
Hey @nymius was just talking to @LLFourn in person about this. The conclusion is to constrain support to just be for a single anchor type Here are the reasons:
I think this change will need to be backwards compatible. In |
I've just discovered on master re-base that #1736 breaks this assumption. The idea was to add anchors without associated Txs, so I suppose it's ok if I modify the test to use |
@nymius modifying the tests to use |
If we depend on
serde_json
for serializing anchors we will never be able to remove it since it will always be needed to do migrations. Currently there is only one widely used anchor. We can just use some custom serialization or normalize it into columns. We can require that the anchor implement{To/Fom}Sql
for sqlite support.I am bringing this up in the hope that we can fix this before doing a v1 release. Beta users can be advised to delete their DB data and rebuild it by doing a
full_scan
once we make the change.The text was updated successfully, but these errors were encountered: