We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf310b0 commit 47ea70fCopy full SHA for 47ea70f
src/wallet/receive.cpp
@@ -22,20 +22,8 @@ isminetype InputIsMine(const CWallet& wallet, const CTxIn& txin)
22
bool AllInputsMine(const CWallet& wallet, const CTransaction& tx, const isminefilter& filter)
23
{
24
LOCK(wallet.cs_wallet);
25
-
26
- for (const CTxIn& txin : tx.vin)
27
- {
28
- auto mi = wallet.mapWallet.find(txin.prevout.hash);
29
- if (mi == wallet.mapWallet.end())
30
- return false; // any unknown inputs can't be from us
31
32
- const CWalletTx& prev = (*mi).second;
33
34
- if (txin.prevout.n >= prev.tx->vout.size())
35
- return false; // invalid input!
36
37
- if (!(wallet.IsMine(prev.tx->vout[txin.prevout.n]) & filter))
38
- return false;
+ for (const CTxIn& txin : tx.vin) {
+ if (!(InputIsMine(wallet, txin) & filter)) return false;
39
}
40
return true;
41
0 commit comments