diff --git a/src/psbt.h b/src/psbt.h --- a/src/psbt.h +++ b/src/psbt.h @@ -329,7 +329,7 @@ PartiallySignedTransaction(const PartiallySignedTransaction &psbt_in) : tx(psbt_in.tx), inputs(psbt_in.inputs), outputs(psbt_in.outputs), unknown(psbt_in.unknown) {} - explicit PartiallySignedTransaction(const CTransaction &txIn); + explicit PartiallySignedTransaction(const CMutableTransaction &txIn); /** * Finds the UTXO for a given input index * diff --git a/src/psbt.cpp b/src/psbt.cpp --- a/src/psbt.cpp +++ b/src/psbt.cpp @@ -5,7 +5,8 @@ #include #include -PartiallySignedTransaction::PartiallySignedTransaction(const CTransaction &txIn) +PartiallySignedTransaction::PartiallySignedTransaction( + const CMutableTransaction &txIn) : tx(txIn) { inputs.resize(txIn.vin.size()); outputs.resize(txIn.vout.size()); diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -4804,8 +4804,7 @@ FundTransaction(pwallet, rawTx, fee, change_position, request.params[3]); // Make a blank psbt - const CTransaction tx = CTransaction(rawTx); - PartiallySignedTransaction psbtx(tx); + PartiallySignedTransaction psbtx(rawTx); // Fill transaction with out data but don't sign bool bip32derivs =