MCPcopy Create free account
hub / github.com/ElementsProject/elements / reset

Method reset

src/common/bloom.cpp:240–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240void CRollingBloomFilter::reset()
241{
242 nTweak = GetRand(std::numeric_limits<unsigned int>::max());
243 nEntriesThisGeneration = 0;
244 nGeneration = 1;
245 std::fill(data.begin(), data.end(), 0);
246}

Callers 15

ResetCoinsViewsMethod · 0.45
StopHTTPServerFunction · 0.45
MutateTxFunction · 0.45
StopHTTPRPCFunction · 0.45
UnserializeFunction · 0.45
CommandLineRPCFunction · 0.45
BlockDisconnectedMethod · 0.45
AlreadyHaveTxMethod · 0.45
ProcessMessageMethod · 0.45
MaybeSendAddrMethod · 0.45
ResizeCacheMethod · 0.45

Calls 3

GetRandFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by 9

TestUnloadWalletFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
RecvMethod · 0.36
FUZZ_TARGETFunction · 0.36
~ChainTestingSetupMethod · 0.36
TESTFunction · 0.36