Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Public Attributes | Friends | List of all members
CTxOut Class Reference

An output of a transaction. More...

#include <core.h>

+ Collaboration diagram for CTxOut:

Public Member Functions

 CTxOut ()
 
 CTxOut (int64_t nValueIn, CScript scriptPubKeyIn)
 
 IMPLEMENT_SERIALIZE (READWRITE(nValue);READWRITE(scriptPubKey);) void SetNull()
 
bool IsNull () const
 
uint256 GetHash () const
 
bool IsDust (int64_t nMinRelayTxFee) const
 
std::string ToString () const
 
void print () const
 

Public Attributes

int64_t nValue
 
CScript scriptPubKey
 

Friends

bool operator== (const CTxOut &a, const CTxOut &b)
 
bool operator!= (const CTxOut &a, const CTxOut &b)
 

Detailed Description

An output of a transaction.

It contains the public key that the next input must be able to sign with to claim it.

Definition at line 119 of file core.h.

Constructor & Destructor Documentation

CTxOut::CTxOut ( )
inline

Definition at line 125 of file core.h.

CTxOut::CTxOut ( int64_t  nValueIn,
CScript  scriptPubKeyIn 
)

Definition at line 54 of file core.cpp.

References nValue, and scriptPubKey.

Member Function Documentation

uint256 CTxOut::GetHash ( ) const

Definition at line 60 of file core.cpp.

References SerializeHash().

+ Here is the call graph for this function:

CTxOut::IMPLEMENT_SERIALIZE ( READWRITE(nValue);READWRITE(scriptPubKey);  )
inline

Definition at line 133 of file core.h.

bool CTxOut::IsDust ( int64_t  nMinRelayTxFee) const
inline

Definition at line 151 of file core.h.

References GetSerializeSize(), and SER_DISK.

Referenced by GUIUtil::isDust(), IsStandardTx(), PaymentServer::processPaymentRequest(), and CoinControlDialog::updateLabels().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool CTxOut::IsNull ( ) const
inline

Definition at line 144 of file core.h.

Referenced by CCoinsViewDB::GetStats(), and CCoins::IsPruned().

+ Here is the caller graph for this function:

void CTxOut::print ( ) const

Definition at line 70 of file core.cpp.

References LogPrintf, and ToString().

+ Here is the call graph for this function:

std::string CTxOut::ToString ( ) const

Definition at line 65 of file core.cpp.

References COIN, nValue, scriptPubKey, strprintf, and CScript::ToString().

Referenced by print().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Friends And Related Function Documentation

bool operator!= ( const CTxOut a,
const CTxOut b 
)
friend

Definition at line 170 of file core.h.

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

Definition at line 164 of file core.h.

Member Data Documentation

int64_t CTxOut::nValue
CScript CTxOut::scriptPubKey

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