Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
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 25 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 97 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 35 of file scriptcache.h.

Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ ScriptCacheHasher

Definition at line 39 of file scriptcache.h.

Member Data Documentation

◆ data

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

Definition at line 26 of file scriptcache.h.


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