-
Notifications
You must be signed in to change notification settings - Fork 219
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
feat!: update status #6008
feat!: update status #6008
Conversation
fixes fix
Test Results (Integration tests) 2 files + 2 12 suites +12 1h 38m 38s ⏱️ + 1h 38m 38s For more details on these failures, see this check. Results for commit 7898aff. ± Comparison against base commit dee1892. ♻️ This comment has been updated with latest results. |
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.
Hi, some comments:
- The states a one-sided or coinbase scanned output goes through are exactly the same, and adding differentiation to statuses just adds complexity to the code.
- I think we should rather add an
is_scanned
column to the completed transactions (and potentially the outputs table as well) and track it that way - values could be0 - not_scanned
,1 - one_sided
and2 - coinbase
. (The outputs table already differentiates between the output types, but does not indicate if it was scanned or not.) - When an output is imported or scanned, the
is_scanned
column can be populated based on the output features output type and associated script.
I disagree with the |
I have added a tech debt issue for addressing after this release: #6010 This is much more inline of what it should be. But its a much bigger refactor. |
This is not strictly true, as only the statuses of old scanned coinbase transactions will be reported incorrectly. |
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.
ACK
(system-level tests performed)
Description
Changes statuses of coinbase transactions and one-sided transactions
Motivation and Context
Transactions now show as one-sided or coinbase, not Faux anymore. This is more inline of what they are and shows more information to the user.
How Has This Been Tested?
manual + unit tests
Breaking Changes
Wallet database changes, and requires recovery to keep existing database.