Make sigcache faster and more efficient

This commit is contained in:
Pieter Wuille
2015-10-30 23:14:38 +01:00
parent 48b5b84ee5
commit 830e3f3d02
3 changed files with 55 additions and 38 deletions

View File

@@ -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