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 DependencyGraph vsize calculation #12618

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lontivero
Copy link
Collaborator

Fixes #12584

DependencyGraph class required the inputs' amount and size to compute the available vsize . However, we already know the available vsize by summing the vsize credentials, which are the source of truth. If well recomputing the available vsize is not correct, it was never a problem until the payment in coinjoins were introduced because that feature requires to introduce "virtual" inputs to the list of registered inputs what the DependencyGraph didn't know how to treat (and shouldn't have to treat at all).

In fact, the `DependencyGraph

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CoinJoinClient failed with exception: 'System.ArgumentException: Overall balance must not be negative.
1 participant