Bitcoin Core 28.99.0
P2P Digital Currency
|
Convenience class for initializing and passing the script execution cache and signature cache. More...
#include <validation.h>
Public Member Functions | |
ValidationCache (size_t script_execution_cache_bytes, size_t signature_cache_bytes) | |
ValidationCache (const ValidationCache &)=delete | |
ValidationCache & | operator= (const ValidationCache &)=delete |
CSHA256 | ScriptExecutionCacheHasher () const |
Return a copy of the pre-initialized hasher. More... | |
Public Attributes | |
CuckooCache::cache< uint256, SignatureCacheHasher > | m_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... | |
Convenience class for initializing and passing the script execution cache and signature cache.
Definition at line 362 of file validation.h.
ValidationCache::ValidationCache | ( | size_t | script_execution_cache_bytes, |
size_t | signature_cache_bytes | ||
) |
|
delete |
|
delete |
|
inline |
Return a copy of the pre-initialized hasher.
Definition at line 378 of file validation.h.
CuckooCache::cache<uint256, SignatureCacheHasher> ValidationCache::m_script_execution_cache |
Definition at line 369 of file validation.h.
|
private |
Pre-initialized hasher to avoid having to recreate it for every hash calculation.
Definition at line 366 of file validation.h.
SignatureCache ValidationCache::m_signature_cache |
Definition at line 370 of file validation.h.