diff options
| author | Peter Todd <[email protected]> | 2013-10-20 22:36:31 -0400 |
|---|---|---|
| committer | Peter Todd <[email protected]> | 2013-10-26 01:59:44 -0400 |
| commit | e7a64af74fee5734620e91e0045075c97197153a (patch) | |
| tree | 6822aa6a8fa5911363c82fb841cf97b3988128ce /src/util.cpp | |
| parent | Merge pull request #3144 from Diapolo/message_sendcoinsdialog (diff) | |
| download | discoin-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.cpp | 1 |
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); |