Changeset View
Changeset View
Standalone View
Standalone View
src/primitives/transaction.h
Show First 20 Lines • Show All 176 Lines • ▼ Show 20 Lines | public: | ||||
friend bool operator!=(const CTxOut &a, const CTxOut &b) { | friend bool operator!=(const CTxOut &a, const CTxOut &b) { | ||||
return !(a == b); | return !(a == b); | ||||
} | } | ||||
std::string ToString() const; | std::string ToString() const; | ||||
}; | }; | ||||
struct CMutableTransaction; | class CMutableTransaction; | ||||
/** | /** | ||||
* Basic transaction serialization format: | * Basic transaction serialization format: | ||||
* - int32_t nVersion | * - int32_t nVersion | ||||
* - std::vector<CTxIn> vin | * - std::vector<CTxIn> vin | ||||
* - std::vector<CTxOut> vout | * - std::vector<CTxOut> vout | ||||
* - uint32_t nLockTime | * - uint32_t nLockTime | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 103 Lines • ▼ Show 20 Lines | public: | ||||
friend bool operator!=(const CTransaction &a, const CTransaction &b) { | friend bool operator!=(const CTransaction &a, const CTransaction &b) { | ||||
return a.hash != b.hash; | return a.hash != b.hash; | ||||
} | } | ||||
std::string ToString() const; | std::string ToString() const; | ||||
}; | }; | ||||
/** A mutable version of CTransaction. */ | /** | ||||
struct CMutableTransaction { | * A mutable version of CTransaction. | ||||
*/ | |||||
class CMutableTransaction { | |||||
public: | |||||
int32_t nVersion; | int32_t nVersion; | ||||
std::vector<CTxIn> vin; | std::vector<CTxIn> vin; | ||||
std::vector<CTxOut> vout; | std::vector<CTxOut> vout; | ||||
uint32_t nLockTime; | uint32_t nLockTime; | ||||
CMutableTransaction(); | CMutableTransaction(); | ||||
CMutableTransaction(const CTransaction &tx); | CMutableTransaction(const CTransaction &tx); | ||||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |