aboutsummaryrefslogtreecommitdiff
path: root/src/protocol.cpp
diff options
context:
space:
mode:
authorJim Posen <jim.posen@gmail.com>2019-06-30 15:42:13 +0200
committerJohn Newbery <john@johnnewbery.com>2020-05-26 17:38:20 -0400
commit11106a4722558765a44ae45c7892724a73ce514c (patch)
tree6e12384378e3d7a25c9f6d500cee2b09d57bbd71 /src/protocol.cpp
parente535670726952e43483763dfca6fc6ec2f4b0691 (diff)
downloadbitcoin-11106a4722558765a44ae45c7892724a73ce514c.tar.xz
[net processing] Message handling for getcfilters.
Handle getcfilters request if -peercfilter is configured.
Diffstat (limited to 'src/protocol.cpp')
-rw-r--r--src/protocol.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/protocol.cpp b/src/protocol.cpp
index 243111c449..947f33c3df 100644
--- a/src/protocol.cpp
+++ b/src/protocol.cpp
@@ -40,6 +40,8 @@ const char *SENDCMPCT="sendcmpct";
const char *CMPCTBLOCK="cmpctblock";
const char *GETBLOCKTXN="getblocktxn";
const char *BLOCKTXN="blocktxn";
+const char *GETCFILTERS="getcfilters";
+const char *CFILTER="cfilter";
const char *GETCFHEADERS="getcfheaders";
const char *CFHEADERS="cfheaders";
const char *GETCFCHECKPT="getcfcheckpt";
@@ -75,6 +77,8 @@ const static std::string allNetMessageTypes[] = {
NetMsgType::CMPCTBLOCK,
NetMsgType::GETBLOCKTXN,
NetMsgType::BLOCKTXN,
+ NetMsgType::GETCFILTERS,
+ NetMsgType::CFILTER,
NetMsgType::GETCFHEADERS,
NetMsgType::CFHEADERS,
NetMsgType::GETCFCHECKPT,