-
Notifications
You must be signed in to change notification settings - Fork 498
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
InvalidTxExcpetion - Fee too low #2111
Comments
To be precise Wasabi may generate transactions below the minrelayfee because of rounding error. Using the |
In the build transaction function we just do Transaction tx = builder
.SetChange(changeScriptPubKey)
.SendFees(fee)
.BuildTransaction(sign); if we change it to Transaction tx = builder
.SetChange(changeScriptPubKey)
.SendEstimatedFees(feePerBytes)
.BuildTransaction(sign); It looks like it'll only affect the case where Since it is only called from the send tab and we do not set |
The 2s/b sanity limit was removed with the manual fee estimation PR and it got merged, even though the regtests brought out this error. In fact I fixed it a while ago in this PR it just didn't get merged yet: https://github.com/zkSNACKs/WalletWasabi/pull/2047/files#diff-0a80ca357eb532ff3ed358fb4c8caae1R1156-R1161 |
Merged. |
@nopara73 please use @benthecarman NBitcoin has a |
@NicolasDorier You trust your code more and I trust my code more 😄 Although I'm pretty sure the regtests would catch if there are issues with your code, so I'm not against a refactoring. |
It seems Wasabi in some situations calculates a transaction fee that is below the MinFeePolicy calculated by NBitcoin.
@NicolasDorier suggests Wasabi could use
TransactionBuilder::SendEstimatedFee
method to calculate the fee instead of using its own fee calculation algorithm.The text was updated successfully, but these errors were encountered: