Bitcoin Core 28.99.0
P2P Digital Currency
Public Member Functions | Public Attributes | Private Attributes | List of all members
ValidationCache Class Reference

Convenience class for initializing and passing the script execution cache and signature cache. More...

#include <validation.h>

Collaboration diagram for ValidationCache:
[legend]

Public Member Functions

 ValidationCache (size_t script_execution_cache_bytes, size_t signature_cache_bytes)
 
 ValidationCache (const ValidationCache &)=delete
 
ValidationCacheoperator= (const ValidationCache &)=delete
 
CSHA256 ScriptExecutionCacheHasher () const
 Return a copy of the pre-initialized hasher. More...
 

Public Attributes

CuckooCache::cache< uint256, SignatureCacheHasherm_script_execution_cache
 
SignatureCache m_signature_cache
 

Private Attributes

CSHA256 m_script_execution_cache_hasher
 Pre-initialized hasher to avoid having to recreate it for every hash calculation. More...
 

Detailed Description

Convenience class for initializing and passing the script execution cache and signature cache.

Definition at line 362 of file validation.h.

Constructor & Destructor Documentation

◆ ValidationCache() [1/2]

ValidationCache::ValidationCache ( size_t  script_execution_cache_bytes,
size_t  signature_cache_bytes 
)

Definition at line 2126 of file validation.cpp.

Here is the call graph for this function:

◆ ValidationCache() [2/2]

ValidationCache::ValidationCache ( const ValidationCache )
delete

Member Function Documentation

◆ operator=()

ValidationCache & ValidationCache::operator= ( const ValidationCache )
delete

◆ ScriptExecutionCacheHasher()

CSHA256 ValidationCache::ScriptExecutionCacheHasher ( ) const
inline

Return a copy of the pre-initialized hasher.

Definition at line 378 of file validation.h.

Here is the caller graph for this function:

Member Data Documentation

◆ m_script_execution_cache

CuckooCache::cache<uint256, SignatureCacheHasher> ValidationCache::m_script_execution_cache

Definition at line 369 of file validation.h.

◆ m_script_execution_cache_hasher

CSHA256 ValidationCache::m_script_execution_cache_hasher
private

Pre-initialized hasher to avoid having to recreate it for every hash calculation.

Definition at line 366 of file validation.h.

◆ m_signature_cache

SignatureCache ValidationCache::m_signature_cache

Definition at line 370 of file validation.h.


The documentation for this class was generated from the following files: