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

Method insert

src/bloom.cpp:48–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void CBloomFilter::insert(const vector<unsigned char>& vKey)
49{
50 if (isFull)
51 return;
52 for (unsigned int i = 0; i < nHashFuncs; i++) {
53 unsigned int nIndex = Hash(i, vKey);
54 // Sets bit nIndex of vData
55 vData[nIndex >> 3] |= (1 << (7 & nIndex));
56 }
57 isEmpty = false;
58}
59
60void CBloomFilter::insert(const COutPoint& outpoint)
61{

Callers 15

headers_forMethod · 0.45
headers_forMethod · 0.45
parseParamFunction · 0.45
sendmanyFunction · 0.45
createcontractFunction · 0.45
LockRangeMethod · 0.45
RegisterLoadFunction · 0.45
getrawmempoolFunction · 0.45
getchaintipsFunction · 0.45
ProcessInstantXFunction · 0.45
CreateNewLockFunction · 0.45
ProcessConsensusVoteFunction · 0.45

Calls 3

HashFunction · 0.70
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected