Changeset View
Changeset View
Standalone View
Standalone View
src/protocol.h
Show First 20 Lines • Show All 304 Lines • ▼ Show 20 Lines | |||||
* Peer should respond with "avaresponse" message. | * Peer should respond with "avaresponse" message. | ||||
*/ | */ | ||||
extern const char *AVAPOLL; | extern const char *AVAPOLL; | ||||
/** | /** | ||||
* Contains an avalanche::Response. | * Contains an avalanche::Response. | ||||
* Sent in response to a "avapoll" message. | * Sent in response to a "avapoll" message. | ||||
*/ | */ | ||||
extern const char *AVARESPONSE; | extern const char *AVARESPONSE; | ||||
/** | |||||
* Contains an avalanche::Proof. | |||||
* Sent in response to a "getdata" message with inventory type | |||||
* MSG_AVA_PROOF. | |||||
*/ | |||||
extern const char *AVAPROOF; | |||||
/** | /** | ||||
* 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 | ||||
▲ Show 20 Lines • Show All 169 Lines • ▼ Show 20 Lines | enum GetDataMsg { | ||||
UNDEFINED = 0, | UNDEFINED = 0, | ||||
MSG_TX = 1, | MSG_TX = 1, | ||||
MSG_BLOCK = 2, | MSG_BLOCK = 2, | ||||
// The following can only occur in getdata. Invs always use TX or BLOCK. | // The following can only occur in getdata. Invs always use TX or BLOCK. | ||||
//! Defined in BIP37 | //! Defined in BIP37 | ||||
MSG_FILTERED_BLOCK = 3, | MSG_FILTERED_BLOCK = 3, | ||||
//! Defined in BIP152 | //! Defined in BIP152 | ||||
MSG_CMPCT_BLOCK = 4, | MSG_CMPCT_BLOCK = 4, | ||||
MSG_AVA_PROOF = 0x1f000001, | |||||
}; | }; | ||||
/** | /** | ||||
* Inv(ventory) message data. | * Inv(ventory) message data. | ||||
* Intended as non-ambiguous identifier of objects (eg. transactions, blocks) | * Intended as non-ambiguous identifier of objects (eg. transactions, blocks) | ||||
* held by peers. | * held by peers. | ||||
*/ | */ | ||||
class CInv { | class CInv { | ||||
Show All 31 Lines |