Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Bitcoin protocol message types. More...
Variables | |
| const char * | VERSION ="version" |
| The version message provides information about the transmitting node to the receiving node at the beginning of a connection. More... | |
| const char * | 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 * | ADDR ="addr" |
| The addr (IP address) message relays connection information for peers on the network. More... | |
| const char * | INV ="inv" |
| The inv message (inventory message) transmits one or more inventories of objects known to the transmitting peer. More... | |
| const char * | GETDATA ="getdata" |
| The getdata message requests one or more data objects from another node. More... | |
| const char * | 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 * | 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 * | 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 * | TX ="tx" |
| The tx message transmits a single transaction. More... | |
| const char * | 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 * | BLOCK ="block" |
| The block message transmits a single serialized block. More... | |
| const char * | 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 * | 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 * | PING ="ping" |
| The ping message is sent periodically to help confirm that the receiving peer is still connected. More... | |
| const char * | 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 * | 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 * | 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 * | 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 * | FILTERCLEAR ="filterclear" |
| The filterclear message tells the receiving peer to remove a previously-set bloom filter. More... | |
| const char * | REJECT ="reject" |
| The reject message informs the receiving node that one of its previous messages has been rejected. More... | |
| const char * | SENDHEADERS ="sendheaders" |
| Indicates that a node prefers to receive new block announcements via a "headers" message rather than an "inv". More... | |
| const char * | SENDCMPCT ="sendcmpct" |
| Contains a 1-byte bool and 8-byte LE version number. More... | |
| const char * | CMPCTBLOCK ="cmpctblock" |
| Contains a CBlockHeaderAndShortTxIDs object - providing a header and list of "short txids". More... | |
| const char * | GETBLOCKTXN ="getblocktxn" |
| Contains a BlockTransactionsRequest Peer should respond with "blocktxn" message. More... | |
| const char * | BLOCKTXN ="blocktxn" |
| Contains a BlockTransactions. More... | |
| const char * | LEGACYTXLOCKREQUEST ="ix" |
| const char * | SPORK ="spork" |
| const char * | GETSPORKS ="getsporks" |
| const char * | DSACCEPT ="dsa" |
| const char * | DSVIN ="dsi" |
| const char * | DSFINALTX ="dsf" |
| const char * | DSSIGNFINALTX ="dss" |
| const char * | DSCOMPLETE ="dsc" |
| const char * | DSSTATUSUPDATE ="dssu" |
| const char * | DSTX ="dstx" |
| const char * | DSQUEUE ="dsq" |
| const char * | SENDDSQUEUE ="senddsq" |
| const char * | SYNCSTATUSCOUNT ="ssc" |
| const char * | MNGOVERNANCESYNC ="govsync" |
| const char * | MNGOVERNANCEOBJECT ="govobj" |
| const char * | MNGOVERNANCEOBJECTVOTE ="govobjvote" |
| const char * | GETMNLISTDIFF ="getmnlistd" |
| const char * | MNLISTDIFF ="mnlistdiff" |
| const char * | QSENDRECSIGS ="qsendrecsigs" |
| const char * | QFCOMMITMENT ="qfcommit" |
| const char * | QCONTRIB ="qcontrib" |
| const char * | QCOMPLAINT ="qcomplaint" |
| const char * | QJUSTIFICATION ="qjustify" |
| const char * | QPCOMMITMENT ="qpcommit" |
| const char * | QWATCH ="qwatch" |
| const char * | QSIGSESANN ="qsigsesann" |
| const char * | QSIGSHARESINV ="qsigsinv" |
| const char * | QGETSIGSHARES ="qgetsigs" |
| const char * | QBSIGSHARES ="qbsigs" |
| const char * | QSIGREC ="qsigrec" |
| const char * | QSIGSHARE ="qsigshare" |
| const char * | CLSIG ="clsig" |
| const char * | ISLOCK ="islock" |
| const char * | MNAUTH ="mnauth" |
Detailed Description
Bitcoin protocol message types.
When adding new message types, don't forget to update allNetMessageTypes in protocol.cpp.
Variable Documentation
◆ ADDR
| const char * NetMsgType::ADDR ="addr" |
The addr (IP address) message relays connection information for peers on the network.
Definition at line 20 of file protocol.cpp.
Referenced by ProcessMessage(), and PeerLogicValidation::SendMessages().
◆ BLOCK
| const char * NetMsgType::BLOCK ="block" |
The block message transmits a single serialized block.
Definition at line 28 of file protocol.cpp.
Referenced by CInv::GetCommandInternal(), ProcessGetBlockData(), ProcessMessage(), and SendRejectsAndCheckIfBanned().
◆ BLOCKTXN
| const char * NetMsgType::BLOCKTXN ="blocktxn" |
Contains a BlockTransactions.
Sent in response to a "getblocktxn" message.
- Since
- protocol version 70209 as described by BIP 152
Definition at line 42 of file protocol.cpp.
Referenced by ProcessMessage(), and SendBlockTransactions().
◆ CLSIG
| const char * NetMsgType::CLSIG ="clsig" |
Definition at line 75 of file protocol.cpp.
Referenced by CInv::GetCommandInternal(), ProcessGetData(), and llmq::CChainLocksHandler::ProcessMessage().
◆ CMPCTBLOCK
| const char * NetMsgType::CMPCTBLOCK ="cmpctblock" |
Contains a CBlockHeaderAndShortTxIDs object - providing a header and list of "short txids".
- Since
- protocol version 70209 as described by BIP 152
Definition at line 40 of file protocol.cpp.
Referenced by CInv::GetCommandInternal(), PeerLogicValidation::NewPoWValidBlock(), ProcessGetBlockData(), ProcessMessage(), and PeerLogicValidation::SendMessages().
◆ DSACCEPT
| const char * NetMsgType::DSACCEPT ="dsa" |
Definition at line 47 of file protocol.cpp.
Referenced by CPrivateSendServer::ProcessMessage(), and CPrivateSendClientSession::ProcessPendingDsaRequest().
◆ DSCOMPLETE
| const char * NetMsgType::DSCOMPLETE ="dsc" |
Definition at line 51 of file protocol.cpp.
Referenced by CPrivateSendClientSession::ProcessMessage(), and CPrivateSendClientManager::ProcessMessage().
◆ DSFINALTX
| const char * NetMsgType::DSFINALTX ="dsf" |
Definition at line 49 of file protocol.cpp.
Referenced by CPrivateSendClientSession::ProcessMessage(), and CPrivateSendClientManager::ProcessMessage().
◆ DSQUEUE
| const char * NetMsgType::DSQUEUE ="dsq" |
Definition at line 54 of file protocol.cpp.
Referenced by CPrivateSendServer::ProcessMessage(), CPrivateSendClientManager::ProcessMessage(), and CPrivateSendQueue::Relay().
◆ DSSIGNFINALTX
| const char * NetMsgType::DSSIGNFINALTX ="dss" |
Definition at line 50 of file protocol.cpp.
Referenced by CPrivateSendServer::ProcessMessage(), and CPrivateSendClientSession::SignFinalTransaction().
◆ DSSTATUSUPDATE
| const char * NetMsgType::DSSTATUSUPDATE ="dssu" |
Definition at line 52 of file protocol.cpp.
Referenced by CPrivateSendClientSession::ProcessMessage(), CPrivateSendClientManager::ProcessMessage(), and CPrivateSendServer::PushStatus().
◆ DSTX
| const char * NetMsgType::DSTX ="dstx" |
Definition at line 53 of file protocol.cpp.
Referenced by CInv::GetCommandInternal(), ProcessGetData(), and ProcessMessage().
◆ DSVIN
| const char * NetMsgType::DSVIN ="dsi" |
Definition at line 48 of file protocol.cpp.
Referenced by CPrivateSendServer::ProcessMessage().
◆ FILTERADD
| 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.
- Since
- protocol version 70001 as described by BIP37. Only available with service bit NODE_BLOOM since protocol version 70011 as described by BIP111.
Definition at line 35 of file protocol.cpp.
Referenced by ProcessMessage().
◆ FILTERCLEAR
| const char * NetMsgType::FILTERCLEAR ="filterclear" |
The filterclear message tells the receiving peer to remove a previously-set bloom filter.
- Since
- protocol version 70001 as described by BIP37. Only available with service bit NODE_BLOOM since protocol version 70011 as described by BIP111.
Definition at line 36 of file protocol.cpp.
Referenced by ProcessMessage().
◆ FILTERLOAD
| 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.
- Since
- protocol version 70001 as described by BIP37. Only available with service bit NODE_BLOOM since protocol version 70011 as described by BIP111.
Definition at line 34 of file protocol.cpp.
Referenced by ProcessMessage().
◆ GETADDR
| 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.
Definition at line 29 of file protocol.cpp.
Referenced by ProcessMessage().
◆ GETBLOCKS
| 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.
Definition at line 24 of file protocol.cpp.
Referenced by ProcessMessage().
◆ GETBLOCKTXN
| const char * NetMsgType::GETBLOCKTXN ="getblocktxn" |
Contains a BlockTransactionsRequest Peer should respond with "blocktxn" message.
- Since
- protocol version 70209 as described by BIP 152
Definition at line 41 of file protocol.cpp.
Referenced by ProcessMessage().
◆ GETDATA
| const char * NetMsgType::GETDATA ="getdata" |
The getdata message requests one or more data objects from another node.
Definition at line 22 of file protocol.cpp.
Referenced by ProcessHeadersMessage(), ProcessMessage(), and PeerLogicValidation::SendMessages().
◆ GETHEADERS
| 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.
- Since
- protocol version 31800.
Definition at line 25 of file protocol.cpp.
Referenced by PeerLogicValidation::ConsiderEviction(), ProcessHeadersMessage(), ProcessMessage(), and PeerLogicValidation::SendMessages().
◆ GETMNLISTDIFF
| const char * NetMsgType::GETMNLISTDIFF ="getmnlistd" |
Definition at line 60 of file protocol.cpp.
Referenced by ProcessMessage().
◆ GETSPORKS
| const char * NetMsgType::GETSPORKS ="getsporks" |
Definition at line 46 of file protocol.cpp.
Referenced by CSporkManager::ProcessSpork(), and CMasternodeSync::ProcessTick().
◆ HEADERS
| 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.
- Since
- protocol version 31800.
Definition at line 27 of file protocol.cpp.
Referenced by ProcessMessage(), and PeerLogicValidation::SendMessages().
◆ INV
| const char * NetMsgType::INV ="inv" |
The inv message (inventory message) transmits one or more inventories of objects known to the transmitting peer.
Definition at line 21 of file protocol.cpp.
Referenced by ProcessGetBlockData(), ProcessMessage(), and PeerLogicValidation::SendMessages().
◆ ISLOCK
| const char * NetMsgType::ISLOCK ="islock" |
Definition at line 76 of file protocol.cpp.
Referenced by CInv::GetCommandInternal(), ProcessGetData(), and llmq::CInstantSendManager::ProcessMessage().
◆ LEGACYTXLOCKREQUEST
| const char * NetMsgType::LEGACYTXLOCKREQUEST ="ix" |
Definition at line 44 of file protocol.cpp.
Referenced by CInv::GetCommandInternal(), and ProcessMessage().
◆ MEMPOOL
| 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.
- Since
- protocol version 60002.
Definition at line 30 of file protocol.cpp.
Referenced by ProcessMessage(), and CMasternodeSync::ProcessTick().
◆ MERKLEBLOCK
| 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.
- Since
- protocol version 70001 as described by BIP37.
Definition at line 23 of file protocol.cpp.
Referenced by CInv::GetCommandInternal(), and ProcessGetBlockData().
◆ MNAUTH
| const char * NetMsgType::MNAUTH ="mnauth" |
Definition at line 77 of file protocol.cpp.
Referenced by CMNAuth::ProcessMessage(), ProcessMessage(), and CMNAuth::PushMNAUTH().
◆ MNGOVERNANCEOBJECT
| const char * NetMsgType::MNGOVERNANCEOBJECT ="govobj" |
Definition at line 58 of file protocol.cpp.
Referenced by CInv::GetCommandInternal(), ProcessGetData(), and CGovernanceManager::ProcessMessage().
◆ MNGOVERNANCEOBJECTVOTE
| const char * NetMsgType::MNGOVERNANCEOBJECTVOTE ="govobjvote" |
Definition at line 59 of file protocol.cpp.
Referenced by CInv::GetCommandInternal(), ProcessGetData(), and CGovernanceManager::ProcessMessage().
◆ MNGOVERNANCESYNC
| const char * NetMsgType::MNGOVERNANCESYNC ="govsync" |
Definition at line 57 of file protocol.cpp.
Referenced by CGovernanceManager::ProcessMessage(), CGovernanceManager::RequestGovernanceObject(), CMasternodeSync::SendGovernanceSyncRequest(), and CGovernanceManager::SyncObjects().
◆ MNLISTDIFF
| const char * NetMsgType::MNLISTDIFF ="mnlistdiff" |
Definition at line 61 of file protocol.cpp.
Referenced by ProcessMessage().
◆ NOTFOUND
| 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.
- Since
- protocol version 70001.
Definition at line 33 of file protocol.cpp.
Referenced by ProcessGetData(), and ProcessMessage().
◆ PING
| const char * NetMsgType::PING ="ping" |
The ping message is sent periodically to help confirm that the receiving peer is still connected.
Definition at line 31 of file protocol.cpp.
Referenced by ProcessMessage(), and PeerLogicValidation::SendMessages().
◆ PONG
| 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.
- Since
- protocol version 60001 as described by BIP31.
Definition at line 32 of file protocol.cpp.
Referenced by ProcessMessage().
◆ QBSIGSHARES
| const char * NetMsgType::QBSIGSHARES ="qbsigs" |
Definition at line 72 of file protocol.cpp.
Referenced by llmq::CSigSharesManager::ProcessMessage(), and llmq::CSigSharesManager::SendMessages().
◆ QCOMPLAINT
| const char * NetMsgType::QCOMPLAINT ="qcomplaint" |
Definition at line 65 of file protocol.cpp.
Referenced by CInv::GetCommandInternal(), ProcessGetData(), llmq::CDKGSessionManager::ProcessMessage(), and llmq::CDKGSessionHandler::ProcessMessage().
◆ QCONTRIB
| const char * NetMsgType::QCONTRIB ="qcontrib" |
Definition at line 64 of file protocol.cpp.
Referenced by CInv::GetCommandInternal(), ProcessGetData(), llmq::CDKGSessionManager::ProcessMessage(), and llmq::CDKGSessionHandler::ProcessMessage().
◆ QFCOMMITMENT
| const char * NetMsgType::QFCOMMITMENT ="qfcommit" |
Definition at line 63 of file protocol.cpp.
Referenced by CInv::GetCommandInternal(), ProcessGetData(), and llmq::CQuorumBlockProcessor::ProcessMessage().
◆ QGETSIGSHARES
| const char * NetMsgType::QGETSIGSHARES ="qgetsigs" |
Definition at line 71 of file protocol.cpp.
Referenced by llmq::CSigSharesManager::ProcessMessage(), and llmq::CSigSharesManager::SendMessages().
◆ QJUSTIFICATION
| const char * NetMsgType::QJUSTIFICATION ="qjustify" |
Definition at line 66 of file protocol.cpp.
Referenced by CInv::GetCommandInternal(), ProcessGetData(), llmq::CDKGSessionManager::ProcessMessage(), and llmq::CDKGSessionHandler::ProcessMessage().
◆ QPCOMMITMENT
| const char * NetMsgType::QPCOMMITMENT ="qpcommit" |
Definition at line 67 of file protocol.cpp.
Referenced by CInv::GetCommandInternal(), ProcessGetData(), llmq::CDKGSessionManager::ProcessMessage(), and llmq::CDKGSessionHandler::ProcessMessage().
◆ QSENDRECSIGS
| const char * NetMsgType::QSENDRECSIGS ="qsendrecsigs" |
Definition at line 62 of file protocol.cpp.
Referenced by ProcessMessage().
◆ QSIGREC
| const char * NetMsgType::QSIGREC ="qsigrec" |
Definition at line 73 of file protocol.cpp.
Referenced by CInv::GetCommandInternal(), ProcessGetData(), and llmq::CSigningManager::ProcessMessage().
◆ QSIGSESANN
| const char * NetMsgType::QSIGSESANN ="qsigsesann" |
Definition at line 69 of file protocol.cpp.
Referenced by llmq::CSigSharesManager::ProcessMessage(), and llmq::CSigSharesManager::SendMessages().
◆ QSIGSHARE
| const char * NetMsgType::QSIGSHARE ="qsigshare" |
Definition at line 74 of file protocol.cpp.
Referenced by llmq::CSigSharesManager::ProcessMessage(), and llmq::CSigSharesManager::SendMessages().
◆ QSIGSHARESINV
| const char * NetMsgType::QSIGSHARESINV ="qsigsinv" |
Definition at line 70 of file protocol.cpp.
Referenced by llmq::CSigSharesManager::ProcessMessage(), and llmq::CSigSharesManager::SendMessages().
◆ QWATCH
| const char * NetMsgType::QWATCH ="qwatch" |
Definition at line 68 of file protocol.cpp.
Referenced by llmq::CDKGSessionManager::ProcessMessage(), and ProcessMessage().
◆ REJECT
| const char * NetMsgType::REJECT ="reject" |
The reject message informs the receiving node that one of its previous messages has been rejected.
- Since
- protocol version 70002 as described by BIP61.
Definition at line 37 of file protocol.cpp.
Referenced by CPrivateSendServer::ProcessMessage(), CPrivateSendClientSession::ProcessMessage(), CPrivateSendClientManager::ProcessMessage(), CGovernanceManager::ProcessMessage(), ProcessMessage(), PeerLogicValidation::ProcessMessages(), and SendRejectsAndCheckIfBanned().
◆ SENDCMPCT
| const char * NetMsgType::SENDCMPCT ="sendcmpct" |
Contains a 1-byte bool and 8-byte LE version number.
Indicates that a node is willing to provide blocks via "cmpctblock" messages. May indicate that a node prefers to receive new block announcements via a "cmpctblock" message rather than an "inv", depending on message contents.
- Since
- protocol version 70209 as described by BIP 152
Definition at line 39 of file protocol.cpp.
Referenced by ProcessMessage().
◆ SENDDSQUEUE
| const char * NetMsgType::SENDDSQUEUE ="senddsq" |
Definition at line 55 of file protocol.cpp.
Referenced by ProcessMessage().
◆ SENDHEADERS
| const char * NetMsgType::SENDHEADERS ="sendheaders" |
Indicates that a node prefers to receive new block announcements via a "headers" message rather than an "inv".
- Since
- protocol version 70012 as described by BIP130.
Definition at line 38 of file protocol.cpp.
Referenced by ProcessMessage().
◆ SPORK
| const char * NetMsgType::SPORK ="spork" |
Definition at line 45 of file protocol.cpp.
Referenced by CInv::GetCommandInternal(), ProcessGetData(), and CSporkManager::ProcessSpork().
◆ SYNCSTATUSCOUNT
| const char * NetMsgType::SYNCSTATUSCOUNT ="ssc" |
Definition at line 56 of file protocol.cpp.
Referenced by CMasternodeSync::ProcessMessage(), CGovernanceManager::SyncObjects(), and CGovernanceManager::SyncSingleObjVotes().
◆ TX
| const char * NetMsgType::TX ="tx" |
The tx message transmits a single transaction.
Definition at line 26 of file protocol.cpp.
Referenced by CInv::GetCommandInternal(), ProcessGetBlockData(), ProcessGetData(), and ProcessMessage().
◆ VERACK
| 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.
Definition at line 19 of file protocol.cpp.
Referenced by ProcessMessage().
◆ VERSION
| const char * NetMsgType::VERSION ="version" |
The version message provides information about the transmitting node to the receiving node at the beginning of a connection.
Definition at line 18 of file protocol.cpp.
Referenced by ProcessMessage().

