mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
refactor: add CoinsCachePair alias
This commit is contained in:
parent
f08faeade2
commit
75f36d241d
1 changed files with 5 additions and 2 deletions
|
@ -86,6 +86,9 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
struct CCoinsCacheEntry;
|
||||
using CoinsCachePair = std::pair<const COutPoint, CCoinsCacheEntry>;
|
||||
|
||||
/**
|
||||
* A Coin in one level of the coins database caching hierarchy.
|
||||
*
|
||||
|
@ -155,8 +158,8 @@ using CCoinsMap = std::unordered_map<COutPoint,
|
|||
CCoinsCacheEntry,
|
||||
SaltedOutpointHasher,
|
||||
std::equal_to<COutPoint>,
|
||||
PoolAllocator<std::pair<const COutPoint, CCoinsCacheEntry>,
|
||||
sizeof(std::pair<const COutPoint, CCoinsCacheEntry>) + sizeof(void*) * 4>>;
|
||||
PoolAllocator<CoinsCachePair,
|
||||
sizeof(CoinsCachePair) + sizeof(void*) * 4>>;
|
||||
|
||||
using CCoinsMapMemoryResource = CCoinsMap::allocator_type::ResourceType;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue