MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / GetSpendHeight

Function GetSpendHeight

src/validation.cpp:1386–1391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1384}
1385
1386int GetSpendHeight(const CCoinsViewCache& inputs)
1387{
1388 LOCK(cs_main);
1389 CBlockIndex* pindexPrev = LookupBlockIndex(inputs.GetBestBlock());
1390 return pindexPrev->nHeight + 1;
1391}
1392
1393
1394static CuckooCache::cache<uint256, SignatureCacheHasher> scriptExecutionCache;

Callers 2

checkMethod · 0.85
AcceptToMemoryPoolWorkerFunction · 0.85

Calls 2

LookupBlockIndexFunction · 0.85
GetBestBlockMethod · 0.45

Tested by

no test coverage detected