| 182 | return true; |
| 183 | |
| 184 | BOOST_FOREACH(const CTxIn& txin, tx.vin) |
| 185 | { |
| 186 | // Match if the filter contains an outpoint tx spends |
| 187 | if (contains(txin.prevout)) |
| 188 | return true; |
| 189 | |
| 190 | // Match if the filter contains any arbitrary script data element in any scriptSig in tx |
| 191 | CScript::const_iterator pc = txin.scriptSig.begin(); |
| 192 | vector<unsigned char> data; |
| 193 | while (pc < txin.scriptSig.end()) |
| 194 | { |
| 195 | opcodetype opcode; |
| 196 | if (!txin.scriptSig.GetOp(pc, opcode, data)) |
| 197 | break; |
| 198 | if (data.size() != 0 && contains(data)) |
| 199 | return true; |
| 200 | } |
| 201 | } |
| 202 | |
| 203 | return false; |
| 204 | } |