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 coinjoins shared overhead calculation #11635

Conversation

lontivero
Copy link
Collaborator

On testnet, when the size of the coinjoin transaction is small, the weight of the transaction shared overhead is greater and can fall below the minimum transaction relay, failing to broadcast it.

The current shared overhead assumes the number of inputs and outputs is greater than 254, what is false in testnet in most of the cases. This is why this problem is important for TestNet only.

Copy link
Collaborator

@kristapsk kristapsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@lontivero lontivero force-pushed the fix-coinjoins-shared-overhead-calculation branch from fbb3503 to e241b7f Compare October 4, 2023 16:48
@pull-request-size pull-request-size bot added size/M and removed size/S labels Oct 4, 2023
@lontivero lontivero marked this pull request as draft October 4, 2023 16:49
@lontivero lontivero marked this pull request as ready for review October 13, 2023 14:06
@lontivero
Copy link
Collaborator Author

This PR doesn't fix the problem but it should make it easier to understand the calculation and work on the real issue.

kiminuo
kiminuo previously approved these changes Oct 13, 2023
Copy link
Collaborator

@kiminuo kiminuo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice explanations

Co-authored-by: Kimi <58662979+kiminuo@users.noreply.github.com>
@lontivero lontivero merged commit ae11445 into WalletWasabi:master Oct 13, 2023
6 of 7 checks passed
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.

None yet

3 participants