aboutsummaryrefslogtreecommitdiff
path: root/src/util.cpp
diff options
context:
space:
mode:
authorPeter Todd <[email protected]>2013-10-20 22:36:31 -0400
committerPeter Todd <[email protected]>2013-10-26 01:59:44 -0400
commite7a64af74fee5734620e91e0045075c97197153a (patch)
tree6822aa6a8fa5911363c82fb841cf97b3988128ce /src/util.cpp
parentMerge pull request #3144 from Diapolo/message_sendcoinsdialog (diff)
downloaddiscoin-e7a64af74fee5734620e91e0045075c97197153a.tar.xz
discoin-e7a64af74fee5734620e91e0045075c97197153a.zip
Add NODE_BLOOM service bit and bump protocol version
Lets nodes advertise that they offer bloom filter support explicitly. The protocol version bump allows SPV nodes to assume that NODE_BLOOM is set if NODE_NETWORK is set for pre-70002 nodes. Also adds an undocumented option to turn bloom filter support off for testing purposes. Nodes attempting to use bloom filters are immediately dropped so as to not waste their bandwidth.
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 71994587c..3897e3c97 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -79,6 +79,7 @@ bool fPrintToDebugger = false;
bool fDaemon = false;
bool fServer = false;
string strMiscWarning;
+bool fBloomFilters = true;
bool fNoListen = false;
bool fLogTimestamps = false;
CMedianFilter<int64> vTimeOffsets(200,0);