aboutsummaryrefslogtreecommitdiff
path: root/src/script/sigcache.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2015-11-12 17:37:42 +0100
committerWladimir J. van der Laan <[email protected]>2015-11-12 17:37:52 +0100
commiteb6172a8ca7e0474457c1206c9907514348243ea (patch)
treea1c38ef1b59210deb1c2d60ebe0d13869f48efe6 /src/script/sigcache.h
parentMerge pull request #6931 (diff)
parentDon't wipe the sigcache in TestBlockValidity (diff)
downloaddiscoin-eb6172a8ca7e0474457c1206c9907514348243ea.tar.xz
discoin-eb6172a8ca7e0474457c1206c9907514348243ea.zip
Merge pull request #6918
69d373f Don't wipe the sigcache in TestBlockValidity (Pieter Wuille) 0b9e9dc Evict sigcache entries that are seen in a block (Pieter Wuille) 830e3f3 Make sigcache faster and more efficient (Pieter Wuille)
Diffstat (limited to 'src/script/sigcache.h')
-rw-r--r--src/script/sigcache.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/script/sigcache.h b/src/script/sigcache.h
index b299038da..226997256 100644
--- a/src/script/sigcache.h
+++ b/src/script/sigcache.h
@@ -10,6 +10,10 @@
#include <vector>
+// DoS prevention: limit cache size to less than 40MB (over 500000
+// entries on 64-bit systems).
+static const unsigned int DEFAULT_MAX_SIG_CACHE_SIZE = 40;
+
class CPubKey;
class CachingTransactionSignatureChecker : public TransactionSignatureChecker