Bitcoin Core  0.20.99
P2P Digital Currency
Public Member Functions | Public Attributes | Friends | List of all members
CInv Class Reference

inv message data More...

#include <protocol.h>

Collaboration diagram for CInv:
[legend]

Public Member Functions

 CInv ()
 
 CInv (int typeIn, const uint256 &hashIn)
 
 SERIALIZE_METHODS (CInv, obj)
 
std::string GetCommand () const
 
std::string ToString () const
 
bool IsMsgTx () const
 
bool IsMsgWtx () const
 
bool IsMsgWitnessTx () const
 
bool IsGenTxMsg () const
 

Public Attributes

int type
 
uint256 hash
 

Friends

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

Detailed Description

inv message data

Definition at line 404 of file protocol.h.

Constructor & Destructor Documentation

◆ CInv() [1/2]

CInv::CInv ( )

Definition at line 160 of file protocol.cpp.

◆ CInv() [2/2]

CInv::CInv ( int  typeIn,
const uint256 hashIn 
)

Definition at line 166 of file protocol.cpp.

Member Function Documentation

◆ GetCommand()

std::string CInv::GetCommand ( ) const

Definition at line 173 of file protocol.cpp.

Here is the caller graph for this function:

◆ IsGenTxMsg()

bool CInv::IsGenTxMsg ( ) const
inline

Definition at line 423 of file protocol.h.

Here is the caller graph for this function:

◆ IsMsgTx()

bool CInv::IsMsgTx ( ) const
inline

Definition at line 418 of file protocol.h.

Here is the caller graph for this function:

◆ IsMsgWitnessTx()

bool CInv::IsMsgWitnessTx ( ) const
inline

Definition at line 420 of file protocol.h.

◆ IsMsgWtx()

bool CInv::IsMsgWtx ( ) const
inline

Definition at line 419 of file protocol.h.

Here is the caller graph for this function:

◆ SERIALIZE_METHODS()

CInv::SERIALIZE_METHODS ( CInv  ,
obj   
)
inline

Definition at line 410 of file protocol.h.

Here is the call graph for this function:

◆ ToString()

std::string CInv::ToString ( ) const

Definition at line 192 of file protocol.cpp.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator<

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

Definition at line 168 of file protocol.cpp.

Member Data Documentation

◆ hash

uint256 CInv::hash

Definition at line 426 of file protocol.h.

◆ type

int CInv::type

Definition at line 425 of file protocol.h.


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