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: wallet validation during reorgs #6173

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

SWvheerden
Copy link
Collaborator

Description

Fixes wallet validation during reorgs.

Motivation and Context

spent outputs that have been reorged, should not be marked as unspent. They should be marked as unspen_mined_unconfirmed
If they are marked as unspent it means the wallet can immeadatly grab the output and use it in a new transaction. The validation service first needs to find out what the status of that output is, allthou the wallet knows the original block the transaction was mined in was reorged out, it needs to figure out if the transaction is still mined, unmined or mempool.

@SWvheerden SWvheerden requested a review from a team as a code owner February 28, 2024 10:05
Copy link

Test Results (CI)

    3 files    117 suites   34m 29s ⏱️
1 260 tests 1 260 ✅ 0 💤 0 ❌
3 772 runs  3 772 ✅ 0 💤 0 ❌

Results for commit da27952.

@ghpbot-tari-project ghpbot-tari-project added P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged labels Feb 28, 2024
Copy link

Test Results (Integration tests)

 2 files  + 2  11 suites  +11   20m 51s ⏱️ + 20m 51s
29 tests +29  28 ✅ +28  0 💤 ±0  1 ❌ +1 
30 runs  +30  29 ✅ +29  0 💤 ±0  1 ❌ +1 

For more details on these failures, see this check.

Results for commit da27952. ± Comparison against base commit c6f2b8d.

Copy link
Contributor

@hansieodendaal hansieodendaal left a comment

Choose a reason for hiding this comment

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

I agree with this, but I think we need a unit test covering the new use case.

@SWvheerden SWvheerden merged commit 97fc7b3 into tari-project:development Feb 28, 2024
14 of 16 checks passed
@SWvheerden SWvheerden deleted the fixvalidation branch February 29, 2024 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants