aboutsummaryrefslogtreecommitdiff
path: root/src/script/script.cpp
diff options
context:
space:
mode:
authorGregory Maxwell <[email protected]>2015-04-19 11:47:56 -0700
committerGregory Maxwell <[email protected]>2015-04-19 11:47:56 -0700
commita784f90c9892f06b9fea4e7579f5eca3585482c3 (patch)
tree7af900f4ac6a234617cd7a20322b29eef795e015 /src/script/script.cpp
parentMerge pull request #6012 (diff)
downloaddiscoin-a784f90c9892f06b9fea4e7579f5eca3585482c3.tar.xz
discoin-a784f90c9892f06b9fea4e7579f5eca3585482c3.zip
Cap nAttempts penalty at 8 and switch to pow instead of a division loop.
On hosts that had spent some time with a failed internet connection their nAttempts penalty was going through the roof (e.g. thousands for all peers) and as a result the connect search was pegging the CPU and failing to get more than a 4 connections after days of running (because it was taking so long per try).
Diffstat (limited to 'src/script/script.cpp')
0 files changed, 0 insertions, 0 deletions