diff options
author | TheCharlatan <seb.kung@gmail.com> | 2024-05-17 23:33:25 +0200 |
---|---|---|
committer | TheCharlatan <seb.kung@gmail.com> | 2024-07-04 22:39:37 +0200 |
commit | 13a3661aba95b54b822c99ecbb695b14a22536d2 (patch) | |
tree | 560db9184bf7eeb72994f64a3bc7f3f1a616dc4b /src/test/util | |
parent | ab14d1d6a4a8ef5fe5013150e6c5ebcb5f5e4ea9 (diff) |
kernel: De-globalize script execution cache
Move its ownership to the ChainstateManager class.
Next to simplifying usage of the kernel library by no longer requiring
manual setup of the cache prior to using validation code, it also slims
down the amount of memory allocated by BasicTestingSetup.
Diffstat (limited to 'src/test/util')
-rw-r--r-- | src/test/util/setup_common.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/test/util/setup_common.cpp b/src/test/util/setup_common.cpp index cc7b2d6546..7408fd8ec4 100644 --- a/src/test/util/setup_common.cpp +++ b/src/test/util/setup_common.cpp @@ -191,7 +191,6 @@ BasicTestingSetup::BasicTestingSetup(const ChainType chainType, const std::vecto ValidationCacheSizes validation_cache_sizes{}; ApplyArgsManOptions(*m_node.args, validation_cache_sizes); Assert(InitSignatureCache(validation_cache_sizes.signature_cache_bytes)); - Assert(InitScriptExecutionCache(validation_cache_sizes.script_execution_cache_bytes)); m_node.chain = interfaces::MakeChain(m_node); static bool noui_connected = false; |