Skip to content

Commit e7448d6

Browse files
committed
wallet: Don't override signing errors
1 parent c044858 commit e7448d6

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/wallet/wallet.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2481,23 +2481,6 @@ bool CWallet::SignTransaction(CMutableTransaction& tx, const std::map<COutPoint,
24812481
}
24822482

24832483
// At this point, one input was not fully signed otherwise we would have exited already
2484-
// Find that input and figure out what went wrong.
2485-
for (unsigned int i = 0; i < tx.vin.size(); i++) {
2486-
// Get the prevout
2487-
CTxIn& txin = tx.vin[i];
2488-
auto coin = coins.find(txin.prevout);
2489-
if (coin == coins.end() || coin->second.IsSpent()) {
2490-
input_errors[i] = "Input not found or already spent";
2491-
continue;
2492-
}
2493-
2494-
// Check if this input is complete
2495-
SignatureData sigdata = DataFromTransaction(tx, i, coin->second.out);
2496-
if (!sigdata.complete) {
2497-
input_errors[i] = "Unable to sign input, missing keys";
2498-
continue;
2499-
}
2500-
}
25012484
return false;
25022485
}
25032486

0 commit comments

Comments
 (0)