Commit Graph
7 Commits
Author SHA1 Message Date
Simon dca3af5bde Update variable name. 2016-06-09 07:23:33 +08:00
Simon 574f0bca77 Update to DistinctIndices function (for issue #857).
Replaces pull request #974.
2016-06-08 23:34:18 +08:00
Simon edab3ddd2e Implement issue #997 to reduce time for test_bitcoin due to sleeps in
addrman.  Related to issue #717.
2016-06-06 17:11:15 +08:00
Simon 17c4c0db48 Remove Bitcoin mainnet seeds. 2016-05-27 11:37:41 -07:00
Simon 1cf94c69e8 Remove Bitcoin testnet seeds. 2016-05-25 17:00:44 -07:00
Simon 0dd2bf94dd Declare constants for the maximum number of retries, when to sleep
between retries and how long for.
2016-05-24 23:56:31 -07:00
Simon b0f75847ea Fix issue #717 where if addrman is starved of addresses (e.g. on testnet)
the Select_() function will loop endlessly trying to find an address,
and therefore eat up 100% cpu time on the 'opencon' thread.

Solution is to (1) add a delay to the loop and (2) restrict the number
of attempts to find an address.  On exiting the loop, we return
to an outer loop in net.cpp which will sleep, add seed nodes and
calcualte new addresses.
2016-05-13 16:00:22 -07:00