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

Method IsFresh

src/test/coins_tests.cpp:591–591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

589 constexpr bool IsDirtyFresh() const { return state == State::DIRTY_FRESH; }
590 constexpr bool IsDirty() const { return state == State::DIRTY || IsDirtyFresh(); }
591 constexpr bool IsFresh() const { return state == State::FRESH || IsDirtyFresh(); }
592
593 static constexpr State ToState(const bool is_dirty, const bool is_fresh) {
594 if (is_dirty && is_fresh) return State::DIRTY_FRESH;

Callers 5

InsertCoinsMapEntryFunction · 0.45
GetCoinsMapEntryFunction · 0.45
CreatePairsFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected