Cache signature verifications
authorGavin Andresen <gavinandresen@gmail.com>
Wed, 16 May 2012 19:57:04 +0000 (15:57 -0400)
committerGavin Andresen <gavinandresen@gmail.com>
Tue, 19 Jun 2012 19:22:57 +0000 (15:22 -0400)
commit2d90330d8c731273a9f50eb82eaa6d4bcc7b6fb8
tree761e4c13e938c207a5dccafed8e676903e7172f2
parent4d87a33eaeccfee0fc2469dcc090a47a9d086a04
Cache signature verifications

Create a maximum-10MB signature verification result cache.
This should almost double the number of transactions that
can be processed on a given CPU, because before this change
ECDSA signatures were verified when transactions were added
to the memory pool and then again when they appeared in
a block.
src/key.cpp
src/test/DoS_tests.cpp