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

Function GetSpendHeight

src/main.cpp:7637–7642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7635}
7636
7637int GetSpendHeight(const CCoinsViewCache& inputs)
7638{
7639 LOCK(cs_main);
7640 CBlockIndex* pindexPrev = mapBlockIndex.find(inputs.GetBestBlock())->second;
7641 return pindexPrev->nHeight + 1;
7642}
7643
7644class CMainCleanup
7645{

Callers 1

checkMethod · 0.85

Calls 2

findMethod · 0.45
GetBestBlockMethod · 0.45

Tested by

no test coverage detected