MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / reset

Method reset

src/common/bloom.cpp:241–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 15

ResetCoinsViewsMethod · 0.45
ClearKeyDataMethod · 0.45
ClearKeyPairDataMethod · 0.45
DisconnectMethod · 0.45
DeleteClusterMethod · 0.45
RemoveTransactionMethod · 0.45
AddDependencyMethod · 0.45
AbortStagingMethod · 0.45
CommitStagingMethod · 0.45
TrimMethod · 0.45

Calls 3

FastRandomContextClass · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by 15

BOOST_AUTO_TEST_CASEFunction · 0.36
TestUnloadWalletFunction · 0.36
BOOST_FIXTURE_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
ResetChainmanFunction · 0.36
utxo_snapshot_fuzzFunction · 0.36
RemoveTransactionMethod · 0.36