Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Friends | List of all members
CInv Class Reference

Inv(ventory) message data. More...

#include <protocol.h>

Collaboration diagram for CInv:
[legend]

Public Member Functions

 CInv ()
 
 CInv (uint32_t typeIn, const uint256 &hashIn)
 
 SERIALIZE_METHODS (CInv, obj)
 
std::string GetCommand () const
 
std::string ToString () const
 
uint32_t GetKind () const
 
bool IsMsgTx () const
 
bool IsMsgProof () const
 
bool IsMsgStakeContender () const
 
bool IsMsgBlk () const
 
bool IsMsgFilteredBlk () const
 
bool IsMsgCmpctBlk () const
 
bool IsGenBlkMsg () const
 

Public Attributes

uint32_t type
 
uint256 hash
 

Friends

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

Detailed Description

Inv(ventory) message data.

Intended as non-ambiguous identifier of objects (eg. transactions, blocks) held by peers.

Definition at line 581 of file protocol.h.

Constructor & Destructor Documentation

◆ CInv() [1/2]

CInv::CInv ( )
inline

Definition at line 586 of file protocol.h.

◆ CInv() [2/2]

CInv::CInv ( uint32_t  typeIn,
const uint256 hashIn 
)
inline

Definition at line 587 of file protocol.h.

Member Function Documentation

◆ GetCommand()

std::string CInv::GetCommand ( ) const

Definition at line 216 of file protocol.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetKind()

uint32_t CInv::GetKind ( ) const
inline

Definition at line 598 of file protocol.h.

Here is the caller graph for this function:

◆ IsGenBlkMsg()

bool CInv::IsGenBlkMsg ( ) const
inline

Definition at line 625 of file protocol.h.

Here is the call graph for this function:

◆ IsMsgBlk()

bool CInv::IsMsgBlk ( ) const
inline

Definition at line 612 of file protocol.h.

Here is the call graph for this function:

◆ IsMsgCmpctBlk()

bool CInv::IsMsgCmpctBlk ( ) const
inline

Definition at line 620 of file protocol.h.

Here is the call graph for this function:

◆ IsMsgFilteredBlk()

bool CInv::IsMsgFilteredBlk ( ) const
inline

Definition at line 616 of file protocol.h.

Here is the call graph for this function:

◆ IsMsgProof()

bool CInv::IsMsgProof ( ) const
inline

Definition at line 604 of file protocol.h.

Here is the call graph for this function:

◆ IsMsgStakeContender()

bool CInv::IsMsgStakeContender ( ) const
inline

Definition at line 608 of file protocol.h.

Here is the call graph for this function:

◆ IsMsgTx()

bool CInv::IsMsgTx ( ) const
inline

Definition at line 600 of file protocol.h.

Here is the call graph for this function:

◆ SERIALIZE_METHODS()

CInv::SERIALIZE_METHODS ( CInv  ,
obj   
)
inline

Definition at line 589 of file protocol.h.

Here is the call graph for this function:

◆ ToString()

std::string CInv::ToString ( ) const

Definition at line 239 of file protocol.cpp.

Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ operator<

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

Definition at line 591 of file protocol.h.

Member Data Documentation

◆ hash

uint256 CInv::hash

Definition at line 584 of file protocol.h.

◆ type

uint32_t CInv::type

Definition at line 583 of file protocol.h.


The documentation for this class was generated from the following files: