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

Method GetValueIn

src/coins.cpp:304–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302}
303
304CAmount CCoinsViewCache::GetValueIn(const CTransaction& tx) const
305{
306 if (tx.IsCoinBase())
307 return 0;
308
309 CAmount nResult = 0;
310 for (unsigned int i = 0; i < tx.vin.size(); i++)
311 nResult += GetOutputFor(tx.vin[i]).nValue;
312
313 return nResult;
314}
315
316bool CCoinsViewCache::HaveInputs(const CTransaction& tx) const
317{

Callers 4

AcceptToMemoryPoolFunction · 0.80
AcceptableInputsFunction · 0.80
ConnectBlockFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 2

IsCoinBaseMethod · 0.45
sizeMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64