MCPcopy Create free account
hub / github.com/LUX-Core/lux / HaveInputs

Method HaveInputs

src/coins.cpp:316–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316bool CCoinsViewCache::HaveInputs(const CTransaction& tx) const
317{
318 if (!tx.IsCoinBase()) {
319 for (unsigned int i = 0; i < tx.vin.size(); i++) {
320 const COutPoint& prevout = tx.vin[i].prevout;
321 const CCoins* coins = AccessCoins(prevout.hash);
322 if (!coins || !coins->IsAvailable(prevout.n)) {
323 return false;
324 }
325 }
326 }
327 return true;
328}
329
330double CCoinsViewCache::GetPriority(const CTransaction& tx, int nHeight, CAmount &inChainInputValue) const
331{

Callers 6

checkMethod · 0.80
AcceptToMemoryPoolFunction · 0.80
AcceptableInputsFunction · 0.80
CheckInputsFunction · 0.80
ConnectBlockFunction · 0.80
CheckTxInputsFunction · 0.80

Calls 3

IsAvailableMethod · 0.80
IsCoinBaseMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected