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

A generic txid reference (txid or wtxid). More...

#include <transaction.h>

Collaboration diagram for GenTxid:
[legend]

Public Member Functions

 GenTxid (bool is_wtxid, const uint256 &hash)
 
bool IsWtxid () const
 
const uint256GetHash () const
 

Private Attributes

bool m_is_wtxid
 
uint256 m_hash
 

Friends

bool operator== (const GenTxid &a, const GenTxid &b)
 
bool operator< (const GenTxid &a, const GenTxid &b)
 

Detailed Description

A generic txid reference (txid or wtxid).

Definition at line 400 of file transaction.h.

Constructor & Destructor Documentation

◆ GenTxid()

GenTxid::GenTxid ( bool  is_wtxid,
const uint256 hash 
)
inline

Definition at line 405 of file transaction.h.

Member Function Documentation

◆ GetHash()

const uint256& GenTxid::GetHash ( ) const
inline

Definition at line 407 of file transaction.h.

Here is the caller graph for this function:

◆ IsWtxid()

bool GenTxid::IsWtxid ( ) const
inline

Definition at line 406 of file transaction.h.

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator<

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

Definition at line 409 of file transaction.h.

◆ operator==

bool operator== ( const GenTxid a,
const GenTxid b 
)
friend

Definition at line 408 of file transaction.h.

Member Data Documentation

◆ m_hash

uint256 GenTxid::m_hash
private

Definition at line 403 of file transaction.h.

◆ m_is_wtxid

bool GenTxid::m_is_wtxid
private

Definition at line 402 of file transaction.h.


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