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

Method Clear

src/txgraph.cpp:1321–1331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1319}
1320
1321void GenericClusterImpl::Clear(TxGraphImpl& graph, int level) noexcept
1322{
1323 Assume(GetTxCount());
1324 graph.GetClusterSet(level).m_cluster_usage -= TotalMemoryUsage();
1325 for (auto i : m_linearization) {
1326 graph.ClearLocator(level, m_mapping[i], m_quality == QualityLevel::OVERSIZED_SINGLETON);
1327 }
1328 m_depgraph = {};
1329 m_linearization.clear();
1330 m_mapping.clear();
1331}
1332
1333void SingletonClusterImpl::Clear(TxGraphImpl& graph, int level) noexcept
1334{

Callers 8

CommitStagingMethod · 0.45
ConnectMethod · 0.45
DisconnectMethod · 0.45
ProcessBufferMethod · 0.45
BatchWriteMethod · 0.45
SpendCoinMethod · 0.45
~ChainstateManagerMethod · 0.45

Calls 2

ClearLocatorMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected