mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-23 15:20:49 +01:00
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.
This commit is contained in:
parent
84502b755b
commit
83436d14f0
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue