Skip to content

Commit 0f4dc53

Browse files
committed
Add enforcenodebloom option.
Previously peers which implement a protocol version less than NO_BLOOM_VERSION would not be disconnected for sending a filter command, regardless of the peerbloomfilter option. Many node operators do not wish to provide expensive bloom filtering for SPV clients, previously they had to cherry pick the commit which enabled the disconnect logic. The default should remain false until a sufficient percent of SPV clients have updated.
1 parent b3caa9b commit 0f4dc53

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/main.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3997,12 +3997,10 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
39973997
if (pfrom->nVersion >= NO_BLOOM_VERSION) {
39983998
Misbehaving(pfrom->GetId(), 100);
39993999
return false;
4000+
} else if (GetBoolArg("-enforcenodebloom", false)) {
4001+
pfrom->fDisconnect = true;
4002+
return false;
40004003
}
4001-
//TODO: Enable this after reasonable network upgrade
4002-
//else {
4003-
// pfrom->fDisconnect = true;
4004-
// return false;
4005-
//}
40064004
}
40074005

40084006

0 commit comments

Comments
 (0)