-
Notifications
You must be signed in to change notification settings - Fork 38.6k
mempool: Replace maxFeeRate of 10000*minRelayTxFee with maxTxFee #7084
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
mempool: Replace maxFeeRate of 10000*minRelayTxFee with maxTxFee #7084
Conversation
fa4ee78 to
faeb997
Compare
|
utACK |
|
Maybe you prefer to pass it to AcceptToMemoryPool explicitly directly. That would be a little bit more disruptive though. Anyway, better is better, utACK. EDIT: never mind the bike-shedding nit, the name maxTxFee has to be preserved because it's currently used like that in the wallet. |
faeb997 to
ffff08a
Compare
|
Rebased (trivial) |
src/wallet/wallet.cpp
Outdated
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.
nit: this comment didn't really help me. maybe // Wallet uses same maxTxFee as ATMP so tx should not be rejected for fee but maybe its just unnecessary.
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.
But, please, don't use acronyms for the name functions in the comments: the full name of the function is something that can be seen in grep.
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.
Guess I will drop this because it is already mentioned in wallet.h: https://github.com/bitcoin/bitcoin/pull/7084/files#diff-12635a58447c65585f51d32b7e04075bR205
|
utACK |
ffff08a to
faa1b1f
Compare
|
@laanwj Anything holding this back? |
|
You should also move |
|
utACK faa1b1f, but waiting on fix for init option as specified by @laanwj above. |
faa1b1f to
fa331db
Compare
|
I have also fixed the doxygen comments in |
src/main.h
Outdated
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.
Nit: /**, otherwise it won't show up in doxygen at all
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.
Good catch! Need to bookmark https://github.com/bitcoin/bitcoin/blob/master/doc/developer-notes.md#doxygen-comments I guess.
I'm ok with that, but let's limit the amount of new changes from here on, as they keep people busy with reviewing and commenting :) I'm trying to get this ready for merge. |
|
re-utACK fa1193e |
Bitcoin 0.12 cleanup PRs 2 Cherry-picked from the following upstream PRs: - bitcoin/bitcoin#6631 - bitcoin/bitcoin#6664 - Only the first commit (we already had the second through bitcoin/bitcoin#6825). - bitcoin/bitcoin#6669 - bitcoin/bitcoin#6887 - Only the non-QT parts. - bitcoin/bitcoin#6962 - bitcoin/bitcoin#6822 - Only first and third commits (we already had the second through an earlier PR). - bitcoin/bitcoin#7136 - Excludes Travis CI changes, and fixes to documents we don't have anymore. - bitcoin/bitcoin#7084 - bitcoin/bitcoin#7509 - bitcoin/bitcoin#7617 - bitcoin/bitcoin#7726 Part of #2074.
maxTxFeeis the absolute upper bound on fees of transactions created by the wallet.10000*minRelayTxFee_default= 0.1 BTC/kBmaxTxFee_default= 0.1 BTCFurther info:
This check was initially only added to the mempool to reject high fee raw transactions by default (
sendrawtransaction) but was later extended to also check wallet transactions.minRelayTxFeemay not be the best config param to adjust fee behavior so switching to the already usedmaxTxFeecould make sense.This fixes the issue: