Changeset View
Changeset View
Standalone View
Standalone View
src/protocol.h
Show First 20 Lines • Show All 292 Lines • ▼ Show 20 Lines | |||||
/** | /** | ||||
* Contains an avalanche::Proof. | * Contains an avalanche::Proof. | ||||
* Sent in response to a "getdata" message with inventory type | * Sent in response to a "getdata" message with inventory type | ||||
* MSG_AVA_PROOF. | * MSG_AVA_PROOF. | ||||
*/ | */ | ||||
extern const char *AVAPROOF; | extern const char *AVAPROOF; | ||||
/** | /** | ||||
* The getavaaddr message requests an addr message from the receiving node, | |||||
* containing IP addresses of the most active avalanche nodes. | |||||
*/ | |||||
extern const char *GETAVAADDR; | |||||
/** | |||||
* Indicate if the message is used to transmit the content of a block. | * Indicate if the message is used to transmit the content of a block. | ||||
* These messages can be significantly larger than usual messages and therefore | * These messages can be significantly larger than usual messages and therefore | ||||
* may need to be processed differently. | * may need to be processed differently. | ||||
*/ | */ | ||||
bool IsBlockLike(const std::string &strCommand); | bool IsBlockLike(const std::string &strCommand); | ||||
}; // namespace NetMsgType | }; // namespace NetMsgType | ||||
/** Get a vector of all valid message types (see above) */ | /** Get a vector of all valid message types (see above) */ | ||||
▲ Show 20 Lines • Show All 231 Lines • Show Last 20 Lines |