Changeset View
Changeset View
Standalone View
Standalone View
src/protocol.cpp
Show All 35 Lines | |||||
const char *FILTERCLEAR = "filterclear"; | const char *FILTERCLEAR = "filterclear"; | ||||
const char *REJECT = "reject"; | const char *REJECT = "reject"; | ||||
const char *SENDHEADERS = "sendheaders"; | const char *SENDHEADERS = "sendheaders"; | ||||
const char *FEEFILTER = "feefilter"; | const char *FEEFILTER = "feefilter"; | ||||
const char *SENDCMPCT = "sendcmpct"; | const char *SENDCMPCT = "sendcmpct"; | ||||
const char *CMPCTBLOCK = "cmpctblock"; | const char *CMPCTBLOCK = "cmpctblock"; | ||||
const char *GETBLOCKTXN = "getblocktxn"; | const char *GETBLOCKTXN = "getblocktxn"; | ||||
const char *BLOCKTXN = "blocktxn"; | const char *BLOCKTXN = "blocktxn"; | ||||
const char *AVAPOLL = "avapoll"; | |||||
const char *AVARESPONSE = "avaresponse"; | |||||
bool IsBlockLike(const std::string &strCommand) { | bool IsBlockLike(const std::string &strCommand) { | ||||
return strCommand == NetMsgType::BLOCK || | return strCommand == NetMsgType::BLOCK || | ||||
strCommand == NetMsgType::CMPCTBLOCK || | strCommand == NetMsgType::CMPCTBLOCK || | ||||
strCommand == NetMsgType::BLOCKTXN; | strCommand == NetMsgType::BLOCKTXN; | ||||
} | } | ||||
}; // namespace NetMsgType | }; // namespace NetMsgType | ||||
▲ Show 20 Lines • Show All 172 Lines • Show Last 20 Lines |