Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
An input of a transaction. More...
#include <transaction.h>
Public Member Functions | |
CTxIn () | |
CTxIn (COutPoint prevoutIn, CScript scriptSigIn=CScript(), uint32_t nSequenceIn=SEQUENCE_FINAL) | |
CTxIn (uint256 hashPrevTx, uint32_t nOut, CScript scriptSigIn=CScript(), uint32_t nSequenceIn=SEQUENCE_FINAL) | |
template<typename Stream , typename Operation > | |
void | SerializationOp (Stream &s, Operation ser_action) |
std::string | ToString () const |
Public Attributes | |
COutPoint | prevout |
CScript | scriptSig |
uint32_t | nSequence |
ADD_SERIALIZE_METHODS | |
Static Public Attributes | |
static const uint32_t | SEQUENCE_FINAL = 0xffffffff |
static const uint32_t | SEQUENCE_LOCKTIME_DISABLE_FLAG = (1 << 31) |
static const uint32_t | SEQUENCE_LOCKTIME_TYPE_FLAG = (1 << 22) |
static const uint32_t | SEQUENCE_LOCKTIME_MASK = 0x0000ffff |
static const int | SEQUENCE_LOCKTIME_GRANULARITY = 9 |
Friends | |
bool | operator== (const CTxIn &a, const CTxIn &b) |
bool | operator!= (const CTxIn &a, const CTxIn &b) |
bool | operator< (const CTxIn &a, const CTxIn &b) |
Detailed Description
An input of a transaction.
It contains the location of the previous transaction's output that it claims and a signature that matches the output's public key.
Definition at line 70 of file transaction.h.
Constructor & Destructor Documentation
◆ CTxIn() [1/3]
|
inline |
Definition at line 104 of file transaction.h.
References nSequence, and SEQUENCE_FINAL.
◆ CTxIn() [2/3]
|
explicit |
Definition at line 22 of file transaction.cpp.
◆ CTxIn() [3/3]
CTxIn::CTxIn | ( | uint256 | hashPrevTx, |
uint32_t | nOut, | ||
CScript | scriptSigIn = CScript() , |
||
uint32_t | nSequenceIn = SEQUENCE_FINAL |
||
) |
Definition at line 29 of file transaction.cpp.
Member Function Documentation
◆ SerializationOp()
|
inline |
◆ ToString()
std::string CTxIn::ToString | ( | ) | const |
Definition at line 36 of file transaction.cpp.
References HexStr(), COutPoint::IsNull(), nSequence, prevout, scriptSig, SEQUENCE_FINAL, strprintf, and COutPoint::ToString().
Referenced by CPrivateSendServer::IsInputScriptSigValid().
Friends And Related Function Documentation
◆ operator!=
Definition at line 128 of file transaction.h.
◆ operator<
Definition at line 133 of file transaction.h.
◆ operator==
Definition at line 121 of file transaction.h.
Member Data Documentation
◆ ADD_SERIALIZE_METHODS
CTxIn::ADD_SERIALIZE_METHODS |
Definition at line 112 of file transaction.h.
◆ nSequence
uint32_t CTxIn::nSequence |
Definition at line 75 of file transaction.h.
Referenced by CPrivateSendServer::AddScriptSig(), CPrivateSendEntry::AddScriptSig(), CalculateSequenceLocks(), CTxIn(), SerializationOp(), ToString(), TxInErrorToJSON(), and TxToUniv().
◆ prevout
COutPoint CTxIn::prevout |
Definition at line 73 of file transaction.h.
Referenced by CWallet::AbandonTransaction(), AcceptToMemoryPoolWorker(), CTxMemPool::addAddressIndex(), AddOrphanTx(), CPrivateSendServer::AddScriptSig(), CPrivateSendEntry::AddScriptSig(), CTxMemPool::addSpentIndex(), CWallet::AddToSpends(), CWallet::AddToWalletIfInvolvingMe(), CTxMemPool::check(), CheckInputsFromMempoolAndCache(), CheckSequenceLocks(), combinerawtransaction(), CWallet::CommitTransaction(), CChainState::ConnectBlock(), CTxIn(), TransactionRecord::decomposeTransaction(), CChainState::DisconnectBlock(), entryToJSON(), EraseOrphanTx(), CWallet::FundTransaction(), CWallet::GetAddressGroupings(), getblockstats(), getblocktemplate(), CWallet::GetConflicts(), CWallet::GetDebit(), CWallet::IsAllFromMe(), CPrivateSendServer::IsInputScriptSigValid(), CWallet::IsMine(), CBloomFilter::IsRelevantAndUpdate(), CWalletTx::IsTrusted(), CWallet::LoadToWallet(), CWallet::MarkConflicted(), MutateTxSign(), CompareInputBIP69::operator()(), ProcessMessage(), RecursiveDynamicUsage(), CTxMemPool::removeConflicts(), CTxMemPool::removeForReorg(), CChainState::RollforwardBlock(), CWallet::SelectPSInOutPairsByDenominations(), SerializationOp(), signrawtransaction(), CWallet::SyncTransaction(), TransactionDesc::toHTML(), ToString(), CTxMemPool::TrimToSize(), TxInErrorToJSON(), TxToUniv(), and UpdateCoins().
◆ scriptSig
CScript CTxIn::scriptSig |
Definition at line 74 of file transaction.h.
Referenced by CPrivateSendServer::AddScriptSig(), CPrivateSendEntry::AddScriptSig(), CTxIn(), CPrivateSendServer::IsInputScriptSigValid(), CBloomFilter::IsRelevantAndUpdate(), IsStandardTx(), MutateTxSign(), RecursiveDynamicUsage(), SerializationOp(), signrawtransaction(), ToString(), TxInErrorToJSON(), and TxToUniv().
◆ SEQUENCE_FINAL
|
static |
Definition at line 79 of file transaction.h.
Referenced by TransactionSignatureChecker::CheckLockTime(), CWallet::CreateTransaction(), CTxIn(), IsFinalTx(), and ToString().
◆ SEQUENCE_LOCKTIME_DISABLE_FLAG
|
static |
Definition at line 84 of file transaction.h.
Referenced by CalculateSequenceLocks(), TransactionSignatureChecker::CheckSequence(), and EvalScript().
◆ SEQUENCE_LOCKTIME_GRANULARITY
|
static |
Definition at line 102 of file transaction.h.
Referenced by CalculateSequenceLocks().
◆ SEQUENCE_LOCKTIME_MASK
|
static |
Definition at line 93 of file transaction.h.
Referenced by CalculateSequenceLocks(), and TransactionSignatureChecker::CheckSequence().
◆ SEQUENCE_LOCKTIME_TYPE_FLAG
|
static |
Definition at line 89 of file transaction.h.
Referenced by CalculateSequenceLocks(), and TransactionSignatureChecker::CheckSequence().
The documentation for this class was generated from the following files:
- src/primitives/transaction.h
- src/primitives/transaction.cpp