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

Method SetClean

src/coins.h:175–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173 static void SetFresh(CoinsCachePair& pair, CoinsCachePair& sentinel) noexcept { AddFlags(FRESH, pair, sentinel); }
174
175 void SetClean() noexcept
176 {
177 if (!m_flags) return;
178 m_next->second.m_prev = m_prev;
179 m_prev->second.m_next = m_next;
180 m_flags = 0;
181 m_prev = m_next = nullptr;
182 }
183 bool IsDirty() const noexcept { return m_flags & DIRTY; }
184 bool IsFresh() const noexcept { return m_flags & FRESH; }
185

Callers 2

NextAndMaybeEraseMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls

no outgoing calls

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64