diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-11-12 17:37:42 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-11-12 17:37:52 +0100 |
| commit | eb6172a8ca7e0474457c1206c9907514348243ea (patch) | |
| tree | a1c38ef1b59210deb1c2d60ebe0d13869f48efe6 /src/script/sigcache.h | |
| parent | Merge pull request #6931 (diff) | |
| parent | Don't wipe the sigcache in TestBlockValidity (diff) | |
| download | discoin-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.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 |