aboutsummaryrefslogtreecommitdiff
path: root/src/protocol.cpp
diff options
context:
space:
mode:
authorJim Posen <jim.posen@gmail.com>2020-05-04 19:47:26 -0400
committerJohn Newbery <john@johnnewbery.com>2020-05-22 11:59:58 -0400
commitf6b58c150686e90bc4952976e488b1605f3ae02a (patch)
tree0780cb0a07b09dd5d937cd41c974feb3a3efc1e2 /src/protocol.cpp
parent3bdc7c2d3977a7864aacea80bffc4df7f37cac51 (diff)
downloadbitcoin-f6b58c150686e90bc4952976e488b1605f3ae02a.tar.xz
[net processing] Message handling for getcfheaders.
if -peerblockfilters is configured, handle requests for cfheaders.
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 e929cff110..243111c449 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 *GETCFHEADERS="getcfheaders";
+const char *CFHEADERS="cfheaders";
const char *GETCFCHECKPT="getcfcheckpt";
const char *CFCHECKPT="cfcheckpt";
} // namespace NetMsgType
@@ -73,6 +75,8 @@ const static std::string allNetMessageTypes[] = {
NetMsgType::CMPCTBLOCK,
NetMsgType::GETBLOCKTXN,
NetMsgType::BLOCKTXN,
+ NetMsgType::GETCFHEADERS,
+ NetMsgType::CFHEADERS,
NetMsgType::GETCFCHECKPT,
NetMsgType::CFCHECKPT,
};