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

Fix list_spendable() to not return inflight txos #1008

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

nick-mobilecoin
Copy link
Contributor

Previously list_spendable() would return back an inflight txo if it
previously existed in a transaction log that failed. Now
list_spendable() correctly excludes txos that are in flight.

Previously `list_spendable()` would return back an inflight txo if it
previously existed in a transaction log that failed. Now
`list_spendable()` correctly excludes txos that are in flight.
Copy link

docs-page bot commented Sep 19, 2024

To view this pull requests documentation preview, visit the following URL:

docs.page/mobilecoinofficial/full-service~1008

Documentation is deployed and generated using docs.page.

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 98.78049% with 1 line in your changes missing coverage. Please review.

Project coverage is 69.05%. Comparing base (ab2af32) to head (37121ac).
Report is 207 commits behind head on main.

Files with missing lines Patch % Lines
full-service/src/db/txo.rs 98.78% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1008      +/-   ##
==========================================
+ Coverage   60.12%   69.05%   +8.92%     
==========================================
  Files          88      125      +37     
  Lines       12356    16625    +4269     
  Branches     2010     2791     +781     
==========================================
+ Hits         7429    11480    +4051     
- Misses       3238     5145    +1907     
+ Partials     1689        0    -1689     

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

Copy link
Collaborator

@holtzman holtzman left a comment

Choose a reason for hiding this comment

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

except for the issue of changing the semantics of build_transaction to not reserving its input txos until the tombstone block, looks good!

approving in advance of resolving that discussion.

@nick-mobilecoin nick-mobilecoin merged commit 1730737 into main Sep 19, 2024
3 checks passed
@nick-mobilecoin nick-mobilecoin deleted the nick/fix-list-spendable branch September 19, 2024 23:42
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