Gregory Maxwell 139cd8177b
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).

Rebased-From: a784f90c9892f06b9fea4e7579f5eca3585482c3
Github-Pull: #6029
2015-04-20 13:59:19 +02:00
..
2015-03-19 00:14:28 -04:00
2014-11-20 17:22:06 +01:00
2015-02-01 17:57:38 -04:00
2015-02-03 10:33:58 +01:00
2014-11-03 16:16:40 +01:00
2015-04-01 16:39:55 +02:00
2014-11-03 16:16:40 +01:00
2014-12-03 10:52:58 +00:00
2014-12-03 10:52:58 +00:00
2014-11-03 16:16:40 +01:00
2014-12-03 10:52:58 +00:00
2015-03-19 00:14:28 -04:00
2014-12-03 10:52:58 +00:00
2014-12-05 11:24:39 +01:00
2014-11-20 17:22:02 +01:00
2014-11-20 17:22:02 +01:00
2014-12-01 14:57:58 +01:00
2014-12-01 14:57:58 +01:00
2014-12-03 10:52:58 +00:00
2015-03-09 11:13:35 +01:00
2014-08-28 22:25:21 +02:00
2014-12-03 10:52:58 +00:00
2015-03-19 00:14:28 -04:00
2014-11-03 16:16:40 +01:00
2014-11-20 17:22:02 +01:00
2014-11-25 08:18:33 +01:00
2015-04-14 10:52:03 +02:00
2014-12-03 10:52:58 +00:00
2014-11-03 16:16:40 +01:00
2014-10-03 04:29:51 +02:00