aboutsummaryrefslogtreecommitdiff
path: root/src/key.cpp
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2012-05-16 11:26:56 -0400
committerGavin Andresen <gavinandresen@gmail.com>2012-05-18 10:41:18 -0400
commit4add41a2a6fa1229277e00e01a8b4111e7cb21d6 (patch)
treee14aa5904fa0d5597074ee80585db52ff3789612 /src/key.cpp
parent7a15109c043f8182cc996bf762f0a62c72646ff9 (diff)
downloadbitcoin-4add41a2a6fa1229277e00e01a8b4111e7cb21d6.tar.xz
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.
Diffstat (limited to 'src/key.cpp')
0 files changed, 0 insertions, 0 deletions