Skip to content

Commit b301950

Browse files
committed
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.
1 parent faf29dd commit b301950

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/primitives/transaction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ class CTransaction
298298
CTransaction();
299299

300300
/** Convert a CMutableTransaction into a CTransaction. */
301-
CTransaction(const CMutableTransaction &tx);
301+
explicit CTransaction(const CMutableTransaction &tx);
302302
CTransaction(CMutableTransaction &&tx);
303303

304304
template <typename Stream>

0 commit comments

Comments
 (0)