diff options
| author | Patrick Lodder <[email protected]> | 2015-08-29 00:02:49 +0200 |
|---|---|---|
| committer | Patrick Lodder <[email protected]> | 2015-08-29 00:02:49 +0200 |
| commit | b6e7c91060a62801bc77e7be51a0d6e602299430 (patch) | |
| tree | cc389cb6be489ae72248a7413f3e8525de63e6bf /src/main.cpp | |
| parent | Merge pull request #1268 from patricklodder/1.10-auxpow-tests (diff) | |
| parent | Add NODE_BLOOM service bit and bump protocol version (diff) | |
| download | discoin-b6e7c91060a62801bc77e7be51a0d6e602299430.tar.xz discoin-b6e7c91060a62801bc77e7be51a0d6e602299430.zip | |
Merge pull request #1269 from langerhans/1.10-dev-nodebloom
Add NODE_BLOOM service bit
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 070b27832..ed32904c6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4691,6 +4691,15 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, } } + else if (!fBloomFilters && + (strCommand == "filterload" || + strCommand == "filteradd" || + strCommand == "filterclear")) + { + pfrom->CloseSocketDisconnect(); + return error("peer %s attempted to set a bloom filter even though we do not advertise that service", + pfrom->addr.ToString().c_str()); + } else if (strCommand == "filterload") { |