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

Method getSpentIndex

src/txmempool.cpp:1164–1175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1162}
1163
1164bool CTxMemPool::getSpentIndex(CSpentIndexKey &key, CSpentIndexValue &value)
1165{
1166 LOCK(cs);
1167 mapSpentIndex::iterator it;
1168
1169 it = mapSpent.find(key);
1170 if (it != mapSpent.end()) {
1171 value = it->second;
1172 return true;
1173 }
1174 return false;
1175}
1176
1177bool CTxMemPool::removeSpentIndex(const uint256 txhash)
1178{

Callers 1

GetSpentIndexFunction · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected