HomePhabricator

kernel: De-globalize script execution cache

Description

kernel: De-globalize script execution cache

Summary:
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.

This is a partial backport of core#30141
https://github.com/bitcoin/bitcoin/pull/30141/commits/13a3661aba95b54b822c99ecbb695b14a22536d2
Depends on D18855

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D18856

Details

Provenance
TheCharlatan <seb.kung@gmail.com>Authored on May 17 2024, 21:33
PiRKCommitted on Mon, Nov 3, 09:25
PiRKPushed on Mon, Nov 3, 09:25
Reviewer
Restricted Project
Differential Revision
D18856: kernel: De-globalize script execution cache
Parents
rABCdbd59bfd4e31: validation: Don't error if maxsigcachesize exceeds uint32::max
Branches
Unknown
Tags
Unknown