diff options
author | Andrew Toth <andrewstoth@gmail.com> | 2024-06-28 16:11:16 -0400 |
---|---|---|
committer | Andrew Toth <andrewstoth@gmail.com> | 2024-08-01 23:36:00 -0400 |
commit | df34a94e57659c31873c26c86a8de5a032400061 (patch) | |
tree | c5803499d470cbbc1a85316ee82e9a52828b80a4 /src/test/fuzz | |
parent | 9774a958b501a6d439a734e18b29e04f59f973f6 (diff) |
refactor: encapsulate flags access for dirty and fresh checks
No behavior change. This prepares moving the cache entry flags field
to private access.
Co-Authored-By: l0rinc <pap.lorinc@gmail.com>
Diffstat (limited to 'src/test/fuzz')
-rw-r--r-- | src/test/fuzz/coinscache_sim.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/fuzz/coinscache_sim.cpp b/src/test/fuzz/coinscache_sim.cpp index 648e96b4a0..8c815e65ab 100644 --- a/src/test/fuzz/coinscache_sim.cpp +++ b/src/test/fuzz/coinscache_sim.cpp @@ -175,7 +175,7 @@ public: bool BatchWrite(CCoinsMap& data, const uint256&, bool erase) final { for (auto it = data.begin(); it != data.end(); it = erase ? data.erase(it) : std::next(it)) { - if (it->second.flags & CCoinsCacheEntry::DIRTY) { + if (it->second.IsDirty()) { if (it->second.coin.IsSpent() && (it->first.n % 5) != 4) { m_data.erase(it->first); } else if (erase) { |