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

Method ClearChunkData

src/txgraph.cpp:881–890  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

879};
880
881void TxGraphImpl::ClearChunkData(Entry& entry) noexcept
882{
883 if (entry.m_main_chunkindex_iterator != m_main_chunkindex.end()) {
884 Assume(m_main_chunkindex_observers == 0);
885 // If the Entry has a non-empty m_main_chunkindex_iterator, extract it, and move the handle
886 // to the cache of discarded chunkindex entries.
887 m_main_chunkindex_discarded.emplace_back(m_main_chunkindex.extract(entry.m_main_chunkindex_iterator));
888 entry.m_main_chunkindex_iterator = m_main_chunkindex.end();
889 }
890}
891
892void TxGraphImpl::CreateChunkData(GraphIndex idx, LinearizationIndex chunk_count) noexcept
893{

Callers 3

RemoveChunkDataMethod · 0.80
UpdatedMethod · 0.80
MergeMethod · 0.80

Calls 2

endMethod · 0.45
emplace_backMethod · 0.45

Tested by

no test coverage detected