mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-08-06 15:04:52 +02:00
Made expicit constructor CTransaction(const CMutableTransaction &tx).
This makes the above constructor explicit. The rationale is that this conversion has very significant performance effects. Making it explicit makes it easier to reason about these performance trade-offs, and helps identify possible functions that need a CMutableTransaction version.
This commit is contained in:
parent
faf29dd019
commit
b301950df3
@ -298,7 +298,7 @@ public:
|
|||||||
CTransaction();
|
CTransaction();
|
||||||
|
|
||||||
/** Convert a CMutableTransaction into a CTransaction. */
|
/** Convert a CMutableTransaction into a CTransaction. */
|
||||||
CTransaction(const CMutableTransaction &tx);
|
explicit CTransaction(const CMutableTransaction &tx);
|
||||||
CTransaction(CMutableTransaction &&tx);
|
CTransaction(CMutableTransaction &&tx);
|
||||||
|
|
||||||
template <typename Stream>
|
template <typename Stream>
|
||||||
|
Loading…
Reference in New Issue
Block a user