MCPcopy Create free account
hub / github.com/ElementsProject/elements / HaveInputs

Method HaveInputs

src/coins.cpp:349–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349bool CCoinsViewCache::HaveInputs(const CTransaction& tx) const
350{
351 if (!tx.IsCoinBase()) {
352 for (unsigned int i = 0; i < tx.vin.size(); i++) {
353 if (tx.vin[i].m_is_pegin) {
354 continue;
355 }
356 if (!HaveCoin(tx.vin[i].prevout)) {
357 return false;
358 }
359 }
360 }
361 return true;
362}
363
364void CCoinsViewCache::ReallocateCache()
365{

Callers 2

FUZZ_TARGET_INITFunction · 0.80
CheckTxInputsMethod · 0.80

Calls 2

IsCoinBaseMethod · 0.45
sizeMethod · 0.45

Tested by 1

FUZZ_TARGET_INITFunction · 0.64