MCPcopy Create free account
hub / github.com/ElementsProject/elements / ReallocateCache

Method ReallocateCache

src/coins.cpp:364–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362}
363
364void CCoinsViewCache::ReallocateCache()
365{
366 // Cache should be empty when we're calling this.
367 assert(cacheCoins.size() == 0);
368 cacheCoins.~CCoinsMap();
369 ::new (&cacheCoins) CCoinsMap();
370}
371
372static const size_t MIN_TRANSACTION_OUTPUT_WEIGHT = WITNESS_SCALE_FACTOR * ::GetSerializeSize(CTxOut(), PROTOCOL_VERSION);
373static const size_t MAX_OUTPUTS_PER_BLOCK = MAX_BLOCK_WEIGHT / MIN_TRANSACTION_OUTPUT_WEIGHT;

Callers 1

ResizeCoinsCachesMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected