diff options
author | Suhas Daftuar <sdaftuar@chaincode.com> | 2017-10-06 14:11:43 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2017-11-02 13:09:00 -0400 |
commit | 3acec3878133c52f4f3a594baf1dcbd6575244bb (patch) | |
tree | 701f01e965031ed46f2735b447d46ce91c29b6bf /src/crypto/hmac_sha256.cpp | |
parent | 0e9d04bf0a9465d085df1f8c8858cf427c6c97ba (diff) | |
download | bitcoin-3acec3878133c52f4f3a594baf1dcbd6575244bb.tar.xz |
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.
Github-Pull: #11458
Rebased-From: ce8cd7a7da9174ab151172fc0ce97b5164637cf3
Diffstat (limited to 'src/crypto/hmac_sha256.cpp')
0 files changed, 0 insertions, 0 deletions