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)
2222bool AllInputsMine (const CWallet& wallet, const CTransaction& tx, const isminefilter& filter)
2323{
2424 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 ;
3927 }
4028 return true ;
4129}
You can’t perform that action at this time.
0 commit comments