aboutsummaryrefslogtreecommitdiff
path: root/src/primitives/transaction.h
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-12-07 11:31:28 +0100
committerMarcoFalke <falke.marco@gmail.com>2020-12-07 14:59:33 +0100
commitfaac31521bb7ecbf999541cf918d3750ff589de4 (patch)
tree57527364e2c2440ef0f93b6f971b1baa573ab7a6 /src/primitives/transaction.h
parenteab63b971d5fc3408214a958678a235bf454af99 (diff)
downloadbitcoin-faac31521bb7ecbf999541cf918d3750ff589de4.tar.xz
Remove unused and confusing CTransaction constructor
Diffstat (limited to 'src/primitives/transaction.h')
-rw-r--r--src/primitives/transaction.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/primitives/transaction.h b/src/primitives/transaction.h
index 00544f64fe..c1e9f0af21 100644
--- a/src/primitives/transaction.h
+++ b/src/primitives/transaction.h
@@ -287,12 +287,9 @@ private:
uint256 ComputeWitnessHash() const;
public:
- /** Construct a CTransaction that qualifies as IsNull() */
- CTransaction();
-
/** Convert a CMutableTransaction into a CTransaction. */
- explicit CTransaction(const CMutableTransaction &tx);
- CTransaction(CMutableTransaction &&tx);
+ explicit CTransaction(const CMutableTransaction& tx);
+ CTransaction(CMutableTransaction&& tx);
template <typename Stream>
inline void Serialize(Stream& s) const {
@@ -393,7 +390,6 @@ struct CMutableTransaction
};
typedef std::shared_ptr<const CTransaction> CTransactionRef;
-static inline CTransactionRef MakeTransactionRef() { return std::make_shared<const CTransaction>(); }
template <typename Tx> static inline CTransactionRef MakeTransactionRef(Tx&& txIn) { return std::make_shared<const CTransaction>(std::forward<Tx>(txIn)); }
/** A generic txid reference (txid or wtxid). */