diff options
| author | Fabian Jahr <[email protected]> | 2020-07-22 12:35:37 +0200 |
|---|---|---|
| committer | Fabian Jahr <[email protected]> | 2020-07-25 00:00:36 +0200 |
| commit | e7448d66803f42984018ef8dfa6699027cb9536d (patch) | |
| tree | 6f901d010ac40bcce8898ecc6693f88e8a5f3525 /src/wallet/wallet.cpp | |
| parent | Merge #19536: qt, build: Fix QFileDialog for static builds (diff) | |
| download | discoin-e7448d66803f42984018ef8dfa6699027cb9536d.tar.xz discoin-e7448d66803f42984018ef8dfa6699027cb9536d.zip | |
wallet: Don't override signing errors
Diffstat (limited to 'src/wallet/wallet.cpp')
| -rw-r--r-- | src/wallet/wallet.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 8eec00993..38b363244 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2481,23 +2481,6 @@ bool CWallet::SignTransaction(CMutableTransaction& tx, const std::map<COutPoint, } // At this point, one input was not fully signed otherwise we would have exited already - // Find that input and figure out what went wrong. - for (unsigned int i = 0; i < tx.vin.size(); i++) { - // Get the prevout - CTxIn& txin = tx.vin[i]; - auto coin = coins.find(txin.prevout); - if (coin == coins.end() || coin->second.IsSpent()) { - input_errors[i] = "Input not found or already spent"; - continue; - } - - // Check if this input is complete - SignatureData sigdata = DataFromTransaction(tx, i, coin->second.out); - if (!sigdata.complete) { - input_errors[i] = "Unable to sign input, missing keys"; - continue; - } - } return false; } |