diff options
author | Andrew Chow <achow101-github@achow101.com> | 2020-06-04 23:43:43 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2020-06-24 16:32:19 -0400 |
commit | 46004790588c24174a0bec49b540d158ce163ffd (patch) | |
tree | 091d77316fac2460d14b81580c9ce387fd77f2ac /src/wallet/wallet.cpp | |
parent | 5279d8bc07d601fe6a67ad665fbc7591fe73c7de (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.
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 bc0b9ea58a..37fdbab3a9 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2492,7 +2492,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()) { |