Cap nAttempts penalty at 8 and switch to pow instead of a division loop. #6029
pull gmaxwell wants to merge 1 commits into bitcoin:master from gmaxwell:nAttempts_cost changing 1 files +2 −3-
gmaxwell commented at 6:52 pm on April 19, 2015: contributorOn 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).
-
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).
-
gmaxwell added this to the milestone 0.10.0 on Apr 19, 2015
-
laanwj commented at 11:46 am on April 20, 2015: memberMakes sense, utACK
-
laanwj merged this on Apr 20, 2015
-
laanwj closed this on Apr 20, 2015
-
laanwj referenced this in commit 71900b4426 on Apr 20, 2015
-
laanwj commented at 12:00 pm on April 20, 2015: memberCherry-picked to 0.10 as 139cd8177be4895f8b4c2befee35030bdf96132
-
gmaxwell referenced this in commit 139cd8177b on Apr 20, 2015
-
reddink referenced this in commit cc13dbf71c on May 27, 2020
-
DrahtBot locked this on Sep 8, 2021
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-17 18:12 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-17 18:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me