aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2015-09-08 17:03:23 +0200
committerWladimir J. van der Laan <[email protected]>2015-09-08 17:10:36 +0200
commit0c2779514041b174c13d7cd3a66f1fd28e9026fa (patch)
treed22549d3a50e3002c8f1c94910f45325cf9ea617 /src/main.cpp
parentMerge pull request #6594 (diff)
parentAdd NODE_BLOOM service bit and bump protocol version (diff)
downloaddiscoin-0c2779514041b174c13d7cd3a66f1fd28e9026fa.tar.xz
discoin-0c2779514041b174c13d7cd3a66f1fd28e9026fa.zip
Merge pull request #6579
afb0cca Add NODE_BLOOM service bit and bump protocol version (Matt Corallo)
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 35fbec666..a880533e6 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -4591,6 +4591,21 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
}
+ else if (!(nLocalServices & NODE_BLOOM) &&
+ (strCommand == "filterload" ||
+ strCommand == "filteradd" ||
+ strCommand == "filterclear") &&
+ //TODO: Remove this line after reasonable network upgrade
+ pfrom->nVersion >= NO_BLOOM_VERSION)
+ {
+ if (pfrom->nVersion >= NO_BLOOM_VERSION)
+ Misbehaving(pfrom->GetId(), 100);
+ //TODO: Enable this after reasonable network upgrade
+ //else
+ // pfrom->fDisconnect = true;
+ }
+
+
else if (strCommand == "filterload")
{
CBloomFilter filter;