aboutsummaryrefslogtreecommitdiff
path: root/src/script/sigcache.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2017-02-17 09:05:39 +0100
committerWladimir J. van der Laan <[email protected]>2017-02-17 09:05:48 +0100
commit8dee8221770893fbf0ec6c19ad385537984ba44f (patch)
tree9d4cb1ad29d62306f787aa72e9fdb8f433971fc9 /src/script/sigcache.h
parentMerge #9675: Fix typo and spelling inconsistency in CONTRIBUTING.md (diff)
parentEnsure `-maxsigcachesize` is in valid range (diff)
downloaddiscoin-8dee8221770893fbf0ec6c19ad385537984ba44f.tar.xz
discoin-8dee8221770893fbf0ec6c19ad385537984ba44f.zip
Merge #9777: Handle unusual maxsigcachesize gracefully
55c403b Ensure `-maxsigcachesize` is in valid range (John Newbery)
Diffstat (limited to 'src/script/sigcache.h')
-rw-r--r--src/script/sigcache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script/sigcache.h b/src/script/sigcache.h
index c123a9ba0..238952bb9 100644
--- a/src/script/sigcache.h
+++ b/src/script/sigcache.h
@@ -14,6 +14,8 @@
// systems). Due to how we count cache size, actual memory usage is slightly
// more (~32.25 MB)
static const unsigned int DEFAULT_MAX_SIG_CACHE_SIZE = 32;
+// Maximum sig cache size allowed
+static const int64_t MAX_MAX_SIG_CACHE_SIZE = 16384;
class CPubKey;