inv message data

Synopsis

Declared in <protocol.h>

class CInv;

Member Functions

Name

Description

CInv [constructor]

Constructors

GetMessageType

Returns the network message type this inventory entry maps to.

IsGenBlkMsg

Returns whether this entry refers to any block‐type message.

IsGenTxMsg

Returns whether this entry refers to any transaction‐type message.

IsMsgBlk

Returns whether this entry refers to a block.

IsMsgCmpctBlk

Returns whether this entry refers to a compact block.

IsMsgFilteredBlk

Returns whether this entry refers to a filtered (merkle) block.

IsMsgTx

Returns whether this entry refers to a plain transaction.

IsMsgWitnessBlk

Returns whether this entry refers to a block including witness data.

IsMsgWtx

Returns whether this entry refers to a witness transaction (wtx).

ToString

Returns a human‐readable representation of this inventory entry.

Data Members

Name

Description

hash

Hash of the referenced object.

type

Inventory type, one of the GetDataMsg values.

Friends

Name

Description

operator<

Orders two inventory entries by type and then by hash.

Non-Member Functions

Name

Description

ToGenTxid

Convert a TX/WITNESS_TX/WTX CInv to a GenTxid.

Created with MrDocs