We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f08faea commit 75f36d2Copy full SHA for 75f36d2
src/coins.h
@@ -86,6 +86,9 @@ class Coin
86
}
87
};
88
89
+struct CCoinsCacheEntry;
90
+using CoinsCachePair = std::pair<const COutPoint, CCoinsCacheEntry>;
91
+
92
/**
93
* A Coin in one level of the coins database caching hierarchy.
94
*
@@ -155,8 +158,8 @@ using CCoinsMap = std::unordered_map<COutPoint,
155
158
CCoinsCacheEntry,
156
159
SaltedOutpointHasher,
157
160
std::equal_to<COutPoint>,
- PoolAllocator<std::pair<const COutPoint, CCoinsCacheEntry>,
- sizeof(std::pair<const COutPoint, CCoinsCacheEntry>) + sizeof(void*) * 4>>;
161
+ PoolAllocator<CoinsCachePair,
162
+ sizeof(CoinsCachePair) + sizeof(void*) * 4>>;
163
164
using CCoinsMapMemoryResource = CCoinsMap::allocator_type::ResourceType;
165
0 commit comments