From 16bcc1b8237698c96b8ced2fa7eb76388c7ba85e Mon Sep 17 00:00:00 2001 From: Carl Dong Date: Mon, 13 Aug 2018 18:45:26 -0700 Subject: [PATCH] Remove unused dummy_tx variable from FillPSBT --- src/wallet/rpcwallet.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index a766874f1..c03dbc5d2 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -4544,11 +4544,6 @@ bool FillPSBT(const CWallet* pwallet, PartiallySignedTransaction& psbtx, const C const CTxOut& out = txConst->vout.at(i); PSBTOutput& psbt_out = psbtx.outputs.at(i); - // Dummy tx so we can use ProduceSignature to get stuff out - CMutableTransaction dummy_tx; - dummy_tx.vin.push_back(CTxIn()); - dummy_tx.vout.push_back(CTxOut()); - // Fill a SignatureData with output info SignatureData sigdata; psbt_out.FillSignatureData(sigdata);