diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2015-10-30 23:14:38 +0100 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2015-10-31 01:15:11 +0100 |
commit | 830e3f3d027ba5c8121eed0f6a9ce99961352572 (patch) | |
tree | 1a098256efaeeeec8e7483f61161f0c9f88b127e /src/script/sigcache.h | |
parent | 48b5b84ee511d5ccd0d47bb0018c1b3c9ddebeff (diff) |
Make sigcache faster and more efficient
Diffstat (limited to 'src/script/sigcache.h')
-rw-r--r-- | src/script/sigcache.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/script/sigcache.h b/src/script/sigcache.h index b299038daa..2269972560 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 |