diff options
author | Pieter Wuille <pieter@wuille.net> | 2023-02-01 18:28:08 -0500 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2023-02-01 23:14:12 -0500 |
commit | b0ff31084006ac7d4a7afba3190ca75f5f8441af (patch) | |
tree | 909dc06de479080bab43ca090efaa8ea2b359b9c /src/coins.h | |
parent | 3c9cea1340fd1358d6854209d782922864945eb0 (diff) |
Add CCoinsViewCache::SanityCheck() and use it in fuzz test
Diffstat (limited to 'src/coins.h')
-rw-r--r-- | src/coins.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 |