Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

specialtx.h File Reference
#include <primitives/transaction.h>
#include <streams.h>
#include <version.h>
+ Include dependency graph for specialtx.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool CheckSpecialTx (const CTransaction &tx, const CBlockIndex *pindexPrev, CValidationState &state)
 
bool ProcessSpecialTxsInBlock (const CBlock &block, const CBlockIndex *pindex, CValidationState &state, bool fJustCheck, bool fCheckCbTxMerleRoots)
 
bool UndoSpecialTxsInBlock (const CBlock &block, const CBlockIndex *pindex)
 
template<typename T >
bool GetTxPayload (const std::vector< unsigned char > &payload, T &obj)
 
template<typename T >
bool GetTxPayload (const CMutableTransaction &tx, T &obj)
 
template<typename T >
bool GetTxPayload (const CTransaction &tx, T &obj)
 
template<typename T >
void SetTxPayload (CMutableTransaction &tx, const T &payload)
 
uint256 CalcTxInputsHash (const CTransaction &tx)
 

Function Documentation

◆ CalcTxInputsHash()

uint256 CalcTxInputsHash ( const CTransaction tx)

Definition at line 174 of file specialtx.cpp.

References CLIENT_VERSION, CHashWriter::GetHash(), SER_GETHASH, and CTransaction::vin.

Referenced by CheckInputsHash().

◆ CheckSpecialTx()

◆ GetTxPayload() [1/3]

◆ GetTxPayload() [2/3]

template<typename T >
bool GetTxPayload ( const CMutableTransaction tx,
T &  obj 
)
inline

Definition at line 32 of file specialtx.h.

References GetTxPayload(), and CMutableTransaction::vExtraPayload.

◆ GetTxPayload() [3/3]

template<typename T >
bool GetTxPayload ( const CTransaction tx,
T &  obj 
)
inline

Definition at line 37 of file specialtx.h.

References GetTxPayload(), and CTransaction::vExtraPayload.

◆ ProcessSpecialTxsInBlock()

bool ProcessSpecialTxsInBlock ( const CBlock block,
const CBlockIndex pindex,
CValidationState state,
bool  fJustCheck,
bool  fCheckCbTxMerleRoots 
)

◆ SetTxPayload()

template<typename T >
void SetTxPayload ( CMutableTransaction tx,
const T &  payload 
)

◆ UndoSpecialTxsInBlock()

bool UndoSpecialTxsInBlock ( const CBlock block,
const CBlockIndex pindex 
)
Released under the MIT license