Skip to content

Commit

Permalink
net: don't send feefilter messages before the version handshake is co…
Browse files Browse the repository at this point in the history
…mplete

Github-Pull: #9117
Rebased-From: 4662553
  • Loading branch information
theuni authored and luke-jr committed Dec 2, 2016
1 parent 5f3a12c commit 6fe3981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Expand Up @@ -6856,7 +6856,7 @@ bool SendMessages(CNode* pto)
// Message: feefilter
//
// We don't want white listed peers to filter txs to us if we have -whitelistforcerelay
if (pto->nVersion >= FEEFILTER_VERSION && GetBoolArg("-feefilter", DEFAULT_FEEFILTER) &&
if (!pto->fDisconnect && pto->nVersion >= FEEFILTER_VERSION && GetBoolArg("-feefilter", DEFAULT_FEEFILTER) &&
!(pto->fWhitelisted && GetBoolArg("-whitelistforcerelay", DEFAULT_WHITELISTFORCERELAY))) {
CAmount currentFilter = mempool.GetMinFee(GetArg("-maxmempool", DEFAULT_MAX_MEMPOOL_SIZE) * 1000000).GetFeePerK();
int64_t timeNow = GetTimeMicros();
Expand Down

0 comments on commit 6fe3981

Please sign in to comment.