-
Notifications
You must be signed in to change notification settings - Fork 60
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
[Bug] Calculating private transaction fees. #66
Comments
Maybe spending the dust amount as a fee would clear this up (warn the user before doing so)? |
That was initially what I planned on doing, seems like the easiest way to translate it into code too. |
Okay, so I'm modifying EstimateAnonFee() and creating a new EstimateAnonFeeIncluded() which will do a while loop of EstimateAnonFee, deducting the fee from the amount to spend until it is below max amount. |
I'm currently lowering nMaxAmount in steps of TX_MIN_ANON_FEE, which is the lowest barrier to spend something which seems like a foolproof step to me. |
When trying to spend the full amount of SDT, it often ends up being a messy procedure with lots of trial and error.
When you lower the amount to accommodate for the fee, it often increases the transaction size causing it to require a larger fee. It's a vicious cycle that eventually stops.
The text was updated successfully, but these errors were encountered: