-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Conversation
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.
4e09e8f
to
7964d4f
Compare
// 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"); |
There was a problem hiding this comment.
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)?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed
7964d4f wallet2: handle corner case in picking fake outputs (moneromooo-monero)
7964d4f wallet2: handle corner case in picking fake outputs (moneromooo-monero)
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.