From b0ff31084006ac7d4a7afba3190ca75f5f8441af Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Wed, 1 Feb 2023 18:28:08 -0500 Subject: Add CCoinsViewCache::SanityCheck() and use it in fuzz test --- src/coins.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/coins.h') diff --git a/src/coins.h b/src/coins.h index 710b8c7c83..a2764d32bb 100644 --- a/src/coins.h +++ b/src/coins.h @@ -320,6 +320,9 @@ public: //! See: https://stackoverflow.com/questions/42114044/how-to-release-unordered-map-memory void ReallocateCache(); + //! Run an internal sanity check on the cache data structure. */ + void SanityCheck() const; + private: /** * @note this is marked const, but may actually append to `cacheCoins`, increasing -- cgit v1.2.3