Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
A mutable version of CTransaction. More...
#include <transaction.h>
Public Member Functions | |
CMutableTransaction () | |
CMutableTransaction (const CTransaction &tx) | |
template<typename Stream , typename Operation > | |
void | SerializationOp (Stream &s, Operation ser_action) |
template<typename Stream > | |
CMutableTransaction (deserialize_type, Stream &s) | |
uint256 | GetHash () const |
Compute the hash of this CMutableTransaction. More... | |
std::string | ToString () const |
Public Attributes | |
std::vector< CTxIn > | vin |
std::vector< CTxOut > | vout |
int16_t | nVersion |
int16_t | nType |
uint32_t | nLockTime |
std::vector< uint8_t > | vExtraPayload |
ADD_SERIALIZE_METHODS | |
Friends | |
bool | operator== (const CMutableTransaction &a, const CMutableTransaction &b) |
bool | operator!= (const CMutableTransaction &a, const CMutableTransaction &b) |
Detailed Description
A mutable version of CTransaction.
Definition at line 291 of file transaction.h.
Constructor & Destructor Documentation
◆ CMutableTransaction() [1/3]
CMutableTransaction::CMutableTransaction | ( | ) |
Definition at line 63 of file transaction.cpp.
◆ CMutableTransaction() [2/3]
CMutableTransaction::CMutableTransaction | ( | const CTransaction & | tx | ) |
Definition at line 64 of file transaction.cpp.
◆ CMutableTransaction() [3/3]
|
inline |
Definition at line 322 of file transaction.h.
References Unserialize().
Member Function Documentation
◆ GetHash()
uint256 CMutableTransaction::GetHash | ( | ) | const |
Compute the hash of this CMutableTransaction.
This is computed on the fly, as opposed to GetHash() in CTransaction, which uses a cached result.
Definition at line 66 of file transaction.cpp.
References SerializeHash().
Referenced by importprunedfunds(), MempoolEviction(), CPrivateSendClientSession::SignFinalTransaction(), and ToString().
◆ SerializationOp()
|
inline |
Definition at line 306 of file transaction.h.
References nLockTime, READWRITE, TRANSACTION_NORMAL, vExtraPayload, vin, and vout.
◆ ToString()
std::string CMutableTransaction::ToString | ( | ) | const |
Definition at line 71 of file transaction.cpp.
References GetHash(), nLockTime, nType, nVersion, strprintf, vExtraPayload, vin, and vout.
Referenced by CPrivateSendServer::CreateFinalTransaction(), FillBlockPayments(), CPrivateSendClientSession::SendDenominate(), and CPrivateSendClientSession::SignFinalTransaction().
Friends And Related Function Documentation
◆ operator!=
|
friend |
Definition at line 338 of file transaction.h.
◆ operator==
|
friend |
Definition at line 333 of file transaction.h.
Member Data Documentation
◆ ADD_SERIALIZE_METHODS
CMutableTransaction::ADD_SERIALIZE_METHODS |
Definition at line 303 of file transaction.h.
◆ nLockTime
uint32_t CMutableTransaction::nLockTime |
Definition at line 297 of file transaction.h.
Referenced by add_coin(), addCoin(), AddTx(), BOOST_AUTO_TEST_CASE(), createrawtransaction(), CWallet::CreateTransaction(), MutateTxLocktime(), SerializationOp(), and ToString().
◆ nType
int16_t CMutableTransaction::nType |
Definition at line 296 of file transaction.h.
Referenced by BlockAssembler::CreateNewBlock(), CWallet::FundTransaction(), llmq::CQuorumBlockProcessor::GetMinableCommitmentTx(), and ToString().
◆ nVersion
int16_t CMutableTransaction::nVersion |
Definition at line 295 of file transaction.h.
Referenced by CreateDevNetGenesisBlock(), CreateGenesisBlock(), BlockAssembler::CreateNewBlock(), CWallet::FundTransaction(), llmq::CQuorumBlockProcessor::GetMinableCommitmentTx(), MutateTxVersion(), and ToString().
◆ vExtraPayload
std::vector<uint8_t> CMutableTransaction::vExtraPayload |
Definition at line 298 of file transaction.h.
Referenced by CWallet::FundTransaction(), GetTxPayload(), SerializationOp(), SetTxPayload(), and ToString().
◆ vin
std::vector<CTxIn> CMutableTransaction::vin |
Definition at line 293 of file transaction.h.
Referenced by add_coin(), CPrivateSendServer::AddScriptSig(), CCoinsCaching(), combinerawtransaction(), CWallet::CreateCollateralTransaction(), CPrivateSendServer::CreateFinalTransaction(), CreateGenesisBlock(), BlockAssembler::CreateNewBlock(), createrawtransaction(), CWallet::CreateTransaction(), CTransactionBuilder::CTransactionBuilder(), DataFromTransaction(), CPrivateSendClientSession::DoAutomaticDenominating(), CWallet::FundTransaction(), IncrementExtraNonce(), CWalletTx::IsEquivalentTo(), CPrivateSendServer::IsInputScriptSigValid(), MempoolEviction(), MutateTxAddInput(), MutateTxDelInput(), MutateTxSign(), RecursiveDynamicUsage(), CPrivateSendClientSession::SendDenominate(), SerializationOp(), CPrivateSendBaseSession::SetNull(), CPrivateSendClientSession::SignFinalTransaction(), signrawtransaction(), SignSignature(), ToString(), and UpdateTransaction().
◆ vout
std::vector<CTxOut> CMutableTransaction::vout |
Definition at line 294 of file transaction.h.
Referenced by add_coin(), addCoin(), CCoinsCaching(), CWallet::CreateCollateralTransaction(), CPrivateSendServer::CreateFinalTransaction(), CreateGenesisBlock(), BlockAssembler::CreateNewBlock(), createrawtransaction(), CWallet::CreateTransaction(), FillBlockPayments(), fundrawtransaction(), CWallet::FundTransaction(), CPrivateSendServer::IsInputScriptSigValid(), MempoolEviction(), MutateTxAddOutAddr(), MutateTxAddOutData(), MutateTxAddOutMultiSig(), MutateTxAddOutPubKey(), MutateTxAddOutScript(), MutateTxDelOutput(), MutateTxSign(), RecursiveDynamicUsage(), CPrivateSendClientSession::SendDenominate(), SerializationOp(), CPrivateSendBaseSession::SetNull(), CPrivateSendClientSession::SignFinalTransaction(), signrawtransaction(), ToString(), and CoinControlDialog::updateLabels().
The documentation for this struct was generated from the following files:
- src/primitives/transaction.h
- src/primitives/transaction.cpp