 |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
Go to the documentation of this file.
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
33 CMessageHeader(
const char* pszCommand,
unsigned int nMessageSizeIn);
40 template <
typename Stream,
typename Operation>
41 inline void SerializationOp(Stream& s, Operation ser_action,
int nType,
int nVersion)
89 extern const char *
ADDR;
95 extern const char *
INV;
125 extern const char *
TX;
129 extern const char *
DSC;
130 extern const char *
DSF;
131 extern const char *
DSQ;
132 extern const char *
DSR;
133 extern const char *
DSTX;
134 extern const char *
DSEE;
135 extern const char *
DSEG;
136 extern const char *
DSEEP;
137 extern const char *
DSSU;
149 extern const char *
BLOCK;
168 extern const char *
PING;
175 extern const char *
PONG;
182 extern const char *
ALERT;
223 extern const char *
REJECT;
234 extern const char *
IX;
244 extern const char *
SPORK;
256 extern const char *
MNPING;
333 template <
typename Stream,
typename Operation>
336 if (ser_action.ForRead())
341 (nVersion >= CADDR_TIME_VERSION && !(nType &
SER_GETHASH)))
363 CInv(
const std::string& strType,
const uint256& hashIn);
367 template <
typename Stream,
typename Operation>
407 #endif // BITCOIN_PROTOCOL_H
A combination of a network address (CNetAddr) and a (TCP) port.
Bitcoin protocol message types.
const char * FINALBUDGET
The finalbudget message is used to broadcast or relay finalized budget metadata to connected peers.
const char * PING
The ping message is sent periodically to help confirm that the receiving peer is still connected.
const char * SPORK
The spork message is used to send spork values to connected peers.
const char * FILTERLOAD
The filterload message tells the receiving peer to filter all relayed transactions and requested merk...
const char * IX
The ix message transmits a single SwiftX transaction.
ServiceFlags
nServices flags
const char * PONG
The pong message replies to a ping message, proving to the pinging node that the ponging node is stil...
@ MSG_MASTERNODE_ANNOUNCE
const char * MNWINNER
The mnwinner message is used to relay and distribute consensus for masternode payout ordering.
const char * BUDGETVOTESYNC
The budgetvotesync message is used to request budget vote data from connected peers.
void SerializationOp(Stream &s, Operation ser_action, int nType, int nVersion)
bool IsMasterNodeType() const
const char * GetCommand() const
const char * INV
The inv message (inventory message) transmits one or more inventories of objects known to the transmi...
const char * GETHEADERS
The getheaders message requests a headers message that provides block headers starting from a particu...
const char * GETSPORKS
The getsporks message is used to request spork data from connected peers.
const char * IXLOCKVOTE
The ixlockvote message is used to reach consensus for SwiftX transaction locks.
const char * HEADERS
The headers message sends one or more block headers to a node which previously requested certain head...
friend bool operator<(const CInv &a, const CInv &b)
void SerializationOp(Stream &s, Operation ser_action, int nType, int nVersion)
const char * GETMNWINNERS
The getmnwinners message is used to request winning masternode data from connected peers.
const char * FINALBUDGETVOTE
The finalbudgetvote message is used to broadcast or relay finalized budget votes to connected peers.
const char * FILTERCLEAR
The filterclear message tells the receiving peer to remove a previously-set bloom filter.
256-bit unsigned big integer.
@ MSG_MASTERNODE_SCANNING_ERROR
const char * SENDHEADERS
Indicates that a node prefers to receive new block announcements via a "headers" message rather than ...
const char * REJECT
The reject message informs the receiving node that one of its previous messages has been rejected.
#define MESSAGE_START_SIZE
const char * GETBLOCKS
The getblocks message requests an inv message that provides block header hashes starting from a parti...
const char * GETDATA
The getdata message requests one or more data objects from another node.
const char * NOTFOUND
The notfound message is a reply to a getdata message which requested an object the receiving node doe...
const char * ADDR
The addr (IP address) message relays connection information for peers on the network.
const char * BUDGETPROPOSAL
The budgetproposal message is used to broadcast or relay budget proposal metadata to connected peers.
const char * DSC
We are keeping these for now.
const char * BLOCK
The block message transmits a single serialized block.
const char * MEMPOOL
The mempool message requests the TXIDs of transactions that the receiving node has verified as valid ...
const char * ALERT
The alert message warns nodes of problems that may affect them or the rest of the network.
A CService with information about it as peer.
const char * TX
The tx message transmits a single transaction.
const std::vector< std::string > & getAllNetMessageTypes()
const char * BUDGETVOTE
The budgetvote message is used to broadcast or relay budget proposal votes to connected peers.
@ MSG_BUDGET_FINALIZED_VOTE
const char * SYNCSTATUSCOUNT
The syncstatuscount message is used to track the layer 2 syncing process.
const char * VERACK
The verack message acknowledges a previously-received version message, informing the connecting node ...
const char * FILTERADD
The filteradd message tells the receiving peer to add a single element to a previously-set bloom filt...
const char * VERSION
The version message provides information about the transmitting node to the receiving node at the beg...
const char * MNPING
The mnping message is used to ensure a masternode is still active.
const char * MNBROADCAST
The mnbroadcast message is used to broadcast masternode startup data to connected peers.
std::string ToString() const
const char * GETADDR
The getaddr message requests an addr message from the receiving node, preferably one with lots of IP ...
const char * MERKLEBLOCK
The merkleblock message is a reply to a getdata message which requested a block using the inventory t...