From 75f36d241d2a344c5c4ce2c80250bdde91b3295e Mon Sep 17 00:00:00 2001 From: Andrew Toth Date: Fri, 28 Jun 2024 16:57:42 -0400 Subject: [PATCH] refactor: add CoinsCachePair alias --- src/coins.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/coins.h b/src/coins.h index 22b01901e6b..95baf3f700d 100644 --- a/src/coins.h +++ b/src/coins.h @@ -86,6 +86,9 @@ public: } }; +struct CCoinsCacheEntry; +using CoinsCachePair = std::pair; + /** * A Coin in one level of the coins database caching hierarchy. * @@ -155,8 +158,8 @@ using CCoinsMap = std::unordered_map, - PoolAllocator, - sizeof(std::pair) + sizeof(void*) * 4>>; + PoolAllocator>; using CCoinsMapMemoryResource = CCoinsMap::allocator_type::ResourceType;