MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / UpdateEmptyFull

Method UpdateEmptyFull

src/bloom.cpp:206–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206void CBloomFilter::UpdateEmptyFull()
207{
208 bool full = true;
209 bool empty = true;
210 for (unsigned int i = 0; i < vData.size(); i++)
211 {
212 full &= vData[i] == 0xff;
213 empty &= vData[i] == 0;
214 }
215 isFull = full;
216 isEmpty = empty;
217}
218
219CRollingBloomFilter::CRollingBloomFilter(unsigned int nElements, double fpRate)
220{

Callers 1

ProcessMessageFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected