5 #ifndef BITCOIN_SCRIPT_SCRIPTCACHE_H
6 #define BITCOIN_SCRIPT_SCRIPTCACHE_H
29 std::array<uint8_t, 28>
data;
The basic transaction that is broadcasted on the network and contained in blocks.
The script cache is a map using a key/value element, that caches the success of executing a specific ...
std::array< uint8_t, 28 > data
ScriptCacheKey & operator=(const ScriptCacheKey &rhs)=default
ScriptCacheKey(const ScriptCacheKey &rhs)=default
bool operator==(const ScriptCacheKey &rhs) const
static const int64_t MAX_MAX_SCRIPT_CACHE_SIZE
static const unsigned int DEFAULT_MAX_SCRIPT_CACHE_SIZE
void InitScriptExecutionCache()
Initializes the script-execution cache.
RecursiveMutex cs_main
Global state.
void AddKeyInScriptCache(ScriptCacheKey key, int nSigChecks) EXCLUSIVE_LOCKS_REQUIRED(cs_main)
Add an entry in the cache.
bool IsKeyInScriptCache(ScriptCacheKey key, bool erase, int &nSigChecksOut) EXCLUSIVE_LOCKS_REQUIRED(cs_main)
Check if a given key is in the cache, and if so, return its values.
#define EXCLUSIVE_LOCKS_REQUIRED(...)