mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-12 13:42:10 +02:00
Add `btck_chainstate_manager_options_set_database_cache_bytes()` so Kernel callers can set the total database cache budget. Use `uint64_t` for a fixed-width C API, reject values outside the architecture-specific range, and keep `DEFAULT_KERNEL_CACHE` as the fallback. Apply the selected split to the block tree database and `LoadChainstate()`. Co-authored-by: stickies-v <stickies-v@protonmail.com> Co-authored-by: w0xlt <94266259+w0xlt@users.noreply.github.com> Co-authored-by: stringintech <stringintech@gmail.com>