MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / HaveInputs

Method HaveInputs

src/coins.cpp:310–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308}
309
310bool CCoinsViewCache::HaveInputs(const CTransaction& tx) const
311{
312 if (!tx.IsCoinBase()) {
313 for (unsigned int i = 0; i < tx.vin.size(); i++) {
314 if (!HaveCoin(tx.vin[i].prevout)) {
315 return false;
316 }
317 }
318 }
319 return true;
320}
321
322void CCoinsViewCache::ReallocateCache()
323{

Callers 2

TestCoinsViewFunction · 0.80
CheckTxInputsMethod · 0.80

Calls 2

IsCoinBaseMethod · 0.45
sizeMethod · 0.45

Tested by 1

TestCoinsViewFunction · 0.64