0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-04 10:07:27 -05:00
bitcoin-bitcoin-core/src/kernel
Carl Dong 41c5201a90 validationcaches: Add and use ValidationCacheSizes
Also:

- Make DEFAULT_MAX_SIG_CACHE_SIZE into constexpr
  DEFAULT_MAX_SIG_CACHE_BYTES to utilize the compile-time integer
  arithmetic overflow checking available to constexpr.
- Fix comment (MiB instead of MB) for DEFAULT_MAX_SIG_CACHE_BYTES.
- Pass in max_size_bytes parameter to InitS*Cache(), modify log line to
  no longer allude to maxsigcachesize being split evenly between the two
  validation caches.
- Fix possible integer truncation and add a comment.

[META] I've kept the integer types as int64_t in order to not introduce
       unintended behaviour changes, in the next commit we will make
       them size_t.
2022-08-03 12:03:27 -04:00
..
bitcoinkernel.cpp b-cs: Define G_TRANSLATION_FUN in bitcoinkernel.cpp 2022-04-26 16:30:53 -04:00
chain.cpp interfaces, refactor: Add more block information to block connected notifications 2022-07-18 13:39:55 -05:00
chain.h interfaces, refactor: Add more block information to block connected notifications 2022-07-18 13:39:55 -05:00
chainstatemanager_opts.h Move ChainstateManagerOpts into kernel:: namespace 2022-07-14 08:27:54 -04:00
checks.cpp ci: Enable IWYU in src/kernel directory 2022-07-19 16:54:52 -04:00
checks.h refactor: Reduce number of SanityChecks return values 2022-07-19 16:54:52 -04:00
coinstats.cpp Use HashWriter where possible 2022-07-20 15:34:36 +02:00
coinstats.h ci: Enable IWYU in src/kernel directory 2022-07-19 16:54:52 -04:00
context.cpp init: Initialize globals with kernel::Context's life 2022-06-02 11:40:03 -04:00
context.h doc: fix typo in kernel/context.h 2022-06-08 10:03:43 -03:00
mempool_limits.h mempool: Use m_limit for UpdateTransactionsFromBlock 2022-06-28 15:49:15 -04:00
mempool_options.h Remove ::g_max_datacarrier_bytes global 2022-08-02 15:29:16 +02:00
mempool_persist.cpp Move {Load,Dump}Mempool to kernel namespace 2022-07-15 12:26:20 -04:00
mempool_persist.h Move {Load,Dump}Mempool to kernel namespace 2022-07-15 12:26:20 -04:00
validation_cache_sizes.h validationcaches: Add and use ValidationCacheSizes 2022-08-03 12:03:27 -04:00