aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoin-tx.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2018-05-04 17:38:49 -0400
committerMarcoFalke <falke.marco@gmail.com>2018-05-04 17:40:52 -0400
commitfaab55fbb17f2ea5080bf02bc59eeef5ca746f07 (patch)
tree6f1c03fd468c4f63ab681af33c47370cb9179b95 /src/bitcoin-tx.cpp
parentf82e1c94821212cc8962775a7a29599ebd92eee0 (diff)
downloadbitcoin-faab55fbb17f2ea5080bf02bc59eeef5ca746f07.tar.xz
Make CMutableTransaction constructor explicit
Silently converting to a CMutableTransaction will drop all caches and should thus be done explicitly
Diffstat (limited to 'src/bitcoin-tx.cpp')
-rw-r--r--src/bitcoin-tx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitcoin-tx.cpp b/src/bitcoin-tx.cpp
index 07ad09ea7b..5ece6c4050 100644
--- a/src/bitcoin-tx.cpp
+++ b/src/bitcoin-tx.cpp
@@ -548,7 +548,7 @@ static void MutateTxSign(CMutableTransaction& tx, const std::string& flagStr)
// mergedTx will end up with all the signatures; it
// starts as a clone of the raw tx:
CMutableTransaction mergedTx{tx};
- const CTransaction txv{tx};
+ const CMutableTransaction txv{tx};
CCoinsView viewDummy;
CCoinsViewCache view(&viewDummy);