Changeset View
Changeset View
Standalone View
Standalone View
src/protocol.h
Show First 20 Lines • Show All 413 Lines • ▼ Show 20 Lines | |||||
* These numbers are defined by the protocol. When adding a new value, be sure | * These numbers are defined by the protocol. When adding a new value, be sure | ||||
* to mention it in the respective BIP. | * to mention it in the respective BIP. | ||||
*/ | */ | ||||
enum GetDataMsg { | 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, | ||||
}; | }; | ||||
/** | /** | ||||
* 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. | ||||
*/ | */ | ||||
Show All 40 Lines |