aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorTheCharlatan <seb.kung@gmail.com>2024-05-17 23:33:25 +0200
committerTheCharlatan <seb.kung@gmail.com>2024-07-04 22:39:37 +0200
commit13a3661aba95b54b822c99ecbb695b14a22536d2 (patch)
tree560db9184bf7eeb72994f64a3bc7f3f1a616dc4b /src/init.cpp
parentab14d1d6a4a8ef5fe5013150e6c5ebcb5f5e4ea9 (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/init.cpp')
-rw-r--r--src/init.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 985b8d3d63..5accc63f37 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -1157,7 +1157,6 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
ValidationCacheSizes validation_cache_sizes{};
ApplyArgsManOptions(args, validation_cache_sizes);
(void)InitSignatureCache(validation_cache_sizes.signature_cache_bytes);
- (void)InitScriptExecutionCache(validation_cache_sizes.script_execution_cache_bytes);
assert(!node.scheduler);
node.scheduler = std::make_unique<CScheduler>();