PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Namespaces | Functions | Variables
protocol.cpp File Reference
#include "protocol.h"
#include "chainparams.h"
#include "util.h"
#include "utilstrencodings.h"
#include <arpa/inet.h>
Include dependency graph for protocol.cpp:

Go to the source code of this file.

Namespaces

 NetMsgType
 Bitcoin protocol message types.
 

Functions

bool operator< (const CInv &a, const CInv &b)
 
const std::vector< std::string > & getAllNetMessageTypes ()
 

Variables

const char * NetMsgType::VERSION ="version"
 The version message provides information about the transmitting node to the receiving node at the beginning of a connection. More...
 
const char * NetMsgType::VERACK ="verack"
 The verack message acknowledges a previously-received version message, informing the connecting node that it can begin to send other messages. More...
 
const char * NetMsgType::ADDR ="addr"
 The addr (IP address) message relays connection information for peers on the network. More...
 
const char * NetMsgType::INV ="inv"
 The inv message (inventory message) transmits one or more inventories of objects known to the transmitting peer. More...
 
const char * NetMsgType::GETDATA ="getdata"
 The getdata message requests one or more data objects from another node. More...
 
const char * NetMsgType::MERKLEBLOCK ="merkleblock"
 The merkleblock message is a reply to a getdata message which requested a block using the inventory type MSG_MERKLEBLOCK. More...
 
const char * NetMsgType::GETBLOCKS ="getblocks"
 The getblocks message requests an inv message that provides block header hashes starting from a particular point in the block chain. More...
 
const char * NetMsgType::GETHEADERS ="getheaders"
 The getheaders message requests a headers message that provides block headers starting from a particular point in the block chain. More...
 
const char * NetMsgType::TX ="tx"
 The tx message transmits a single transaction. More...
 
const char * NetMsgType::DSC ="dsc"
 We are keeping these for now. More...
 
const char * NetMsgType::DSF ="dsf"
 
const char * NetMsgType::DSQ ="dsq"
 
const char * NetMsgType::DSR ="dsr"
 
const char * NetMsgType::DSTX ="dstx"
 
const char * NetMsgType::DSEE ="dsee"
 
const char * NetMsgType::DSEG ="dseg"
 
const char * NetMsgType::DSEEP ="dseep"
 
const char * NetMsgType::DSSU ="dssu"
 
const char * NetMsgType::HEADERS ="headers"
 The headers message sends one or more block headers to a node which previously requested certain headers with a getheaders message. More...
 
const char * NetMsgType::BLOCK ="block"
 The block message transmits a single serialized block. More...
 
const char * NetMsgType::GETADDR ="getaddr"
 The getaddr message requests an addr message from the receiving node, preferably one with lots of IP addresses of other receiving nodes. More...
 
const char * NetMsgType::MEMPOOL ="mempool"
 The mempool message requests the TXIDs of transactions that the receiving node has verified as valid but which have not yet appeared in a block. More...
 
const char * NetMsgType::PING ="ping"
 The ping message is sent periodically to help confirm that the receiving peer is still connected. More...
 
const char * NetMsgType::PONG ="pong"
 The pong message replies to a ping message, proving to the pinging node that the ponging node is still alive. More...
 
const char * NetMsgType::ALERT ="alert"
 The alert message warns nodes of problems that may affect them or the rest of the network. More...
 
const char * NetMsgType::NOTFOUND ="notfound"
 The notfound message is a reply to a getdata message which requested an object the receiving node does not have available for relay. More...
 
const char * NetMsgType::FILTERLOAD ="filterload"
 The filterload message tells the receiving peer to filter all relayed transactions and requested merkle blocks through the provided filter. More...
 
const char * NetMsgType::FILTERADD ="filteradd"
 The filteradd message tells the receiving peer to add a single element to a previously-set bloom filter, such as a new public key. More...
 
const char * NetMsgType::FILTERCLEAR ="filterclear"
 The filterclear message tells the receiving peer to remove a previously-set bloom filter. More...
 
const char * NetMsgType::REJECT ="reject"
 The reject message informs the receiving node that one of its previous messages has been rejected. More...
 
const char * NetMsgType::SENDHEADERS ="sendheaders"
 Indicates that a node prefers to receive new block announcements via a "headers" message rather than an "inv". More...
 
const char * NetMsgType::IX ="ix"
 The ix message transmits a single SwiftX transaction. More...
 
const char * NetMsgType::IXLOCKVOTE ="txlvote"
 The ixlockvote message is used to reach consensus for SwiftX transaction locks. More...
 
const char * NetMsgType::MNBROADCAST ="mnb"
 The mnbroadcast message is used to broadcast masternode startup data to connected peers. More...
 
const char * NetMsgType::MNPING ="mnp"
 The mnping message is used to ensure a masternode is still active. More...
 
const char * NetMsgType::MNWINNER ="mnw"
 The mnwinner message is used to relay and distribute consensus for masternode payout ordering. More...
 
const char * NetMsgType::GETMNWINNERS ="mnget"
 The getmnwinners message is used to request winning masternode data from connected peers. More...
 
const char * NetMsgType::BUDGETPROPOSAL ="mprop"
 The budgetproposal message is used to broadcast or relay budget proposal metadata to connected peers. More...
 
const char * NetMsgType::BUDGETVOTE ="mvote"
 The budgetvote message is used to broadcast or relay budget proposal votes to connected peers. More...
 
const char * NetMsgType::BUDGETVOTESYNC ="mnvs"
 The budgetvotesync message is used to request budget vote data from connected peers. More...
 
const char * NetMsgType::FINALBUDGET ="fbs"
 The finalbudget message is used to broadcast or relay finalized budget metadata to connected peers. More...
 
const char * NetMsgType::FINALBUDGETVOTE ="fbvote"
 The finalbudgetvote message is used to broadcast or relay finalized budget votes to connected peers. More...
 
const char * NetMsgType::SYNCSTATUSCOUNT ="ssc"
 The syncstatuscount message is used to track the layer 2 syncing process. More...
 

Function Documentation

◆ getAllNetMessageTypes()

const std::vector<std::string>& getAllNetMessageTypes ( )

Definition at line 259 of file protocol.cpp.

◆ operator<()

bool operator< ( const CInv a,
const CInv b 
)

Definition at line 230 of file protocol.cpp.