-
Notifications
You must be signed in to change notification settings - Fork 255
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: Do not require a transparent key for migrations. #1524
Conversation
The `reserve_until` method for generating ephemeral addresses is used in database migrations, but it makes no sense to use this in the case that the UFVK for an account contains no transparent component; such accounts can never be used to make ZIP 320 spends.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1524 +/- ##
==========================================
- Coverage 61.06% 61.06% -0.01%
==========================================
Files 141 141
Lines 16675 16675
==========================================
- Hits 10183 10182 -1
- Misses 6492 6493 +1 ☔ View full report in Codecov by Sentry. |
This reverts commit 0956b66. This is because the official fix in zcash#1524 will address the bug another way.
])?; | ||
// used_in_tx and seen_in_tx are initially NULL | ||
let mut stmt_insert_ephemeral_address = conn.prepare_cached( | ||
"INSERT INTO ephemeral_addresses (account_id, address_index, address) |
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.
Non-blocking typo below: "indicies"
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.
utACK
The
reserve_until
method for generating ephemeral addresses is used in database migrations, but it makes no sense to use this in the case that the UFVK for an account contains no transparent component; such accounts can never be used to make ZIP 320 spends.