Bitcoin ABC  0.24.7
P2P Digital Currency
Public Member Functions | Private Attributes | Friends | List of all members
ScriptCacheKey Class Reference

The script cache is a map using a key/value element, that caches the success of executing a specific transaction's input scripts under a specific set of flags, along with any associated information learned during execution. More...

#include <scriptcache.h>

Public Member Functions

 ScriptCacheKey ()=default
 
 ScriptCacheKey (const ScriptCacheKey &rhs)=default
 
 ScriptCacheKey (const CTransaction &tx, uint32_t flags)
 
ScriptCacheKeyoperator= (const ScriptCacheKey &rhs)=default
 
bool operator== (const ScriptCacheKey &rhs) const
 

Private Attributes

std::array< uint8_t, 28 > data
 

Friends

class ScriptCacheHasher
 

Detailed Description

The script cache is a map using a key/value element, that caches the success of executing a specific transaction's input scripts under a specific set of flags, along with any associated information learned during execution.

The key is slightly shorter than a power-of-two size to make room for the value.

Definition at line 28 of file scriptcache.h.

Constructor & Destructor Documentation

◆ ScriptCacheKey() [1/3]

ScriptCacheKey::ScriptCacheKey ( )
default

◆ ScriptCacheKey() [2/3]

ScriptCacheKey::ScriptCacheKey ( const ScriptCacheKey rhs)
default

◆ ScriptCacheKey() [3/3]

ScriptCacheKey::ScriptCacheKey ( const CTransaction tx,
uint32_t  flags 
)

Definition at line 98 of file scriptcache.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ operator=()

ScriptCacheKey& ScriptCacheKey::operator= ( const ScriptCacheKey rhs)
default

◆ operator==()

bool ScriptCacheKey::operator== ( const ScriptCacheKey rhs) const
inline

Definition at line 38 of file scriptcache.h.

Friends And Related Function Documentation

◆ ScriptCacheHasher

friend class ScriptCacheHasher
friend

Definition at line 42 of file scriptcache.h.

Member Data Documentation

◆ data

std::array<uint8_t, 28> ScriptCacheKey::data
private

Definition at line 29 of file scriptcache.h.


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