Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
CInv Class Reference

inv 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 GetMessageType () const
std::string ToString () const
bool IsMsgTx () const
bool IsMsgBlk () const
bool IsMsgWtx () const
bool IsMsgFilteredBlk () const
bool IsMsgCmpctBlk () const
bool IsMsgWitnessBlk () const
bool IsGenTxMsg () const
bool IsGenBlkMsg () const

Public Attributes

uint32_t type
uint256 hash

Friends

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

Detailed Description

inv message data

Definition at line 493 of file protocol.h.

Constructor & Destructor Documentation

◆ CInv() [1/2]

CInv::CInv ( )

Definition at line 45 of file protocol.cpp.

Here is the caller graph for this function:

◆ CInv() [2/2]

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

Definition at line 51 of file protocol.cpp.

Member Function Documentation

◆ GetMessageType()

std::string CInv::GetMessageType ( ) const

Definition at line 58 of file protocol.cpp.

Here is the caller graph for this function:

◆ IsGenBlkMsg()

bool CInv::IsGenBlkMsg ( ) const
inline

Definition at line 519 of file protocol.h.

◆ IsGenTxMsg()

bool CInv::IsGenTxMsg ( ) const
inline

Definition at line 515 of file protocol.h.

Here is the caller graph for this function:

◆ IsMsgBlk()

bool CInv::IsMsgBlk ( ) const
inline

Definition at line 508 of file protocol.h.

◆ IsMsgCmpctBlk()

bool CInv::IsMsgCmpctBlk ( ) const
inline

Definition at line 511 of file protocol.h.

◆ IsMsgFilteredBlk()

bool CInv::IsMsgFilteredBlk ( ) const
inline

Definition at line 510 of file protocol.h.

◆ IsMsgTx()

bool CInv::IsMsgTx ( ) const
inline

Definition at line 507 of file protocol.h.

◆ IsMsgWitnessBlk()

bool CInv::IsMsgWitnessBlk ( ) const
inline

Definition at line 512 of file protocol.h.

◆ IsMsgWtx()

bool CInv::IsMsgWtx ( ) const
inline

Definition at line 509 of file protocol.h.

Here is the caller graph for this function:

◆ SERIALIZE_METHODS()

CInv::SERIALIZE_METHODS ( CInv ,
obj  )
inline

Definition at line 499 of file protocol.h.

Here is the call graph for this function:

◆ ToString()

std::string CInv::ToString ( ) const

Definition at line 77 of file protocol.cpp.

Here is the call graph for this function:

◆ operator<

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

Definition at line 53 of file protocol.cpp.

Member Data Documentation

◆ hash

uint256 CInv::hash

Definition at line 525 of file protocol.h.

◆ type

uint32_t CInv::type

Definition at line 524 of file protocol.h.


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