diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-09-08 17:03:23 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-09-08 17:10:36 +0200 |
| commit | 0c2779514041b174c13d7cd3a66f1fd28e9026fa (patch) | |
| tree | d22549d3a50e3002c8f1c94910f45325cf9ea617 /src/main.cpp | |
| parent | Merge pull request #6594 (diff) | |
| parent | Add NODE_BLOOM service bit and bump protocol version (diff) | |
| download | discoin-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.cpp | 15 |
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; |