<!-- This issue tracker is only for technical issues related to Bitcoin Core.

General bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange at https://bitcoin.stackexchange.com.

For reporting security issues, please read instructions at https://bitcoincore.org/en/contact/.

If the node is "stuck" during sync or giving "block checksum mismatch" errors, please ensure your hardware is stable by running memtest and observe CPU temperature with a load-test tool such as linpack before creating an issue! -->

<!-- Describe the issue -->

I am experiencing a boost in CPU usage once I used a the Bitcoin daemon over Tor&clearnet with a hidden service. The CPU usage was very low when my Bitcoin node was only on clearnet but rigth now is always using one or two core at 100%, out of 8 cores nearly all the time.

<!--- What behavior did you expect? -->

I was expecting a similar or at least slightly higher CPU usage over Tor compared to a clearnet node.
 
<!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? -->
![imagen](https://user-images.githubusercontent.com/12942552/57516324-cac59f80-7314-11e9-841a-ab9883420f17.png)

<!--- How reliably can you reproduce the issue, what are the steps to do so? -->

The issue is continuous. I have usually 12 outbound connections (over Tor or Clearnet) and 3-5 inbound connections over Tor.

<!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? -->
My bitcoin version is the v0.18.0

<!-- What type of machine are you observing the error on (OS/CPU and disk type)? -->

My sistem is an Odroid HC1 with an SSD. 
The OS is Ubuntu 16.04.6 LTS XENIAL.
I am using a lightning node over LND within the same system.

<!-- For the GUI-related issue on Linux provide names and versions of a distro, a desktop environment and a graphical shell (if relevant). -->

<!-- Any extra information that might be useful in the debugging process. -->

I don't see anything strange other than a lot of refused connections on debug.log. I attach the last lines of the debug.log file.

<!--- This is normally the contents of a `debug.log` or `config.log` file. Raw text or a link to a pastebin type site are preferred. -->

```
2019-05-09T23:26:22Z UpdateTip: new best=0000000000000000000afe04af305f885d67b6d666cea19fcb431c9b1b04a519 height=575340 version=0x20000000 log2_work=90.62208 tx=411607669 date='2019-05-09T23:26:11Z' progress=1.000000 cache=29.2MiB(256898txo) warning='37 of last 100 blocks have unexpected version'
2019-05-09T23:26:57Z UpdateTip: new best=0000000000000000000553864f70dd499354f6ee46e1dcfdd5fa169135d69a67 height=575341 version=0x20800000 log2_work=90.622101 tx=411609206 date='2019-05-09T23:26:32Z' progress=1.000000 cache=29.7MiB(262016txo) warning='37 of last 100 blocks have unexpected version'
2019-05-09T23:31:38Z UpdateTip: new best=00000000000000000013113b6bae51edcdb774450d85f6395f2fc2ddea497800 height=575342 version=0x20400000 log2_work=90.622123 tx=411611238 date='2019-05-09T23:31:04Z' progress=1.000000 cache=30.2MiB(266063txo) warning='37 of last 100 blocks have unexpected version'
2019-05-09T23:35:59Z Socks5() connect to 2a02:8071:82cd:e100:778d:dc56:e57c:b1ce:8333 failed: host unreachable
2019-05-09T23:38:59Z Socks5() connect to 146.52.89.93:8333 failed: host unreachable
2019-05-09T23:39:31Z Pre-allocating up to position 0x700000 in rev01631.dat
2019-05-09T23:39:31Z UpdateTip: new best=000000000000000000277e7a28795bafd466fe13ef7397e2c59994c9946eae9f height=575343 version=0x20c00000 log2_work=90.622145 tx=411613970 date='2019-05-09T23:39:13Z' progress=1.000000 cache=30.7MiB(271159txo) warning='37 of last 100 blocks have unexpected version'
2019-05-09T23:44:34Z Socks5() connect to 92.76.174.124:8333 failed: general failure
2019-05-09T23:45:41Z UpdateTip: new best=000000000000000000024fff922c2e823385d6669c31f99ad19b503659e8f0e6 height=575344 version=0x20000000 log2_work=90.622167 tx=411616160 date='2019-05-09T23:45:10Z' progress=1.000000 cache=31.1MiB(274652txo) warning='37 of last 100 blocks have unexpected version'
2019-05-09T23:48:16Z Socks5() connect to 184.75.208.74:8333 failed: connection refused
2019-05-09T23:50:06Z Socks5() connect to 195.95.232.166:8333 failed: host unreachable
2019-05-09T23:55:03Z Socks5() connect to 2601:345:4202:e9a::d411:8333 failed: general failure
2019-05-09T23:56:56Z New outbound peer connected: version: 70015, blocks=575344, peer=150
2019-05-10T00:04:17Z Socks5() connect to 103.225.124.94:8333 failed: host unreachable
2019-05-10T00:06:30Z New outbound peer connected: version: 70015, blocks=575344, peer=154
2019-05-10T00:07:23Z Socks5() connect to 61.74.181.139:8333 failed: connection refused
2019-05-10T00:16:10Z New outbound peer connected: version: 70015, blocks=575344, peer=158
2019-05-10T00:17:18Z UpdateTip: new best=00000000000000000024ece831f33fbb489adb40bf921e4027fb7d035f7228c2 height=575345 version=0x20400000 log2_work=90.622188 tx=411619340 date='2019-05-10T00:16:40Z' progress=1.000000 cache=32.3MiB(286409txo) warning='37 of last 100 blocks have unexpected version'
2019-05-10T00:19:56Z Socks5() connect to 2001:4dd4:1bfc:0:7f66:f8cf:d29:ecd2:8333 failed: connection refused
2019-05-10T00:21:09Z Socks5() connect to 46.0.68.2:8333 failed: connection refused
2019-05-10T00:21:46Z Socks5() connect to 165.165.166.154:8333 failed: connection refused
2019-05-10T00:23:43Z Socks5() connect to 220.240.30.5:8333 failed: general failure
2019-05-10T00:29:02Z Socks5() connect to 178.45.197.88:8333 failed: connection refused
2019-05-10T00:31:01Z Socks5() connect to 74.202.83.27:8333 failed: connection refused
2019-05-10T00:32:04Z Socks5() connect to 2604:2d80:cc11:8ae1:7430:57dc:36bc:e6d5:8333 failed: host unreachable
2019-05-10T00:33:45Z Socks5() connect to 101.51.154.239:8333 failed: connection refused
2019-05-10T00:37:21Z Socks5() connect to 185.117.215.9:8333 failed: connection refused
2019-05-10T00:43:10Z Pre-allocating up to position 0x4000000 in blk01631.dat
2019-05-10T00:43:11Z UpdateTip: new best=0000000000000000001261f67440b680e53418264e5f488bbb16a9f2941aaad2 height=575346 version=0x20000000 log2_work=90.62221 tx=411622641 date='2019-05-10T00:42:49Z' progress=1.000000 cache=33.2MiB(294217txo) warning='37 of last 100 blocks have unexpected version'
2019-05-10T00:50:00Z Socks5() connect to 194.44.53.2:8333 failed: connection refused
2019-05-10T00:51:54Z Socks5() connect to 2604:6000:1012:c633::285:8333 failed: general failure
2019-05-10T00:54:11Z Socks5() connect to 2001:1b60:3:221:3132:102:0:1:8333 failed: connection refused
2019-05-10T01:06:41Z UpdateTip: new best=000000000000000000020349af1964eb3a47451b51f172b768e377a6842194dd height=575347 version=0x20000000 log2_work=90.622232 tx=411625634 date='2019-05-10T01:06:35Z' progress=1.000000 cache=34.0MiB(302312txo) warning='37 of last 100 blocks have unexpected version'
2019-05-10T01:08:20Z Socks5() connect to 162.156.84.221:8333 failed: connection refused
2019-05-10T01:19:51Z UpdateTip: new best=0000000000000000000bd90f53dcc5b8813a96d6df5304e73558d73f578073de height=575348 version=0x20400000 log2_work=90.622254 tx=411627496 date='2019-05-10T01:19:36Z' progress=1.000000 cache=35.7MiB(318270txo) warning='38 of last 100 blocks have unexpected version'
2019-05-10T01:21:07Z Socks5() connect to 2001:16b8:48f:6300:31af:469:ed12:be91:8333 failed: connection refused
2019-05-10T01:22:47Z Socks5() connect to 2607:fa18:3a01::50:8333 failed: general failure
2019-05-10T01:37:55Z UpdateTip: new best=00000000000000000015d88c1c77d8cd4e340e610e04be9dec57482fdd735847 height=575349 version=0x20000000 log2_work=90.622276 tx=411630311 date='2019-05-10T01:37:43Z' progress=1.000000 cache=36.7MiB(327420txo) warning='38 of last 100 blocks have unexpected version'
2019-05-10T01:44:54Z Pre-allocating up to position 0x800000 in rev01631.dat
2019-05-10T01:44:54Z UpdateTip: new best=0000000000000000001debdb1474501b68123a0979a175d388dbe27f508f2a49 height=575350 version=0x20000000 log2_work=90.622297 tx=411632622 date='2019-05-10T01:44:45Z' progress=1.000000 cache=37.6MiB(335786txo) warning='38 of last 100 blocks have unexpected version'
2019-05-10T01:48:16Z Socks5() connect to 179.83.249.217:8333 failed: connection refused
2019-05-10T01:50:49Z Socks5() connect to 2001:470:6f:14b:5091:2641:33aa:f6b:8333 failed: host unreachable
2019-05-10T01:59:38Z Socks5() connect to 188.167.251.17:8333 failed: connection refused
2019-05-10T02:03:51Z UpdateTip: new best=00000000000000000001af4445650c03f7812f9bd6e5c6bd1d09b19e32f6ecba height=575351 version=0x20800000 log2_work=90.622319 tx=411634960 date='2019-05-10T02:03:15Z' progress=1.000000 cache=38.8MiB(346742txo) warning='39 of last 100 blocks have unexpected version'
2019-05-10T02:06:57Z Socks5() connect to 2001:1bc0:cc::a001:8333 failed: general failure
2019-05-10T02:07:21Z UpdateTip: new best=0000000000000000001025947f4f7e07a4e7478fe54a1c75ddfc24aa3d02d107 height=575352 version=0x20000000 log2_work=90.622341 tx=411636487 date='2019-05-10T02:06:50Z' progress=1.000000 cache=39.7MiB(355465txo) warning='39 of last 100 blocks have unexpected version'
2019-05-10T02:08:21Z Socks5() connect to 83.251.255.201:8333 failed: connection refused
2019-05-10T02:10:36Z New outbound peer connected: version: 70015, blocks=575352, peer=202
2019-05-10T02:18:21Z Socks5() connect to 2600:8801:db00:8a3::3d05:8333 failed: general failure
2019-05-10T02:20:10Z New outbound peer connected: version: 70015, blocks=575352, peer=207
2019-05-10T02:21:34Z Socks5() connect to 46.38.44.125:8333 failed: connection refused
2019-05-10T02:23:58Z Socks5() connect to 66.254.234.20:8333 failed: connection refused
2019-05-10T02:29:44Z New outbound peer connected: version: 70015, blocks=575352, peer=212
2019-05-10T02:30:43Z Socks5() connect to 212.92.123.25:8333 failed: connection refused
2019-05-10T02:30:44Z UpdateTip: new best=000000000000000000295cf01850067c2ca6bca5b0c1eeaabf520433d88bee54 height=575353 version=0x20000000 log2_work=90.622363 tx=411638239 date='2019-05-10T02:30:18Z' progress=1.000000 cache=41.2MiB(369382txo) warning='39 of last 100 blocks have unexpected version'
2019-05-10T02:34:04Z Socks5() connect to 5.12.251.236:8333 failed: connection refused
2019-05-10T02:35:54Z New outbound peer connected: version: 70015, blocks=575353, peer=216
2019-05-10T02:39:21Z New outbound peer connected: version: 70015, blocks=575353, peer=218
2019-05-10T02:43:00Z Socks5() connect to 195.201.71.60:8333 failed: connection refused
2019-05-10T02:44:40Z Socks5() connect to 94.134.40.42:8333 failed: host unreachable
2019-05-10T02:48:07Z Socks5() connect to 5.63.46.78:8333 failed: general failure
2019-05-10T02:48:55Z New outbound peer connected: version: 70015, blocks=575353, peer=222
2019-05-10T02:56:57Z UpdateTip: new best=0000000000000000001f221f95ab5ef4fcd3bd5daef93c0733f8fbfc79d427d2 height=575354 version=0x20000000 log2_work=90.622385 tx=411640557 date='2019-05-10T02:56:57Z' progress=1.000000 cache=42.2MiB(378722txo) warning='39 of last 100 blocks have unexpected version'
2019-05-10T02:58:29Z New outbound peer connected: version: 70015, blocks=575354, peer=227
2019-05-10T03:02:34Z Socks5() connect to 78.55.173.143:8333 failed: host unreachable
2019-05-10T03:04:11Z Socks5() connect to 82.207.200.54:8333 failed: connection refused
2019-05-10T03:16:55Z UpdateTip: new best=000000000000000000254a5c0bc74e13f30a05e845933cd9edf8f343ea68c0f1 height=575355 version=0x20000000 log2_work=90.622406 tx=411642951 date='2019-05-10T03:16:08Z' progress=1.000000 cache=42.7MiB(382888txo) warning='39 of last 100 blocks have unexpected version'
2019-05-10T03:17:05Z Socks5() connect to 79.238.94.191:8333 failed: host unreachable
2019-05-10T03:17:36Z New outbound peer connected: version: 70015, blocks=575355, peer=232
2019-05-10T03:19:41Z UpdateTip: new best=0000000000000000002236af2a588d3afcb3a161c168e882b9cc37a2e90652fc height=575356 version=0x20c00000 log2_work=90.622428 tx=411645219 date='2019-05-10T03:19:15Z' progress=1.000000 cache=43.1MiB(386955txo) warning='40 of last 100 blocks have unexpected version'
2019-05-10T03:21:57Z Socks5() connect to 104.254.90.87:8333 failed: connection refused
2019-05-10T03:26:19Z Socks5() connect to 24.85.181.241:8333 failed: general failure
2019-05-10T03:28:53Z Socks5() connect to 78.94.232.189:8333 failed: connection refused
2019-05-10T03:30:32Z Pre-allocating up to position 0x900000 in rev01631.dat
2019-05-10T03:30:32Z UpdateTip: new best=000000000000000000007d00d8514b5dad5773a202bfd6ef6b970e53a56109d9 height=575357 version=0x20c00000 log2_work=90.62245 tx=411647204 date='2019-05-10T03:29:51Z' progress=1.000000 cache=43.9MiB(394314txo) warning='40 of last 100 blocks have unexpected version'
2019-05-10T03:35:50Z Socks5() connect to 2a01:4f9:2b:fa2::2:8333 failed: general failure
2019-05-10T03:36:42Z New outbound peer connected: version: 70015, blocks=575357, peer=238
2019-05-10T03:46:16Z New outbound peer connected: version: 70015, blocks=575357, peer=241
2019-05-10T03:48:20Z Pre-allocating up to position 0x5000000 in blk01631.dat
2019-05-10T03:48:20Z UpdateTip: new best=0000000000000000001e91f514c47e9014893ac1418ec5b9a6590c38f71585e9 height=575358 version=0x20800000 log2_work=90.622472 tx=411649826 date='2019-05-10T03:48:04Z' progress=1.000000 cache=44.5MiB(399663txo) warning='40 of last 100 blocks have unexpected version'
2019-05-10T03:49:02Z UpdateTip: new best=0000000000000000002841e341db47a5c7ab84c416fea4dc9b600953e6095193 height=575359 version=0x20c00000 log2_work=90.622494 tx=411651867 date='2019-05-10T03:48:51Z' progress=1.000000 cache=45.2MiB(406977txo) warning='40 of last 100 blocks have unexpected version'
2019-05-10T03:51:40Z Socks5() connect to 2a00:23c5:fd07:8b00:411:2ece:f640:db46:8333 failed: host unreachable
2019-05-10T03:52:54Z Socks5() connect to 103.254.153.113:8333 failed: connection refused
2019-05-10T03:55:50Z New outbound peer connected: version: 70015, blocks=575359, peer=245
2019-05-10T04:07:17Z UpdateTip: new best=0000000000000000000c50a7eb416230eee9da618c5b15e4a09c83d906c4f1bb height=575360 version=0x20000000 log2_work=90.622515 tx=411653904 date='2019-05-10T04:06:53Z' progress=1.000000 cache=45.8MiB(412046txo) warning='39 of last 100 blocks have unexpected version'
2019-05-10T04:07:20Z Socks5() connect to 5.63.46.78:8333 failed: host unreachable
2019-05-10T04:10:37Z UpdateTip: new best=0000000000000000001ce8354135997c8f6a64b3b004bb5f17cbdba7181dfed4 height=575361 version=0x20000000 log2_work=90.622537 tx=411656853 date='2019-05-10T04:09:48Z' progress=1.000000 cache=46.2MiB(415954txo) warning='39 of last 100 blocks have unexpected version'
2019-05-10T04:14:56Z New outbound peer connected: version: 70015, blocks=575361, peer=252
2019-05-10T04:19:59Z Socks5() connect to 2a03:4000:6:8009::1:8333 failed: general failure
2019-05-10T04:21:52Z UpdateTip: new best=000000000000000000114778e9b3160f764b2dfca2a197e750dc0796037712b6 height=575362 version=0x20400000 log2_work=90.622559 tx=411659249 date='2019-05-10T04:21:34Z' progress=1.000000 cache=46.8MiB(421325txo) warning='40 of last 100 blocks have unexpected version'
2019-05-10T04:24:31Z New outbound peer connected: version: 70015, blocks=575362, peer=257
2019-05-10T04:35:47Z Socks5() connect to 24.218.181.99:8333 failed: connection refused
2019-05-10T04:43:16Z Pre-allocating up to position 0xa00000 in rev01631.dat
2019-05-10T04:43:16Z UpdateTip: new best=00000000000000000013db6fe1d96cdee876db82939bdc61445b6b5115ad81d1 height=575363 version=0x20000000 log2_work=90.622581 tx=411661926 date='2019-05-10T04:43:10Z' progress=1.000000 cache=47.4MiB(427196txo) warning='39 of last 100 blocks have unexpected version'
2019-05-10T04:50:23Z UpdateTip: new best=00000000000000000014017ec0f7a9b039905d074c406acdd0c8b154cc33d38c height=575364 version=0x20800000 log2_work=90.622603 tx=411664243 date='2019-05-10T04:50:02Z' progress=1.000000 cache=48.0MiB(433000txo) warning='40 of last 100 blocks have unexpected version'
2019-05-10T04:52:54Z Socks5() connect to 3.83.172.33:8333 failed: connection refused
2019-05-10T04:53:09Z New outbound peer connected: version: 70015, blocks=575364, peer=267
2019-05-10T05:01:50Z UpdateTip: new best=00000000000000000018074c18e3177e6c304a96fe18c46f7bb8f26633a20871 height=575365 version=0x20000000 log2_work=90.622624 tx=411666638 date='2019-05-10T05:01:46Z' progress=1.000000 cache=48.7MiB(439049txo) warning='40 of last 100 blocks have unexpected version'
2019-05-10T05:02:43Z New outbound peer connected: version: 70015, blocks=575365, peer=272
2019-05-10T05:12:18Z New outbound peer connected: version: 70015, blocks=575365, peer=277
2019-05-10T05:21:51Z New outbound peer connected: version: 70015, blocks=575365, peer=282
2019-05-10T05:24:42Z UpdateTip: new best=00000000000000000029cab7ff4ce891126e010be5d6dd8b02a11c7a3bb221a4 height=575366 version=0x20000000 log2_work=90.622646 tx=411669168 date='2019-05-10T05:24:21Z' progress=1.000000 cache=51.5MiB(449504txo) warning='39 of last 100 blocks have unexpected version'
2019-05-10T05:26:25Z UpdateTip: new best=00000000000000000001908a10f469b3dfd6d44a1bccbd51a2e567fd7eb67b53 height=575367 version=0x20000000 log2_work=90.622668 tx=411671593 date='2019-05-10T05:26:23Z' progress=1.000000 cache=51.9MiB(453376txo) warning='38 of last 100 blocks have unexpected version'
2019-05-10T05:28:12Z Socks5() connect to 186.90.243.233:8333 failed: host unreachable
2019-05-10T05:29:22Z UpdateTip: new best=0000000000000000001ba7b93749701300daa4a53319d3162222dd36e75201f0 height=575368 version=0x3fffe000 log2_work=90.62269 tx=411673946 date='2019-05-10T05:29:22Z' progress=1.000000 cache=52.5MiB(458790txo) warning='38 of last 100 blocks have unexpected version'
2019-05-10T05:29:40Z UpdateTip: new best=00000000000000000023cbed8eddf35ca23bca74d46ea1a9e9d38199a4c46c61 height=575369 version=0x20800000 log2_work=90.622711 tx=411675834 date='2019-05-10T05:29:21Z' progress=1.000000 cache=53.1MiB(464350txo) warning='39 of last 100 blocks have unexpected version'
2019-05-10T05:37:58Z Pre-allocating up to position 0xb00000 in rev01631.dat
2019-05-10T05:37:58Z UpdateTip: new best=000000000000000000241e5a3f4275e90a7c70782e1d2499159bbfeaea0397ee height=575370 version=0x20400000 log2_work=90.622733 tx=411677867 date='2019-05-10T05:37:30Z' progress=1.000000 cache=53.4MiB(466827txo) warning='40 of last 100 blocks have unexpected version'
2019-05-10T05:38:12Z UpdateTip: new best=000000000000000000011c85ae7e66e7a81cea0caa3af06a9b355012dd5ebe3d height=575371 version=0x20400000 log2_work=90.622755 tx=411681219 date='2019-05-10T05:37:58Z' progress=1.000000 cache=53.8MiB(470546txo) warning='40 of last 100 blocks have unexpected version'
2019-05-10T05:41:04Z Pre-allocating up to position 0x6000000 in blk01631.dat
2019-05-10T05:41:05Z UpdateTip: new best=0000000000000000000f06b6e4d7f4ebbf62c5b9dabcfd5f78c698362dd1e49e height=575372 version=0x3fffe000 log2_work=90.622777 tx=411683288 date='2019-05-10T05:40:45Z' progress=1.000000 cache=54.3MiB(475068txo) warning='40 of last 100 blocks have unexpected version'
2019-05-10T05:46:23Z Socks5() connect to 2601:19c:4802:6930::b56b:8333 failed: general failure
2019-05-10T05:47:18Z Socks5() connect to 2001:5b0:48e0:a9b8:4031:5983:7f7c:da84:8333 failed: host unreachable
2019-05-10T05:49:16Z UpdateTip: new best=000000000000000000265af46c5330d911d45ef24d20f1b545fbb37869dac6ea height=575373 version=0x20000000 log2_work=90.622799 tx=411685741 date='2019-05-10T05:48:32Z' progress=1.000000 cache=54.6MiB(478098txo) warning='40 of last 100 blocks have unexpected version'
2019-05-10T05:50:34Z New outbound peer connected: version: 70015, blocks=575373, peer=294
2019-05-10T06:00:08Z New outbound peer connected: version: 70015, blocks=575373, peer=298
2019-05-10T06:01:02Z UpdateTip: new best=000000000000000000131a324b39b490ada693f0a3b63ff9761d61d0efe64635 height=575374 version=0x20000000 log2_work=90.62282 tx=411688241 date='2019-05-10T06:00:59Z' progress=1.000000 cache=55.1MiB(482572txo) warning='39 of last 100 blocks have unexpected version'
2019-05-10T06:05:34Z Socks5() connect to 2a01:4f9:c010:2cee::1:8333 failed: general failure
2019-05-10T06:08:05Z UpdateTip: new best=00000000000000000009b1a4e061071faa9ed8e4738756d124688ddd6400f1d0 height=575375 version=0x20000000 log2_work=90.622842 tx=411690516 date='2019-05-10T06:08:13Z' progress=1.000000 cache=55.4MiB(485928txo) warning='39 of last 100 blocks have unexpected version'
2019-05-10T06:08:47Z UpdateTip: new best=0000000000000000000e9b400e2dc58a008f461b3668a908f97321e85e9536d6 height=575376 version=0x20000000 log2_work=90.622864 tx=411692775 date='2019-05-10T06:08:49Z' progress=1.000000 cache=55.7MiB(488460txo) warning='39 of last 100 blocks have unexpected version'
2019-05-10T06:09:41Z New outbound peer connected: version: 70015, blocks=575376, peer=302
2019-05-10T06:10:03Z Socks5() connect to 188.172.198.43:8333 failed: connection refused
2019-05-10T06:12:29Z Pre-allocating up to position 0xc00000 in rev01631.dat
2019-05-10T06:12:30Z UpdateTip: new best=0000000000000000000f692c5a3853940eec49e45fe9179980e308a1d6e0e1e2 height=575377 version=0x2000e000 log2_work=90.622886 tx=411695356 date='2019-05-10T06:12:35Z' progress=1.000000 cache=56.0MiB(490820txo) warning='39 of last 100 blocks have unexpected version'
2019-05-10T06:16:42Z Socks5() connect to 88.149.180.187:8333 failed: host unreachable
2019-05-10T06:19:16Z New outbound peer connected: version: 70015, blocks=575377, peer=307
2019-05-10T06:25:31Z Socks5() connect to 2a03:b0c0:3:d0::23f7:b001:8333 failed: general failure
2019-05-10T06:28:50Z New outbound peer connected: version: 70015, blocks=575377, peer=313
2019-05-10T06:35:50Z UpdateTip: new best=0000000000000000000f8c6760212fd07b668324133e30418442fcb712e6732f height=575378 version=0x20000000 log2_work=90.622908 tx=411698267 date='2019-05-10T06:35:27Z' progress=1.000000 cache=56.7MiB(497893txo) warning='39 of last 100 blocks have unexpected version'
2019-05-10T06:38:24Z New outbound peer connected: version: 70015, blocks=575378, peer=319
2019-05-10T06:39:52Z UpdateTip: new best=0000000000000000000604e1f98e0791fce79bb6bb6322aab83bffecb73b6de3 height=575379 version=0x20000000 log2_work=90.622929 tx=411700940 date='2019-05-10T06:39:23Z' progress=1.000000 cache=57.0MiB(500432txo) warning='38 of last 100 blocks have unexpected version'
2019-05-10T06:43:22Z Socks5() connect to 173.255.139.144:8333 failed: connection refused
2019-05-10T06:46:33Z UpdateTip: new best=0000000000000000000904294acafe54bf1383233007a95f1aede347a1149bce height=575380 version=0x20000000 log2_work=90.622951 tx=411703491 date='2019-05-10T06:46:25Z' progress=1.000000 cache=57.3MiB(503392txo) warning='38 of last 100 blocks have unexpected version'
2019-05-10T06:48:52Z UpdateTip: new best=000000000000000000047296d09074b23b6e7d9fc07cc67960884f2dfddaaae9 height=575381 version=0x20000000 log2_work=90.622973 tx=411705029 date='2019-05-10T06:48:48Z' progress=1.000000 cache=57.4MiB(504597txo) warning='37 of last 100 blocks have unexpected version'
2019-05-10T06:49:48Z UpdateTip: new best=000000000000000000107000cda51a31343520e15ba5843a88dbdf6924df1852 height=575382 version=0x20000000 log2_work=90.622995 tx=411706987 date='2019-05-10T06:49:23Z' progress=1.000000 cache=57.6MiB(506046txo) warning='37 of last 100 blocks have unexpected version'
2019-05-10T06:51:30Z Socks5() connect to 65.204.58.114:8333 failed: connection refused
2019-05-10T06:57:31Z New outbound peer connected: version: 70015, blocks=575382, peer=330
2019-05-10T07:07:06Z New outbound peer connected: version: 70015, blocks=575382, peer=334
2019-05-10T07:11:31Z Pre-allocating up to position 0xd00000 in rev01631.dat
2019-05-10T07:11:31Z UpdateTip: new best=00000000000000000011e2a5b9b270479740ddb9623cc0da9e5a327bd996d777 height=575383 version=0x3fff0000 log2_work=90.623016 tx=411709930 date='2019-05-10T07:11:25Z' progress=1.000000 cache=58.4MiB(513719txo) warning='38 of last 100 blocks have unexpected version'
2019-05-10T07:12:51Z UpdateTip: new best=000000000000000000037a0e7053b2b6c677857c2ef0487f841decfe9c3761f2 height=575384 version=0x20000000 log2_work=90.623038 tx=411712411 date='2019-05-10T07:12:13Z' progress=1.000000 cache=59.1MiB(520649txo) warning='37 of last 100 blocks have unexpected version'
2019-05-10T07:14:26Z Socks5() connect to 87.178.226.188:8333 failed: connection refused
2019-05-10T07:19:57Z UpdateTip: new best=0000000000000000000fe96e43513887191bade5585f843cfdc3163a641b9b1d height=575385 version=0x2000e000 log2_work=90.62306 tx=411714975 date='2019-05-10T07:20:08Z' progress=1.000000 cache=59.5MiB(524146txo) warning='37 of last 100 blocks have unexpected version'
2019-05-10T07:32:19Z Pre-allocating up to position 0x7000000 in blk01631.dat
2019-05-10T07:32:19Z UpdateTip: new best=0000000000000000000a0935a536f098984bfed20748553a47384d42069bebb6 height=575386 version=0x20000000 log2_work=90.623082 tx=411717525 date='2019-05-10T07:32:11Z' progress=1.000000 cache=61.6MiB(543121txo) warning='37 of last 100 blocks have unexpected version'
2019-05-10T07:33:28Z UpdateTip: new best=0000000000000000000ca88bb299f7f462f1c46fd463d57e987f48e034818fee height=575387 version=0x20000000 log2_work=90.623104 tx=411718273 date='2019-05-10T07:32:55Z' progress=1.000000 cache=61.6MiB(543781txo) warning='37 of last 100 blocks have unexpected version'
2019-05-10T07:49:46Z UpdateTip: new best=00000000000000000015c064d4870c99888ea95f1d94637fcb3bee2d7b7a8323 height=575388 version=0x20000000 log2_work=90.623125 tx=411721477 date='2019-05-10T07:49:18Z' progress=1.000000 cache=62.5MiB(551787txo) warning='37 of last 100 blocks have unexpected version'
2019-05-10T08:03:10Z UpdateTip: new best=00000000000000000009ae5e1f0e473f0c4f72b54138262bc742b8148ba109c9 height=575389 version=0x20000000 log2_work=90.623147 tx=411724151 date='2019-05-10T08:02:56Z' progress=1.000000 cache=63.3MiB(559335txo) warning='37 of last 100 blocks have unexpected version'
2019-05-10T08:18:28Z Socks5() connect to 159.69.68.214:8333 failed: connection refused
2019-05-10T08:30:09Z Pre-allocating up to position 0xe00000 in rev01631.dat
2019-05-10T08:30:09Z UpdateTip: new best=0000000000000000000e148dfa1b8919a327d3cb310dc7e84610793f8092628d height=575390 version=0x20000000 log2_work=90.623169 tx=411726929 date='2019-05-10T08:29:43Z' progress=1.000000 cache=65.1MiB(576398txo) warning='37 of last 100 blocks have unexpected version'
2019-05-10T08:36:01Z UpdateTip: new best=000000000000000000214b742af9a1c57049a64bf0214e217a6b8a11c88e1951 height=575391 version=0x20000000 log2_work=90.623191 tx=411729753 date='2019-05-10T08:35:46Z' progress=1.000000 cache=65.7MiB(582381txo) warning='36 of last 100 blocks have unexpected version'
2019-05-10T08:56:01Z Socks5() connect to 2001:56a:f317:4e00:526f:e70d:4a25:e22:8333 failed: host unreachable
2019-05-10T08:59:02Z Socks5() connect to 2604:3d08:6b7f:e7e0::203e:8333 failed: general failure
2019-05-10T09:01:18Z Socks5() connect to 196.52.84.22:8333 failed: connection refused
2019-05-10T09:01:36Z UpdateTip: new best=00000000000000000014c2a4d1e29cb32cca2731b6b286b40b55173f4938c667 height=575392 version=0x20000000 log2_work=90.623213 tx=411732531 date='2019-05-10T09:01:01Z' progress=1.000000 cache=66.9MiB(592708txo) warning='36 of last 100 blocks have unexpected version'
2019-05-10T09:08:52Z Socks5() connect to 87.101.95.115:8333 failed: connection refused
2019-05-10T09:10:34Z Socks5() connect to 95.90.248.39:8333 failed: connection refused
2019-05-10T09:11:10Z New outbound peer connected: version: 70015, blocks=575392, peer=384

```

LOCK(cs_proxyInfos);
    return nameProxy.IsValid();
}
bool IsProxy(const CNetAddr &addr) {
    LOCK(cs_proxyInfos);
    for (int i = 0; i < NET_MAX; i++) {
        if (addr == static_cast<CNetAddr>(proxyInfo[i].proxy))
            return true;
    }
    return false;
}
/**
 * Connect to a specified destination service through a SOCKS5 proxy by first
 * connecting to the SOCKS5 proxy.
 *
 * @param proxy The SOCKS5 proxy.
 * @param strDest The destination service to which to connect.
 * @param port The destination port.
 * @param hSocket The socket on which to connect to the SOCKS5 proxy.
 * @param nTimeout Wait this many milliseconds for the connection to the SOCKS5
 *                 proxy to be established.
 * @param outProxyConnectionFailed[out] Whether or not the connection to the
 *                                      SOCKS5 proxy failed.
 *
 * @returns Whether or not the operation succeeded.
 */
bool ConnectThroughProxy(const proxyType &proxy, const std::string& strDest, int port, const SOCKET& hSocket, int nTimeout, bool *outProxyConnectionFailed)