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
Roasbeef
left a comment
There was a problem hiding this comment.
Straight forward changes in this PR, will check out the btcwallet diff.
1062c10 to
7f7fac9
Compare
|
Need #9684 to include the walletdb update |
bitromortac
left a comment
There was a problem hiding this comment.
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. |
bitromortac
left a comment
There was a problem hiding this comment.
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
guggero
left a comment
There was a problem hiding this comment.
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,