Bitcoin
|
#include <transaction.h>
Public Member Functions | |
CTransaction () | |
CTransaction (const CMutableTransaction &tx) | |
CTransaction (CMutableTransaction &&tx) | |
template<typename Stream > | |
void | Serialize (Stream &s) const |
template<typename Stream > | |
CTransaction (deserialize_type, Stream &s) | |
bool | IsNull () const |
const uint256 & | GetHash () const |
const uint256 & | GetWitnessHash () const |
CAmount | GetValueOut () const |
unsigned int | GetTotalSize () const |
bool | IsCoinBase () const |
std::string | ToString () const |
bool | HasWitness () const |
Public Attributes | |
const std::vector< CTxIn > | vin |
const std::vector< CTxOut > | vout |
const int32_t | nVersion |
const uint32_t | nLockTime |
Static Public Attributes | |
static const int32_t | CURRENT_VERSION =2 |
static const int32_t | MAX_STANDARD_VERSION =2 |
Private Member Functions | |
uint256 | ComputeHash () const |
uint256 | ComputeWitnessHash () const |
Private Attributes | |
const uint256 | hash |
const uint256 | m_witness_hash |
Friends | |
bool | operator== (const CTransaction &a, const CTransaction &b) |
bool | operator!= (const CTransaction &a, const CTransaction &b) |
The basic transaction that is broadcasted on the network and contained in blocks. A transaction can contain multiple inputs and outputs.
CTransaction::CTransaction | ( | ) |
Construct a CTransaction that qualifies as IsNull()
|
explicit |
Convert a CMutableTransaction into a CTransaction.
CTransaction::CTransaction | ( | CMutableTransaction && | tx | ) |
|
inline |
This deserializing constructor is provided instead of an Unserialize method. Unserialize is not possible, since it would require overwriting const fields.
|
private |
|
private |
|
inline |
unsigned int CTransaction::GetTotalSize | ( | ) | const |
Get the total transaction size in bytes, including witness data. "Total Size" defined in BIP141 and BIP144.
CAmount CTransaction::GetValueOut | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
std::string CTransaction::ToString | ( | ) | const |
|
friend |
|
friend |
|
static |
|
private |
Memory only.
|
private |
|
static |
const uint32_t CTransaction::nLockTime |
const int32_t CTransaction::nVersion |
const std::vector<CTxIn> CTransaction::vin |
const std::vector<CTxOut> CTransaction::vout |