diff options
author | Andrew Chow <achow101-github@achow101.com> | 2020-06-04 23:43:43 -0400 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2020-07-03 09:21:42 +0800 |
commit | 3228b59b1761a80bca6aa7309cb46db5acafc905 (patch) | |
tree | 8b92f26b142fbc3f9855fb1dfb431b2a230266f9 /src/wallet/wallet.cpp | |
parent | ed5ec3080419445c0af7410c0af7a421704841a6 (diff) |
psbt: always put a non_witness_utxo and don't remove it
Offline signers will always need a non_witness_utxo so make sure it is
there.
Github-Pull: #19215
Rebased-From: 46004790588c24174a0bec49b540d158ce163ffd
Diffstat (limited to 'src/wallet/wallet.cpp')
-rw-r--r-- | src/wallet/wallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index a6962ba428..4394b2748a 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2518,7 +2518,7 @@ TransactionError CWallet::FillPSBT(PartiallySignedTransaction& psbtx, bool& comp } // If we have no utxo, grab it from the wallet. - if (!input.non_witness_utxo && input.witness_utxo.IsNull()) { + if (!input.non_witness_utxo) { const uint256& txhash = txin.prevout.hash; const auto it = mapWallet.find(txhash); if (it != mapWallet.end()) { |