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_backend: Make WalletRead::get_transaction return Result<Option<Transaction>, _> #1275

Merged
merged 1 commit into from
Mar 15, 2024

Conversation

nuttycom
Copy link
Contributor

@nuttycom nuttycom commented Mar 14, 2024

This should never have had the behavior of returning an error on a missing txid in the first place; doing so conflates database corruption or connectivity errors with the ordinary case where data may not be available.

Best reviewed hiding whitespace changes.

…lt<Option<Transaction>, _>`

This should never have had the behavior of returning an error on a
missing txid in the first place; doing so conflates database corruption
or connectivity errors with the ordinary case where data may not be
available.
Copy link
Contributor

@str4d str4d left a comment

Choose a reason for hiding this comment

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

utACK 46fd6ab

Copy link

codecov bot commented Mar 14, 2024

Codecov Report

Attention: Patch coverage is 35.89744% with 25 lines in your changes are missing coverage. Please review.

Project coverage is 63.42%. Comparing base (c3d82b2) to head (46fd6ab).

Files Patch % Lines
zcash_client_sqlite/src/wallet.rs 28.57% 20 Missing ⚠️
...wallet/init/migrations/sapling_memo_consistency.rs 50.00% 3 Missing ⚠️
zcash_client_backend/src/data_api.rs 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1275      +/-   ##
==========================================
- Coverage   63.46%   63.42%   -0.05%     
==========================================
  Files         121      121              
  Lines       13702    13706       +4     
==========================================
- Hits         8696     8693       -3     
- Misses       5006     5013       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nuttycom nuttycom merged commit 50a4ce3 into zcash:main Mar 15, 2024
20 of 25 checks passed
@nuttycom nuttycom deleted the get_transaction_option branch March 15, 2024 00:18
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.

Post-hoc ACK

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.

3 participants