MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / BOOST_FOREACH

Function BOOST_FOREACH

src/bloom.cpp:184–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 4

GetOpMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected