-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Fix inaccurate locked_balance
#9693
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 inaccurate locked_balance
#9693
Conversation
Important Review skippedAuto reviews are limited to specific labels. 🏷️ Labels to auto review (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
6231c36
to
1062c10
Compare
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.
Straight forward changes in this PR, will check out the btcwallet diff.
1062c10
to
7f7fac9
Compare
Need #9684 to include the walletdb update |
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.
Code-wise LGTM. I just wanted to check that the referenced issue is fixed with this since the itests are not meant to demonstrate the bug (as discussed with @yyforyongyu).
7f7fac9
to
6119e21
Compare
Built on top of #9684 since that PR fixes the tests. |
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.
Code-wise LGTM. I just wanted to check that the referenced issue is fixed with this since the itests are not meant to demonstrate the bug (as discussed with @yyforyongyu).
It was not clear to me that this actually covers the bug, but not in terms of ghost utxos appearing but in terms of the locked balance not clearing up (with the changes the locked coins get removed because the wallet is able to recognize the spends).
LGTM, very nice investigation @yyforyongyu 🚀
Needs a rebase. |
Standby nodes are no longer used so we update `AssertNumUTXOs` to remove the confusing check.
6119e21
to
3d69d70
Compare
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.
Great investigation and fixes, thanks a lot! LGTM 🎉
Thanks a lot @yyforyongyu and all reviewers @guggero @bitromortac @Roasbeef . Great work! Some testing feedback and Qs from me at #8786 (comment) |
Depends on btcsuite/btcwallet#1002, in this PR we now fix the issue found in,