-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Obtain minimumFee from mempool api in place of hardcoded value #5235
Conversation
Beautiful |
@jmacxx Tests are broken right now. You need to adapt the Preferences constructor in the tests. |
fixed, thanks @ripcurlx! 👍 |
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.
I'm done with the review, but hold back on an ACK because I want to know if the old BaseCurrencyNetwork#getDefaultMinFeePerVbyte
method can be removed if never to be used again. (I'm chasing these min fee rate changes in the api+tests).
Review issues have been commented on and/or resolved. 👍 |
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.
ACK - tested it on Regtest. I only get the default value set as long as it is not delivered by https://price.bisq.wiz.biz/ on regtest. Still want to wait for feedback from @wiz on the exact deployment procedure and ops state before this gets merged.
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.
ACK - running PR branch on https://price.bisq.wiz.biz/getFees and new minimumFee
field correctly matches 2x the minimum fee displayed on mempool.space
Tested it and a couple of edge cases against https://price.bisq.wiz.biz/. Everything seems to behave fine. The only UX drawback is, that we are manipulating the used fee if the new min fee is above the custom set value. |
that's exactly what we want tho, for bisq to create valid transactions that will be accepted to the mempool, and not immediately corrupt the user's wallet heh - maybe later @jmacxx can improve the send page to have better fee display |
It is used again as soon as the minimum fee is below the custom fee again. As it prevents the problem of corrupted wallets which we see every now and then I'll create a hotfix branch based on v1.5.7. |
Fixes #5229
example data from mempool api:
Bisq pricenode obtains fee info:
averaged fee data published by PriceNode:
Bisq app obtains fee from PriceNode:
Bisq withdrawal fee rate in settings screen cannot be set below the minFeePerVbyte