File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -22,20 +22,8 @@ isminetype InputIsMine(const CWallet& wallet, const CTxIn& txin)
22
22
bool AllInputsMine (const CWallet& wallet, const CTransaction& tx, const isminefilter& filter)
23
23
{
24
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 ;
25
+ for (const CTxIn& txin : tx.vin ) {
26
+ if (!(InputIsMine (wallet, txin) & filter)) return false ;
39
27
}
40
28
return true ;
41
29
}
You can’t perform that action at this time.
0 commit comments