diff options
| author | Pieter Wuille <[email protected]> | 2015-10-30 23:14:38 +0100 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2015-10-31 01:15:11 +0100 |
| commit | 830e3f3d027ba5c8121eed0f6a9ce99961352572 (patch) | |
| tree | 1a098256efaeeeec8e7483f61161f0c9f88b127e /src/script/sigcache.h | |
| parent | Merge pull request #6906 (diff) | |
| download | discoin-830e3f3d027ba5c8121eed0f6a9ce99961352572.tar.xz discoin-830e3f3d027ba5c8121eed0f6a9ce99961352572.zip | |
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 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 |