-
Notifications
You must be signed in to change notification settings - Fork 38k
Remove -feefilter option #21583
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
Remove -feefilter option #21583
Conversation
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
To completely remove the |
In terms of extracting the logic into a separate function, one option you can use is an assert to make sure |
@ccdle12 understood the usage of
From what I understand about the goal of #21545 , was to remove the feefilter check from the message handler loop in Feefilter usageLooked around and pulled up files with refrences to feefilter and understood the context of the refrence which was a good exercise that got me familiar with the codebase.
if (m_tx_relay != nullptr) {
stats.minFeeFilter = m_tx_relay->minFeeFilter;
} else {
stats.minFeeFilter = 0;
}
const char *FEEFILTER="feefilter";
...
const static std::string allNetMessageTypes[] = {
...
NetMsgType::FEEFILTER,
};
RPCResult::Type::NUM, "minfeefilter", "The minimum fee rate for transactions this peer accepts"
...
static RPCHelpMan getpeerinfo() {
...
obj.pushKV("minfeefilter", ValueFromAmount(stats.minFeeFilter));
}
|
Yes. The
All of these instances of |
Please also add rationale to the commit log. Why is it ok to remove -feefilter? |
Closing for now due to inactivity. Let me know when you want to work on this again. |
Removed the
-feefilter
option fromsrc/net_processing.cpp
. #21545To make sure everything works, I ran
make check
and then rantest_runner.py
withp2p_feefilter.py
Regarding splitting up the
feefilter
logic and moving it to a seperate function for better readability, theg_filter_rounder.round()
function is not thread safe and is currently inside aLOCK(cs_main);
called at the begining ofPeerManagerImpl::SendMessages(CNode* pto)
. Didn't make any changes for this, how would I proceed for this?