-
Notifications
You must be signed in to change notification settings - Fork 106
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
Add remaining value balance check #2565
Add remaining value balance check #2565
Conversation
We made progress with the UTXOs here but still have 4 tests failing here:
|
That's because the proptests generate random values, which don't obey the remaining transaction value rule. We had this fix on our list of tasks: But I just started it yesterday, because of the mempool planning work and some complicated bugs in designs and reviews. I should be able to push a PR which sets all the generated amounts to zero today. But we can't merge this PR until we have valid non-zero amounts. That might take me until tomorrow. |
Are you going to fix the transparent value balance signs, or should I? Here are the changes we need to make to code we've already merged: This should fix the transparent sign bug you're seeing in your draft code. |
If you rebase this PR on PR #2566, the tests should pass. But I'll need more time to complete that PR - we need to test with valid non-zero amounts. |
I update the docs here: We still need to flip the transparent sign in If you do get to it today, I can do it, because I need it to complete PR #2566. (Otherwise I'll have to swap signs in that as well.) |
Motivation
After #2561 we are in position to readd the remaining value balance consensus rule.
Designs
https://zebra.zfnd.org/dev/rfcs/0012-value-pools.html#definitions
Solution
Readd the check.
Review
I will like @teor2345 can take a look, we have some tests failing.
This change is