diff options
| author | MarcoFalke <[email protected]> | 2018-05-04 17:38:49 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2018-05-04 17:40:52 -0400 |
| commit | faab55fbb17f2ea5080bf02bc59eeef5ca746f07 (patch) | |
| tree | 6f1c03fd468c4f63ab681af33c47370cb9179b95 /src/wallet/feebumper.cpp | |
| parent | Merge #13163: Make it clear which functions that are intended to be translati... (diff) | |
| download | discoin-faab55fbb17f2ea5080bf02bc59eeef5ca746f07.tar.xz discoin-faab55fbb17f2ea5080bf02bc59eeef5ca746f07.zip | |
Make CMutableTransaction constructor explicit
Silently converting to a CMutableTransaction will drop all caches
and should thus be done explicitly
Diffstat (limited to 'src/wallet/feebumper.cpp')
| -rw-r--r-- | src/wallet/feebumper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/feebumper.cpp b/src/wallet/feebumper.cpp index 4d70dde72..b26fd28d4 100644 --- a/src/wallet/feebumper.cpp +++ b/src/wallet/feebumper.cpp @@ -185,7 +185,7 @@ Result CreateTransaction(const CWallet* wallet, const uint256& txid, const CCoin // If the output is not large enough to pay the fee, fail. CAmount nDelta = new_fee - old_fee; assert(nDelta > 0); - mtx = *wtx.tx; + mtx = CMutableTransaction{*wtx.tx}; CTxOut* poutput = &(mtx.vout[nOutput]); if (poutput->nValue < nDelta) { errors.push_back("Change output is too small to bump the fee"); |