Skip to content

Commit c390640

Browse files
committed
Merge #9117: net: don't send feefilter messages before the version handshake is complete
4662553 net: don't send feefilter messages before the version handshake is complete (Cory Fields)
2 parents 7490ae8 + 4662553 commit c390640

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
@@ -6967,7 +6967,7 @@ bool SendMessages(CNode* pto, CConnman& connman)
69676967
// Message: feefilter
69686968
//
69696969
// We don't want white listed peers to filter txs to us if we have -whitelistforcerelay
6970-
if (pto->nVersion >= FEEFILTER_VERSION && GetBoolArg("-feefilter", DEFAULT_FEEFILTER) &&
6970+
if (!pto->fDisconnect && pto->nVersion >= FEEFILTER_VERSION && GetBoolArg("-feefilter", DEFAULT_FEEFILTER) &&
69716971
!(pto->fWhitelisted && GetBoolArg("-whitelistforcerelay", DEFAULT_WHITELISTFORCERELAY))) {
69726972
CAmount currentFilter = mempool.GetMinFee(GetArg("-maxmempool", DEFAULT_MAX_MEMPOOL_SIZE) * 1000000).GetFeePerK();
69736973
int64_t timeNow = GetTimeMicros();

0 commit comments

Comments
 (0)