Further DoS prevention: Verify signatures last
authorGavin Andresen <gavinandresen@gmail.com>
Wed, 16 May 2012 15:26:56 +0000 (11:26 -0400)
committerGavin Andresen <gavinandresen@gmail.com>
Tue, 19 Jun 2012 18:52:50 +0000 (14:52 -0400)
commit4d87a33eaeccfee0fc2469dcc090a47a9d086a04
tree21872ee9d70ce2ddc8ad251ce7106181e0147d86
parent63ee422ab312ec7bb03c0f7e74308d23723e364e
Further DoS prevention: Verify signatures last

Loop over all inputs doing inexpensive validity checks first,
and then loop over them a second time doing expensive signature
checks. This helps prevent possible CPU exhaustion attacks
where an attacker tries to make a victim waste time checking
signatures for invalid transactions.
src/main.cpp