![]() |
Master Core
v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
|
An output of a transaction. More...
#include <core.h>
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) |
An output of a transaction.
It contains the public key that the next input must be able to sign with to claim it.
CTxOut::CTxOut | ( | int64_t | nValueIn, |
CScript | scriptPubKeyIn | ||
) |
Definition at line 54 of file core.cpp.
References nValue, and scriptPubKey.
uint256 CTxOut::GetHash | ( | ) | const |
Definition at line 60 of file core.cpp.
References SerializeHash().
|
inline |
|
inline |
Definition at line 151 of file core.h.
References GetSerializeSize(), and SER_DISK.
Referenced by GUIUtil::isDust(), IsStandardTx(), PaymentServer::processPaymentRequest(), and CoinControlDialog::updateLabels().
|
inline |
Definition at line 144 of file core.h.
Referenced by CCoinsViewDB::GetStats(), and CCoins::IsPruned().
void CTxOut::print | ( | ) | const |
Definition at line 70 of file core.cpp.
References LogPrintf, and ToString().
std::string CTxOut::ToString | ( | ) | const |
Definition at line 65 of file core.cpp.
References COIN, nValue, scriptPubKey, strprintf, and CScript::ToString().
Referenced by print().
int64_t CTxOut::nValue |
Definition at line 122 of file core.h.
Referenced by CheckTransaction(), CTxOut(), TransactionRecord::decomposeTransaction(), CWalletTx::GetAmounts(), CWallet::GetChange(), CWallet::GetCredit(), GetMinFee(), getreceivedbyaccount(), getreceivedbyaddress(), CCoinsViewDB::GetStats(), CCoinsViewCache::GetValueIn(), CTransaction::GetValueOut(), ListReceived(), TransactionDesc::toHTML(), ToString(), and TxToJSON().
CScript CTxOut::scriptPubKey |
Definition at line 123 of file core.h.
Referenced by AreInputsStandard(), CCoins::ClearUnspendable(), CTxOut(), TransactionRecord::decomposeTransaction(), GetAccountAddress(), CWallet::GetAddressGroupings(), CWalletTx::GetAmounts(), CWallet::GetKeyBirthTimes(), GetLegacySigOpCount(), GetP2SHSigOpCount(), getreceivedbyaccount(), getreceivedbyaddress(), CWallet::IsChange(), CWallet::IsMine(), CBloomFilter::IsRelevantAndUpdate(), IsStandardTx(), ListReceived(), TransactionDesc::toHTML(), ToString(), and TxToJSON().