7 #error This header can only be compiled as C++. 10 #ifndef BITCOIN_PROTOCOL_H 11 #define BITCOIN_PROTOCOL_H 21 #define MESSAGE_START_SIZE 4 42 template <
typename Stream,
typename Operation>
43 inline void SerializationOp(Stream& s, Operation ser_action,
int nType,
int nVersion)
91 extern const char *
ADDR;
97 extern const char *
INV;
127 extern const char *
TX;
139 extern const char *
BLOCK;
158 extern const char *
PING;
165 extern const char *
PONG;
172 extern const char *
ALERT;
213 extern const char *
REJECT;
227 extern const char *
SPORK;
232 extern const char *
MNPING;
234 extern const char *
DSVIN;
239 extern const char *
DSTX;
241 extern const char *
DSEG;
289 template <
typename Stream,
typename Operation>
292 if (ser_action.ForRead())
319 CInv(
const std::string& strType,
const uint256& hashIn);
323 template <
typename Stream,
typename Operation>
368 #endif // BITCOIN_PROTOCOL_H
const char * MASTERNODEPAYMENTVOTE
#define MESSAGE_START_SIZE
const std::vector< std::string > & getAllNetMessageTypes()
const char * SYNCSTATUSCOUNT
friend bool operator<(const CInv &a, const CInv &b)
void SerializationOp(Stream &s, Operation ser_action, int nType, int nVersion)
const char * GetCommand() const
const char * MNGOVERNANCESYNC
const char * MNGOVERNANCEOBJECT
const char * DSSIGNFINALTX
std::string ToString() const
const char * TXLOCKREQUEST
const char * MNGOVERNANCEOBJECTVOTE
static const int CADDR_TIME_VERSION
const char * MASTERNODEPAYMENTSYNC
void SerializationOp(Stream &s, Operation ser_action, int nType, int nVersion)
const char * DSSTATUSUPDATE