Changeset View
Changeset View
Standalone View
Standalone View
src/protocol.cpp
| Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | |||||
| const char *CFCHECKPT = "cfcheckpt"; | const char *CFCHECKPT = "cfcheckpt"; | ||||
| const char *AVAHELLO = "avahello"; | const char *AVAHELLO = "avahello"; | ||||
| const char *AVAPOLL = "avapoll"; | const char *AVAPOLL = "avapoll"; | ||||
| const char *AVARESPONSE = "avaresponse"; | const char *AVARESPONSE = "avaresponse"; | ||||
| const char *AVAPROOF = "avaproof"; | const char *AVAPROOF = "avaproof"; | ||||
| const char *GETAVAADDR = "getavaaddr"; | const char *GETAVAADDR = "getavaaddr"; | ||||
| const char *GETAVAPROOFS = "getavaproofs"; | const char *GETAVAPROOFS = "getavaproofs"; | ||||
| const char *AVAPROOFS = "avaproofs"; | const char *AVAPROOFS = "avaproofs"; | ||||
| const char *AVAPROOFSREQ = "avaproofsreq"; | |||||
| 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 228 Lines • Show Last 20 Lines | |||||