aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.cpp
diff options
context:
space:
mode:
authoramadeuszpawlik <apawlik@protonmail.com>2021-05-18 17:42:44 +0200
committerapawlik <amadeusz.pawlik@getinge.com>2021-05-19 16:55:03 +0200
commitc0385f10a133d5d8a4c296e7b7a6d75c9c4eec12 (patch)
tree949a19803f1c4e6d0ec12f80b0b4bfb3cda7691b /src/net_processing.cpp
parent39d597d362a2a06d276dd55a152c729c01c1e661 (diff)
downloadbitcoin-c0385f10a133d5d8a4c296e7b7a6d75c9c4eec12.tar.xz
Remove -feefilter option
Feefilter option is debug only and it isn't used in any tests, it's wasteful to check this option for every peer on every iteration of the message handler loop. refs #21545
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r--src/net_processing.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp
index fdd36835c2..cdf0fe0c5e 100644
--- a/src/net_processing.cpp
+++ b/src/net_processing.cpp
@@ -4711,7 +4711,6 @@ bool PeerManagerImpl::SendMessages(CNode* pto)
if (pto->m_tx_relay != nullptr &&
!m_ignore_incoming_txs &&
pto->GetCommonVersion() >= FEEFILTER_VERSION &&
- gArgs.GetBoolArg("-feefilter", DEFAULT_FEEFILTER) &&
!pto->HasPermission(NetPermissionFlags::ForceRelay) // peers with the forcerelay permission should not filter txs to us
) {
CAmount currentFilter = m_mempool.GetMinFee(gArgs.GetArg("-maxmempool", DEFAULT_MAX_MEMPOOL_SIZE) * 1000000).GetFeePerK();