| 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 |
no outgoing calls