diff options
author | lucash-dev <lucash.dev@gmail.com> | 2018-12-09 22:04:07 -0800 |
---|---|---|
committer | lucash-dev <lucash.dev@gmail.com> | 2018-12-17 21:02:42 -0800 |
commit | b301950df32443e358bc22ca22c6f9ac09d18219 (patch) | |
tree | db0314b4adb9b38e1c9f6a53bcb1d57fad8136a2 | |
parent | faf29dd019efef4b05e8e78885926764134d9c04 (diff) | |
download | bitcoin-b301950df32443e358bc22ca22c6f9ac09d18219.tar.xz |
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.
-rw-r--r-- | src/primitives/transaction.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/primitives/transaction.h b/src/primitives/transaction.h index c88d5b1ad3..f6f8e31363 100644 --- a/src/primitives/transaction.h +++ b/src/primitives/transaction.h @@ -298,7 +298,7 @@ public: CTransaction(); /** Convert a CMutableTransaction into a CTransaction. */ - CTransaction(const CMutableTransaction &tx); + explicit CTransaction(const CMutableTransaction &tx); CTransaction(CMutableTransaction &&tx); template <typename Stream> |