diff options
author | Ryan Ofsky <ryan@ofsky.org> | 2023-11-22 16:39:32 -0500 |
---|---|---|
committer | Ryan Ofsky <ryan@ofsky.org> | 2024-02-21 07:07:50 -0500 |
commit | 83436d14f06551026bcf5529df3b63b4e8a679fb (patch) | |
tree | 76d1f638951334dfa5ad789ab099e3c987fc606d | |
parent | 84502b755bcc35413ad466047893b5edf134c53f (diff) |
serialization: Drop unnecessary ParamsStream references
Drop unnecessary ParamsStream references from CTransaction and
CMutableTransaction constructors. This just couples these classes unnecessarily
to the ParamsStream class, making the ParamsStream class harder to modify, and
making the transaction classes in some cases (depending on parameter order)
unable to work with stream classes that have multiple parameters set.
-rw-r--r-- | src/primitives/transaction.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/primitives/transaction.h b/src/primitives/transaction.h index d15b8005f9..976542cfae 100644 --- a/src/primitives/transaction.h +++ b/src/primitives/transaction.h @@ -334,7 +334,7 @@ public: template <typename Stream> CTransaction(deserialize_type, const TransactionSerParams& params, Stream& s) : CTransaction(CMutableTransaction(deserialize, params, s)) {} template <typename Stream> - CTransaction(deserialize_type, ParamsStream<TransactionSerParams,Stream>& s) : CTransaction(CMutableTransaction(deserialize, s)) {} + CTransaction(deserialize_type, Stream& s) : CTransaction(CMutableTransaction(deserialize, s)) {} bool IsNull() const { return vin.empty() && vout.empty(); @@ -400,7 +400,7 @@ struct CMutableTransaction } template <typename Stream> - CMutableTransaction(deserialize_type, ParamsStream<TransactionSerParams,Stream>& s) { + CMutableTransaction(deserialize_type, Stream& s) { Unserialize(s); } |