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

wallet2: handle corner case in picking fake outputs #4406

Closed

Conversation

moneromooo-monero
Copy link
Collaborator

If we originally think we have enough outputs on the blockchain
to pick random fake outputs, we might end up with not enough of
them if enough are actually blackballed.

If we originally think we have enough outputs on the blockchain
to pick random fake outputs, we might end up with not enough of
them if enough are actually blackballed.
// outputs, we still need to reach the minimum ring size)
if (allow_blackballed)
break;
MINFO("Not enough non blackballed outputs, we'll allow blackballed ones");
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be helpful here to prompt the user if they want to continue w/ blackballed outputs? Or maybe at the end of output selection, display number of blackballed outputs used (if any)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If this happens, the output is only spendable if it uses blackballed outputs, so it'd be giving the user a choice of using or losing the monero.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, I misunderstood then. Thought the user could stop, and retry again when there might be more non-blackballed outputs available.

I can think of scenarios where losing it might be better than using with reduced privacy, the opposite is obvious.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Well, there might be other outpputs from the wallet to choose from, but as it stand retrying would most likely just select the same ones. There would need to be a patch keeping track (in the wallet) of the amount of blackballed out per amount and not picking those in the first place. That'd mean they're unpendable, but that could be made a wallet setting.

Copy link
Contributor

@fluffypony fluffypony left a comment

Choose a reason for hiding this comment

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

Reviewed

fluffypony added a commit that referenced this pull request Sep 29, 2018
7964d4f wallet2: handle corner case in picking fake outputs (moneromooo-monero)
fluffypony added a commit that referenced this pull request Sep 29, 2018
7964d4f wallet2: handle corner case in picking fake outputs (moneromooo-monero)
@fluffypony fluffypony closed this Sep 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants