|
|
@ -379,6 +379,7 @@ public: |
|
|
|
|
|
|
|
|
|
|
|
/** Convert a CMutableTransaction into a CTransaction. */ |
|
|
|
/** Convert a CMutableTransaction into a CTransaction. */ |
|
|
|
CTransaction(const CMutableTransaction &tx); |
|
|
|
CTransaction(const CMutableTransaction &tx); |
|
|
|
|
|
|
|
CTransaction(CMutableTransaction &&tx); |
|
|
|
|
|
|
|
|
|
|
|
CTransaction& operator=(const CTransaction& tx); |
|
|
|
CTransaction& operator=(const CTransaction& tx); |
|
|
|
|
|
|
|
|
|
|
@ -392,6 +393,9 @@ public: |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template <typename Stream> |
|
|
|
|
|
|
|
CTransaction(deserialize_type, Stream& s) : CTransaction(CMutableTransaction(deserialize, s)) {} |
|
|
|
|
|
|
|
|
|
|
|
bool IsNull() const { |
|
|
|
bool IsNull() const { |
|
|
|
return vin.empty() && vout.empty(); |
|
|
|
return vin.empty() && vout.empty(); |
|
|
|
} |
|
|
|
} |
|
|
@ -460,6 +464,11 @@ struct CMutableTransaction |
|
|
|
SerializeTransaction(*this, s, ser_action); |
|
|
|
SerializeTransaction(*this, s, ser_action); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template <typename Stream> |
|
|
|
|
|
|
|
CMutableTransaction(deserialize_type, Stream& s) { |
|
|
|
|
|
|
|
Unserialize(s); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** Compute the hash of this CMutableTransaction. This is computed on the
|
|
|
|
/** Compute the hash of this CMutableTransaction. This is computed on the
|
|
|
|
* fly, as opposed to GetHash() in CTransaction, which uses a cached result. |
|
|
|
* fly, as opposed to GetHash() in CTransaction, which uses a cached result. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|