diff options
author | Carl Dong <contact@carldong.me> | 2022-07-01 00:08:14 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2022-08-03 12:03:28 -0400 |
commit | 0f3a2532c38074dd9789d1c4c667db6ca46ff0ab (patch) | |
tree | e45ce50c4efda6ac38aa3dfeeb18dae4e2ecc8d0 /src/kernel | |
parent | 41c5201a90bbc2893333e334e8945759ef24e7dd (diff) | |
download | bitcoin-0f3a2532c38074dd9789d1c4c667db6ca46ff0ab.tar.xz |
validationcaches: Use size_t for sizes
...also move the 0-clamping logic to ApplyArgsManOptions, where it
belongs.
Diffstat (limited to 'src/kernel')
-rw-r--r-- | src/kernel/validation_cache_sizes.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kernel/validation_cache_sizes.h b/src/kernel/validation_cache_sizes.h index cf92cdbd64..72e4d1a52c 100644 --- a/src/kernel/validation_cache_sizes.h +++ b/src/kernel/validation_cache_sizes.h @@ -7,13 +7,13 @@ #include <script/sigcache.h> -#include <cstdint> +#include <cstddef> #include <limits> namespace kernel { struct ValidationCacheSizes { - int64_t signature_cache_bytes{DEFAULT_MAX_SIG_CACHE_BYTES / 2}; - int64_t script_execution_cache_bytes{DEFAULT_MAX_SIG_CACHE_BYTES / 2}; + size_t signature_cache_bytes{DEFAULT_MAX_SIG_CACHE_BYTES / 2}; + size_t script_execution_cache_bytes{DEFAULT_MAX_SIG_CACHE_BYTES / 2}; }; } |