![]() |
Master Core
v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
|
An outpoint - a combination of a transaction hash and an index n into its vout. More...
#include <core.h>
Public Member Functions | |
COutPoint () | |
COutPoint (uint256 hashIn, unsigned int nIn) | |
IMPLEMENT_SERIALIZE (READWRITE(FLATDATA(*this));) void SetNull() | |
bool | IsNull () const |
std::string | ToString () const |
void | print () const |
Public Attributes | |
uint256 | hash |
unsigned int | n |
Friends | |
bool | operator< (const COutPoint &a, const COutPoint &b) |
bool | operator== (const COutPoint &a, const COutPoint &b) |
bool | operator!= (const COutPoint &a, const COutPoint &b) |
An outpoint - a combination of a transaction hash and an index n into its vout.
|
inline |
Definition at line 32 of file core.h.
Referenced by CheckTransaction(), and CTxIn::ToString().
void COutPoint::print | ( | ) | const |
Definition at line 15 of file core.cpp.
References LogPrintf, and ToString().
std::string COutPoint::ToString | ( | ) | const |
Definition at line 10 of file core.cpp.
References hash, n, strprintf, and base_uint< BITS >::ToString().
Referenced by print(), and CTxIn::ToString().
uint256 COutPoint::hash |
Definition at line 25 of file core.h.
Referenced by AcceptToMemoryPool(), AddOrphanTx(), CTxMemPool::check(), CheckInputs(), CWallet::CommitTransaction(), CreateNewBlock(), DisconnectBlock(), EraseOrphanTx(), CWallet::GetAddressGroupings(), getblocktemplate(), CWallet::GetDebit(), CCoinsViewCache::GetOutputFor(), WalletModel::getOutputs(), CCoinsViewCache::GetPriority(), getrawmempool(), CCoinsViewCache::HaveInputs(), CWallet::IsMine(), WalletModel::isSpent(), CWalletTx::IsTrusted(), WalletModel::listCoins(), listlockunspent(), signrawtransaction(), CWallet::SyncTransaction(), TransactionDesc::toHTML(), ToString(), TxToJSON(), and UpdateCoins().
unsigned int COutPoint::n |
Definition at line 26 of file core.h.
Referenced by CTxMemPool::check(), CheckInputs(), CreateNewBlock(), DisconnectBlock(), CWallet::GetAddressGroupings(), CWallet::GetDebit(), CCoinsViewCache::GetOutputFor(), WalletModel::getOutputs(), CCoinsViewCache::GetPriority(), CCoinsViewCache::HaveInputs(), CWallet::IsMine(), WalletModel::isSpent(), CWalletTx::IsTrusted(), WalletModel::listCoins(), listlockunspent(), signrawtransaction(), CCoins::Spend(), TransactionDesc::toHTML(), ToString(), and TxToJSON().