Changeset View
Changeset View
Standalone View
Standalone View
src/primitives/transaction.h
Show First 20 Lines • Show All 257 Lines • ▼ Show 20 Lines | public: | ||||
bool IsNull() const { return vin.empty() && vout.empty(); } | bool IsNull() const { return vin.empty() && vout.empty(); } | ||||
const TxId GetId() const { return TxId(hash); } | const TxId GetId() const { return TxId(hash); } | ||||
const TxHash GetHash() const { return TxHash(hash); } | const TxHash GetHash() const { return TxHash(hash); } | ||||
// Return sum of txouts. | // Return sum of txouts. | ||||
Amount GetValueOut() const; | Amount GetValueOut() const; | ||||
// GetValueIn() is a method on CCoinsViewCache, because | |||||
// inputs must be known to compute value in. | |||||
/** | /** | ||||
* Get the total transaction size in bytes. | * Get the total transaction size in bytes. | ||||
* @return Total transaction size in bytes | * @return Total transaction size in bytes | ||||
*/ | */ | ||||
unsigned int GetTotalSize() const; | unsigned int GetTotalSize() const; | ||||
bool IsCoinBase() const { | bool IsCoinBase() const { | ||||
▲ Show 20 Lines • Show All 85 Lines • Show Last 20 Lines |