validationcaches: Use size_t for sizes

...also move the 0-clamping logic to ApplyArgsManOptions, where it
   belongs.
This commit is contained in:
Carl Dong committed 2022-08-03 12:03:28 -04:00
1 parent 41c5201a90
commit 0f3a2532c3
7 files changed
+20 -21

No files matched your search

+3 -3
View File
@@ -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};
};
}