Skip to content
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

Merged
merged 1 commit into from
Sep 8, 2024

Conversation

nuttycom
Copy link
Contributor

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.

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.
Copy link

codecov bot commented Aug 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.06%. Comparing base (a732932) to head (5ad432a).
Report is 33 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

@nuttycom nuttycom requested a review from daira September 3, 2024 19:25
AArnott added a commit to nerdcash/librustzcash that referenced this pull request Sep 7, 2024
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)
Copy link
Contributor

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"

Copy link
Contributor

@daira daira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@nuttycom nuttycom merged commit 04478c7 into main Sep 8, 2024
27 of 28 checks passed
@nuttycom nuttycom deleted the wallet/do_not_require_transparent branch September 8, 2024 15:34
AArnott added a commit to nerdcash/librustzcash that referenced this pull request Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants