Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
inv message data More...
#include <protocol.h>
Public Member Functions | |
CInv () | |
CInv (int typeIn, const uint256 &hashIn) | |
template<typename Stream , typename Operation > | |
void | SerializationOp (Stream &s, Operation ser_action) |
bool | IsKnownType () const |
std::string | GetCommand () const |
std::string | ToString () const |
Public Attributes | |
ADD_SERIALIZE_METHODS | |
int | type |
uint256 | hash |
Private Member Functions | |
const char * | GetCommandInternal () const |
Friends | |
bool | operator< (const CInv &a, const CInv &b) |
Detailed Description
inv message data
Definition at line 429 of file protocol.h.
Constructor & Destructor Documentation
◆ CInv() [1/2]
CInv::CInv | ( | ) |
Definition at line 230 of file protocol.cpp.
References hash, base_blob< BITS >::SetNull(), and type.
◆ CInv() [2/2]
CInv::CInv | ( | int | typeIn, |
const uint256 & | hashIn | ||
) |
Definition at line 236 of file protocol.cpp.
Member Function Documentation
◆ GetCommand()
std::string CInv::GetCommand | ( | ) | const |
Definition at line 274 of file protocol.cpp.
References GetCommandInternal(), strprintf, and type.
◆ GetCommandInternal()
|
private |
Definition at line 248 of file protocol.cpp.
References NetMsgType::BLOCK, NetMsgType::CLSIG, NetMsgType::CMPCTBLOCK, NetMsgType::DSTX, NetMsgType::ISLOCK, NetMsgType::LEGACYTXLOCKREQUEST, NetMsgType::MERKLEBLOCK, NetMsgType::MNGOVERNANCEOBJECT, NetMsgType::MNGOVERNANCEOBJECTVOTE, MSG_BLOCK, MSG_CLSIG, MSG_CMPCT_BLOCK, MSG_DSTX, MSG_FILTERED_BLOCK, MSG_GOVERNANCE_OBJECT, MSG_GOVERNANCE_OBJECT_VOTE, MSG_ISLOCK, MSG_LEGACY_TXLOCK_REQUEST, MSG_QUORUM_COMPLAINT, MSG_QUORUM_CONTRIB, MSG_QUORUM_FINAL_COMMITMENT, MSG_QUORUM_JUSTIFICATION, MSG_QUORUM_PREMATURE_COMMITMENT, MSG_QUORUM_RECOVERED_SIG, MSG_SPORK, MSG_TX, NetMsgType::QCOMPLAINT, NetMsgType::QCONTRIB, NetMsgType::QFCOMMITMENT, NetMsgType::QJUSTIFICATION, NetMsgType::QPCOMMITMENT, NetMsgType::QSIGREC, NetMsgType::SPORK, NetMsgType::TX, and type.
Referenced by GetCommand(), IsKnownType(), and ToString().
◆ IsKnownType()
bool CInv::IsKnownType | ( | ) | const |
Definition at line 243 of file protocol.cpp.
References GetCommandInternal().
◆ SerializationOp()
|
inline |
Definition at line 438 of file protocol.h.
◆ ToString()
std::string CInv::ToString | ( | ) | const |
Definition at line 283 of file protocol.cpp.
References GetCommandInternal(), hash, strprintf, base_blob< BITS >::ToString(), and type.
Referenced by CGovernanceManager::ConfirmInventoryRequest(), ProcessGetData(), CNode::PushInventory(), RequestObject(), and PeerLogicValidation::SendMessages().
Friends And Related Function Documentation
◆ operator<
Definition at line 238 of file protocol.cpp.
Member Data Documentation
◆ ADD_SERIALIZE_METHODS
CInv::ADD_SERIALIZE_METHODS |
Definition at line 435 of file protocol.h.
◆ hash
uint256 CInv::hash |
Definition at line 456 of file protocol.h.
Referenced by CNode::AddInventoryKnown(), llmq::CDKGSessionManager::AlreadyHave(), llmq::CChainLocksHandler::AlreadyHave(), llmq::CSigningManager::AlreadyHave(), llmq::CInstantSendManager::AlreadyHave(), CInv(), CGovernanceManager::ConfirmInventoryRequest(), operator<(), ProcessGetBlockData(), ProcessGetData(), CNode::PushInventory(), RequestObject(), PeerLogicValidation::SendMessages(), SerializationOp(), and ToString().
◆ type
int CInv::type |
Definition at line 455 of file protocol.h.
Referenced by llmq::CSigningManager::AlreadyHave(), CInv(), CGovernanceManager::ConfirmInventoryRequest(), GetCommand(), GetCommandInternal(), operator<(), ProcessGetBlockData(), ProcessGetData(), ProcessMessage(), CNode::PushInventory(), PeerLogicValidation::SendMessages(), SerializationOp(), and ToString().
The documentation for this class was generated from the following files:
- src/protocol.h
- src/protocol.cpp