aboutsummaryrefslogtreecommitdiff
path: root/src/httpserver.cpp
diff options
context:
space:
mode:
authorSuhas Daftuar <[email protected]>2017-10-06 14:11:43 -0400
committerSuhas Daftuar <[email protected]>2017-10-19 20:33:45 -0400
commitce8cd7a7da9174ab151172fc0ce97b5164637cf3 (patch)
tree61191a31eb8fb0c9ede4b1825c9161f97816e47c /src/httpserver.cpp
parentMerge #11529: Avoid slow transaction search with txindex enabled (diff)
downloaddiscoin-ce8cd7a7da9174ab151172fc0ce97b5164637cf3.tar.xz
discoin-ce8cd7a7da9174ab151172fc0ce97b5164637cf3.zip
Don't process unrequested, low-work blocks
A peer could try to waste our resources by sending us unrequested blocks with low work, eg to fill up our disk. Since e2652002b6011f793185d473f87f1730c625593b we no longer request blocks until we know we're on a chain with more than nMinimumChainWork (our anti-DoS threshold), but we would still process unrequested blocks that had more work than our tip. This commit fixes that behavior.
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions