Disable -peerbloomfilters by default in sidechains

Removes Denial of Service risk on a network that will likely never
have light wallets.  User can enable it again if they reallly want it.
This commit is contained in:
Warren Togami 2016-04-21 18:35:27 -07:00 committed by Gregory Sanders
parent 10249053d0
commit baa3b0c5cc
2 changed files with 2 additions and 2 deletions

View file

@ -979,7 +979,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
// Option to startup with mocktime set (used for regression testing):
SetMockTime(GetArg("-mocktime", 0)); // SetMockTime(0) is a no-op
if (GetBoolArg("-peerbloomfilters", DEFAULT_PEERBLOOMFILTERS))
if (GetBoolArg("-peerbloomfilters", false))
nLocalServices = ServiceFlags(nLocalServices | NODE_BLOOM);
nMaxTipAge = GetArg("-maxtipage", DEFAULT_MAX_TIP_AGE);