Dash Core  0.12.2.1
P2P Digital Currency
CTxIn Class Reference

#include <transaction.h>

+ Inheritance diagram for CTxIn:

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, int nType, int nVersion)
 
std::string ToString () const
 

Public Attributes

COutPoint prevout
 
CScript scriptSig
 
uint32_t nSequence
 
CScript prevPubKey
 
 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 58 of file transaction.h.

Constructor & Destructor Documentation

◆ CTxIn() [1/3]

CTxIn::CTxIn ( )
inline

Definition at line 93 of file transaction.h.

◆ CTxIn() [2/3]

CTxIn::CTxIn ( COutPoint  prevoutIn,
CScript  scriptSigIn = CScript(),
uint32_t  nSequenceIn = SEQUENCE_FINAL 
)
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()

template<typename Stream , typename Operation >
void CTxIn::SerializationOp ( Stream &  s,
Operation  ser_action,
int  nType,
int  nVersion 
)
inline

Definition at line 104 of file transaction.h.

◆ ToString()

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 117 of file transaction.h.

◆ operator<

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

Definition at line 122 of file transaction.h.

◆ operator==

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

Definition at line 110 of file transaction.h.

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CTxIn::ADD_SERIALIZE_METHODS

Definition at line 101 of file transaction.h.

◆ nSequence

◆ prevout

COutPoint CTxIn::prevout

Definition at line 61 of file transaction.h.

Referenced by CWallet::AbandonTransaction(), AcceptToMemoryPoolWorker(), CMasternodeMan::Add(), CTxMemPool::addAddressIndex(), CPrivateSendServer::AddEntry(), AddOrphanTx(), CPrivateSendServer::AddScriptSig(), CDarkSendEntry::AddScriptSig(), CTxMemPool::addSpentIndex(), CWallet::AddToSpends(), CWallet::AddToWallet(), CWallet::AddToWalletIfInvolvingMe(), CMasternode::CalculateScore(), CMasternode::Check(), CTxMemPool::check(), CMasternodePing::CheckAndUpdate(), CheckBlock(), CGovernanceManager::CheckMasternodeOrphanObjects(), CMasternodeMan::CheckMnbAndUpdateMasternodeList(), CMasternodeBroadcast::CheckOutpoint(), CMasternodeMan::CheckSameAddr(), CheckSequenceLocks(), CMasternodePing::CheckSignature(), CMasternodePaymentVote::CheckSignature(), CheckTransaction(), CMasternode::CMasternode(), CWallet::CommitTransaction(), ConnectBlock(), CWallet::ConvertList(), CPrivateSendClient::CreateDenominated(), CInstantSend::CreateTxLockCandidate(), CTxIn(), TransactionRecord::decomposeTransaction(), DisconnectBlock(), EraseOrphanTx(), CMasternodeMan::FindRandomNotInVec(), CWallet::FundTransaction(), CWallet::GetAddressGroupings(), getblocktemplate(), CWallet::GetConflicts(), CWallet::GetDebit(), CMasternodePaymentVote::GetHash(), CGovernanceVote::GetMasternodeOutpoint(), CCoinsViewCache::GetOutputFor(), getpoolinfo(), CCoinsViewCache::GetPriority(), CWallet::GetRealOutpointPrivateSendRounds(), CGovernanceObject::GetSignatureMessage(), gobject(), CPrivateSend::IsCollateralValid(), CInstantSend::IsEnoughOrphanVotesForTx(), CMasternode::IsInputAssociatedWithPubkey(), CPrivateSendServer::IsInputScriptSigValid(), CWallet::IsMine(), CBloomFilter::IsRelevantAndUpdate(), CWalletTx::IsTrusted(), CGovernanceVote::IsValid(), CTxLockRequest::IsValid(), CMasternodePaymentVote::IsValid(), CGovernanceObject::IsValidLocally(), CPrivateSendClient::JoinExistingQueue(), CPrivateSendClient::MakeCollateralAmounts(), CActiveMasternode::ManageStateRemote(), CWallet::MarkConflicted(), masternode(), masternodebroadcast(), masternodelist(), CGovernanceManager::MasternodeRateCheck(), CGovernanceManager::MasternodeRateUpdate(), mempoolToJSON(), MutateTxSign(), CompareInputBIP69::operator()(), CPrivateSendClient::PrepareDenominate(), CMasternodePayments::ProcessBlock(), CPrivateSendServer::ProcessMessage(), CPrivateSendClient::ProcessMessage(), ProcessMessage(), CInstantSend::ProcessTxLockRequest(), CMasternodeMan::ProcessVerifyBroadcast(), CMasternodeMan::ProcessVerifyReply(), RecursiveDynamicUsage(), CTxMemPool::removeConflicts(), CTxMemPool::removeForReorg(), CTxMemPool::removeUnchecked(), CInstantSend::ResolveConflicts(), CWallet::SelectCoinsByDenominations(), CWallet::SelectCoinsDark(), CPrivateSendClient::SendDenominate(), SerializationOp(), CMasternodeMan::SetMasternodeLastPing(), CGovernanceVote::Sign(), CMasternodePaymentVote::Sign(), CGovernanceObject::Sign(), CPrivateSendClient::SignFinalTransaction(), signrawtransaction(), CMasternodePing::SimpleCheck(), CMasternodeBroadcast::SimpleCheck(), CPrivateSendClient::StartNewQueue(), CWallet::SyncTransaction(), TransactionDesc::toHTML(), ToString(), CMasternodePaymentVote::ToString(), CDarksendQueue::ToString(), CTxMemPool::TrimToSize(), TxInErrorToJSON(), TxToJSON(), TxToUniv(), CMasternodeBroadcast::Update(), UpdateCoins(), CMasternode::UpdateLastPaid(), and CMasternodeMan::UpdateMasternodeList().

◆ prevPubKey

◆ scriptSig

◆ SEQUENCE_FINAL

const uint32_t CTxIn::SEQUENCE_FINAL = 0xffffffff
static

◆ SEQUENCE_LOCKTIME_DISABLE_FLAG

const uint32_t CTxIn::SEQUENCE_LOCKTIME_DISABLE_FLAG = (1 << 31)
static

◆ SEQUENCE_LOCKTIME_GRANULARITY

const int CTxIn::SEQUENCE_LOCKTIME_GRANULARITY = 9
static

Definition at line 91 of file transaction.h.

Referenced by CalculateSequenceLocks().

◆ SEQUENCE_LOCKTIME_MASK

const uint32_t CTxIn::SEQUENCE_LOCKTIME_MASK = 0x0000ffff
static

◆ SEQUENCE_LOCKTIME_TYPE_FLAG

const uint32_t CTxIn::SEQUENCE_LOCKTIME_TYPE_FLAG = (1 << 22)
static

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