Skip to content

Commit 4662553

Browse files
committed
net: don't send feefilter messages before the version handshake is complete
1 parent 9f554e0 commit 4662553

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6939,7 +6939,7 @@ bool SendMessages(CNode* pto, CConnman& connman)
69396939
// Message: feefilter
69406940
//
69416941
// We don't want white listed peers to filter txs to us if we have -whitelistforcerelay
6942-
if (pto->nVersion >= FEEFILTER_VERSION && GetBoolArg("-feefilter", DEFAULT_FEEFILTER) &&
6942+
if (!pto->fDisconnect && pto->nVersion >= FEEFILTER_VERSION && GetBoolArg("-feefilter", DEFAULT_FEEFILTER) &&
69436943
!(pto->fWhitelisted && GetBoolArg("-whitelistforcerelay", DEFAULT_WHITELISTFORCERELAY))) {
69446944
CAmount currentFilter = mempool.GetMinFee(GetArg("-maxmempool", DEFAULT_MAX_MEMPOOL_SIZE) * 1000000).GetFeePerK();
69456945
int64_t timeNow = GetTimeMicros();

0 commit comments

Comments
 (0)