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

Function GetSpentIndex

src/main.cpp:1436–1448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1434}
1435
1436bool GetSpentIndex(CSpentIndexKey &key, CSpentIndexValue &value)
1437{
1438 if (!fSpentIndex)
1439 return false;
1440
1441 if (mempool.getSpentIndex(key, value))
1442 return true;
1443
1444 if (!pblocktree->ReadSpentIndex(key, value))
1445 return false;
1446
1447 return true;
1448}
1449
1450bool GetAddressIndex(uint160 addrHash, uint16_t addrType, AddressIndexVector &addressIndex, int start, int end)
1451{

Callers 3

getspentinfoFunction · 0.85
TxToJSONFunction · 0.85
TxToStringFunction · 0.85

Calls 2

getSpentIndexMethod · 0.80
ReadSpentIndexMethod · 0.80

Tested by

no test coverage detected