-
Notifications
You must be signed in to change notification settings - Fork 251
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
zcash_client_sqlite
: Add migration to link utxo
table to transactions
#503
Comments
We discovered that is more challenging than we thought, because if we set the block height of the |
This was partially closed by #1402. We added the migrations, but did not add logic to fetch extra data for the previously-missing |
Currently the
utxo
table has columns for storing the transaction ID, and the mined block height. These are almost always duplicative of entries in thetransaction
table, and having them stored separately inhibits other possible relational queries.We should implement a migration to:
tx
foreign key column.utxo
entries to reference matchingtransactions
entries.utxo
entries that do not have matches, fetch the corresponding transactions fromlightwalletd
to populate the remainingtransactions
entries that the wallet assumes are populated during scanning.The division of this work between the database migration and the network fetching might affect internals, but at a high level the migration API provided to
zcash_client_sqlite
users should hopefully be straightforward in the instructions it gives them.The text was updated successfully, but these errors were encountered: