Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

long time importing few blocks and then stuck #1192

Closed
ethers opened this issue Jun 6, 2015 · 5 comments
Closed

long time importing few blocks and then stuck #1192

ethers opened this issue Jun 6, 2015 · 5 comments

Comments

@ethers
Copy link
Member

ethers commented Jun 6, 2015

develop commit 43ceb0f

Run geth, it took a long time to import just 44 blocks, then no longer getting any blocks for almost an hour.

I0605 18:06:29.876398    6646 chain_manager.go:664] imported 44 block(s) (0 queued 0 ignored) in 587.490964ms. #540672 [7aa7d4cd / 9972b06a]

Rest of the logs:

I0605 18:06:19.783377    6646 sync.go:117] Synchronisation aborted: pending items in queue
I0605 18:06:20.601396    6646 sync.go:102] Attempting synchronisation: cf7e9d8c35a63660, 0x50c35b292afa1d234ef2dd97e8972d50871be13269468265e1b50e710a1c6cb6
I0605 18:06:20.601440    6646 sync.go:117] Synchronisation aborted: pending items in queue
I0605 18:06:20.936353    6646 chain_manager.go:664] imported 256 block(s) (0 queued 0 ignored) in 25.127650474s. #540116 [fb755628 / ffa3370f]
I0605 18:06:21.290038    6646 sync.go:61] Inserting chain with 556 blocks (#540117 - #540672)
I0605 18:06:26.089439    6646 chain_manager.go:664] imported 256 block(s) (0 queued 0 ignored) in 4.799300452s. #540372 [2b0cb3d3 / 196efbd4]
I0605 18:06:29.288806    6646 chain_manager.go:664] imported 256 block(s) (0 queued 0 ignored) in 3.199229223s. #540628 [724bf294 / 0b73c8de]
I0605 18:06:29.787733    6646 sync.go:102] Attempting synchronisation: 3f0f94f07a565093, 0x50c35b292afa1d234ef2dd97e8972d50871be13269468265e1b50e710a1c6cb6
I0605 18:06:29.787804    6646 downloader.go:219] Synchronizing with the network using: 3f0f94f07a565093
I0605 18:06:29.790855    6646 downloader.go:257] Downloading hashes (50c35b29) from 3f0f94f07a565093
I0605 18:06:29.876398    6646 chain_manager.go:664] imported 44 block(s) (0 queued 0 ignored) in 587.490964ms. #540672 [7aa7d4cd / 9972b06a]
I0605 18:06:34.813735    6646 downloader.go:368] Peer (3f0f94f07a565093) didn't respond in time for hash request
I0605 18:06:34.813850    6646 sync.go:113] Removing peer 3f0f94f07a565093: timeout
I0605 18:06:34.822315    6646 downloader.go:150] Unregistering peer 3f0f94f07a565093
I0605 18:06:37.298282    6646 sync.go:102] Attempting synchronisation: 34584f379a5f9de1, 0xc55570b554cd5146cfce8766dd75a9e3dd404cd51e31a3bd21c9518ceb9b67b4
I0605 18:06:37.298387    6646 downloader.go:219] Synchronizing with the network using: 34584f379a5f9de1
I0605 18:06:37.298406    6646 downloader.go:257] Downloading hashes (c55570b5) from 34584f379a5f9de1
I0605 18:06:37.306068    6646 xeth.go:963] Tx(8c7501c16d09fc035c0276e06b862cfd42c98ea976be78e2001bc111e3496fe9) to: &2f5174935c1ec7750c64a120eb472dd85c23589f
I0605 18:06:37.363066    6646 sync.go:102] Attempting synchronisation: cf7e9d8c35a63660, 0xc55570b554cd5146cfce8766dd75a9e3dd404cd51e31a3bd21c9518ceb9b67b4
I0605 18:06:37.363129    6646 sync.go:110] Synchronisation already in progress
I0605 18:06:39.783208    6646 sync.go:102] Attempting synchronisation: 34584f379a5f9de1, 0xc55570b554cd5146cfce8766dd75a9e3dd404cd51e31a3bd21c9518ceb9b67b4
I0605 18:06:39.783263    6646 sync.go:110] Synchronisation already in progress
I0605 18:06:42.298638    6646 downloader.go:368] Peer (34584f379a5f9de1) didn't respond in time for hash request
I0605 18:06:42.298692    6646 sync.go:113] Removing peer 34584f379a5f9de1: timeout
I0605 18:06:42.298705    6646 downloader.go:150] Unregistering peer 34584f379a5f9de1
I0605 18:06:49.783227    6646 sync.go:102] Attempting synchronisation: cf7e9d8c35a63660, 0xc55570b554cd5146cfce8766dd75a9e3dd404cd51e31a3bd21c9518ceb9b67b4
I0605 18:06:49.783309    6646 downloader.go:219] Synchronizing with the network using: cf7e9d8c35a63660
I0605 18:06:49.783322    6646 downloader.go:257] Downloading hashes (c55570b5) from cf7e9d8c35a63660
I0605 18:06:52.131382    6646 sync.go:102] Attempting synchronisation: 7d96939629660b11, 0xdddbaadbf3905eb080d7e46cca86a35adf7713012a987af13f8105bbfbb2b041
I0605 18:06:52.131433    6646 sync.go:110] Synchronisation already in progress
I0605 18:06:53.158213    6646 sync.go:102] Attempting synchronisation: 7d96939629660b11, 0xdddbaadbf3905eb080d7e46cca86a35adf7713012a987af13f8105bbfbb2b041
I0605 18:06:53.158264    6646 sync.go:110] Synchronisation already in progress
I0605 18:06:53.319798    6646 downloader.go:139] Registering peer a979fb575495b8d6
I0605 18:06:54.783525    6646 downloader.go:368] Peer (cf7e9d8c35a63660) didn't respond in time for hash request
I0605 18:06:54.783573    6646 sync.go:113] Removing peer cf7e9d8c35a63660: timeout
I0605 18:06:54.783587    6646 downloader.go:150] Unregistering peer cf7e9d8c35a63660
I0605 18:06:59.783221    6646 sync.go:102] Attempting synchronisation: a979fb575495b8d6, 0xdddbaadbf3905eb080d7e46cca86a35adf7713012a987af13f8105bbfbb2b041
I0605 18:06:59.783295    6646 downloader.go:219] Synchronizing with the network using: a979fb575495b8d6
I0605 18:06:59.783305    6646 downloader.go:257] Downloading hashes (dddbaadb) from a979fb575495b8d6
I0605 18:07:04.783551    6646 downloader.go:368] Peer (a979fb575495b8d6) didn't respond in time for hash request
I0605 18:07:04.783601    6646 sync.go:113] Removing peer a979fb575495b8d6: timeout
I0605 18:07:04.783614    6646 downloader.go:150] Unregistering peer a979fb575495b8d6
I0605 18:07:04.826621    6646 sync.go:102] Attempting synchronisation: 7d96939629660b11, 0xdddbaadbf3905eb080d7e46cca86a35adf7713012a987af13f8105bbfbb2b041
I0605 18:07:04.826714    6646 downloader.go:219] Synchronizing with the network using: 7d96939629660b11
I0605 18:07:04.826728    6646 downloader.go:257] Downloading hashes (dddbaadb) from 7d96939629660b11
I0605 18:07:04.956971    6646 downloader.go:291] Peer (7d96939629660b11) responded with empty hash set
I0605 18:07:04.957016    6646 sync.go:113] Removing peer 7d96939629660b11: empty hash set by peer
I0605 18:07:04.958951    6646 downloader.go:150] Unregistering peer 7d96939629660b11
I0605 18:07:44.636830    6646 downloader.go:139] Registering peer 672c0b7f50a4f456
I0605 18:07:49.785412    6646 sync.go:102] Attempting synchronisation: 672c0b7f50a4f456, 0xead0f496a5fe19e3ec87330dd7e93926504913b200eb9bbef4ef37d62afa5c3e
I0605 18:07:49.785481    6646 downloader.go:219] Synchronizing with the network using: 672c0b7f50a4f456
I0605 18:07:49.785495    6646 downloader.go:257] Downloading hashes (ead0f496) from 672c0b7f50a4f456
I0605 18:07:54.785749    6646 downloader.go:368] Peer (672c0b7f50a4f456) didn't respond in time for hash request
I0605 18:07:54.785790    6646 sync.go:113] Removing peer 672c0b7f50a4f456: timeout
I0605 18:07:54.785800    6646 downloader.go:150] Unregistering peer 672c0b7f50a4f456
I0605 18:07:58.707361    6646 downloader.go:150] Unregistering peer a7eb4528865a0c6b
I0605 18:08:36.465365    6646 downloader.go:139] Registering peer 409502a3627325e8
I0605 18:08:39.418970    6646 downloader.go:139] Registering peer 91851b3561adde8d
I0605 18:08:39.419250    6646 sync.go:102] Attempting synchronisation: 409502a3627325e8, 0x3beea9784b11e0457743674d5172773f2b0b600ac25a73627f17d1b89bb9ba75
I0605 18:08:39.419446    6646 downloader.go:219] Synchronizing with the network using: 409502a3627325e8
I0605 18:08:39.419615    6646 downloader.go:257] Downloading hashes (3beea978) from 409502a3627325e8
I0605 18:08:39.783194    6646 sync.go:102] Attempting synchronisation: 409502a3627325e8, 0x3beea9784b11e0457743674d5172773f2b0b600ac25a73627f17d1b89bb9ba75
I0605 18:08:39.783228    6646 sync.go:110] Synchronisation already in progress
I0605 18:08:44.419950    6646 downloader.go:368] Peer (409502a3627325e8) didn't respond in time for hash request
I0605 18:08:44.419991    6646 sync.go:113] Removing peer 409502a3627325e8: timeout
I0605 18:08:44.420001    6646 downloader.go:150] Unregistering peer 409502a3627325e8
I0605 18:09:14.753811    6646 downloader.go:139] Registering peer 594b67f3eb874e4a
I0605 18:11:02.685059    6646 downloader.go:150] Unregistering peer 91851b3561adde8d
I0605 18:11:20.353603    6646 downloader.go:139] Registering peer 409502a3627325e8
I0605 18:11:29.785323    6646 sync.go:102] Attempting synchronisation: 409502a3627325e8, 0xbe24fe9b14fcbea6cf538b14da65da37ab015a33fc15c94f1c2310eb91d7c5b5
I0605 18:11:29.785377    6646 downloader.go:219] Synchronizing with the network using: 409502a3627325e8
I0605 18:11:29.785386    6646 downloader.go:257] Downloading hashes (be24fe9b) from 409502a3627325e8
I0605 18:11:33.246571    6646 sync.go:102] Attempting synchronisation: 409502a3627325e8, 0xbe24fe9b14fcbea6cf538b14da65da37ab015a33fc15c94f1c2310eb91d7c5b5
I0605 18:11:33.246625    6646 sync.go:110] Synchronisation already in progress
I0605 18:11:33.265185    6646 downloader.go:139] Registering peer a7eb4528865a0c6b
I0605 18:11:34.785592    6646 downloader.go:368] Peer (409502a3627325e8) didn't respond in time for hash request
I0605 18:11:34.785655    6646 sync.go:113] Removing peer 409502a3627325e8: timeout
I0605 18:11:34.785673    6646 downloader.go:150] Unregistering peer 409502a3627325e8
I0605 18:12:12.344336    6646 downloader.go:150] Unregistering peer a7eb4528865a0c6b
I0605 18:12:14.594843    6646 downloader.go:139] Registering peer 672c0b7f50a4f456
I0605 18:12:19.787146    6646 sync.go:102] Attempting synchronisation: 672c0b7f50a4f456, 0x047724d95920070c8ef45b646b27ee693f76165789cfa646bd0d519c13692143
I0605 18:12:19.787214    6646 downloader.go:219] Synchronizing with the network using: 672c0b7f50a4f456
I0605 18:12:19.787229    6646 downloader.go:257] Downloading hashes (047724d9) from 672c0b7f50a4f456
I0605 18:12:24.787472    6646 downloader.go:368] Peer (672c0b7f50a4f456) didn't respond in time for hash request
I0605 18:12:24.787519    6646 sync.go:113] Removing peer 672c0b7f50a4f456: timeout
I0605 18:12:24.787531    6646 downloader.go:150] Unregistering peer 672c0b7f50a4f456
I0605 18:12:56.702979    6646 downloader.go:139] Registering peer a8c45d901b41a33e
I0605 18:12:59.785283    6646 sync.go:102] Attempting synchronisation: a8c45d901b41a33e, 0xff688e237e88161e0f86bebc7a37dacc71de763f6734dcef33128e6bfd948a61
I0605 18:12:59.785336    6646 downloader.go:219] Synchronizing with the network using: a8c45d901b41a33e
I0605 18:12:59.785345    6646 downloader.go:257] Downloading hashes (ff688e23) from a8c45d901b41a33e
I0605 18:13:04.785546    6646 downloader.go:368] Peer (a8c45d901b41a33e) didn't respond in time for hash request
I0605 18:13:04.785604    6646 sync.go:113] Removing peer a8c45d901b41a33e: timeout
I0605 18:13:04.785620    6646 downloader.go:150] Unregistering peer a8c45d901b41a33e
I0605 18:14:15.022994    6646 downloader.go:139] Registering peer 980c100319588e86
I0605 18:14:19.788456    6646 sync.go:102] Attempting synchronisation: 980c100319588e86, 0x165fffaa9e7ae7b1041a1b298ee8ed4dd6a7dc701ef341de2ca82c1b2ba2e19e
I0605 18:14:19.788517    6646 downloader.go:219] Synchronizing with the network using: 980c100319588e86
I0605 18:14:19.788528    6646 downloader.go:257] Downloading hashes (165fffaa) from 980c100319588e86
I0605 18:14:24.788740    6646 downloader.go:368] Peer (980c100319588e86) didn't respond in time for hash request
I0605 18:14:24.788782    6646 sync.go:113] Removing peer 980c100319588e86: timeout
I0605 18:14:24.788792    6646 downloader.go:150] Unregistering peer 980c100319588e86
I0605 18:14:38.342956    6646 downloader.go:139] Registering peer a979fb575495b8d6
I0605 18:14:39.783583    6646 sync.go:102] Attempting synchronisation: a979fb575495b8d6, 0x94ac8df4fc9b70dc12724abd7fd693d439497b263c6a8bd7124f5779edcb905d
I0605 18:14:39.783624    6646 downloader.go:219] Synchronizing with the network using: a979fb575495b8d6
I0605 18:14:39.783630    6646 downloader.go:257] Downloading hashes (94ac8df4) from a979fb575495b8d6
I0605 18:14:44.783836    6646 downloader.go:368] Peer (a979fb575495b8d6) didn't respond in time for hash request
I0605 18:14:44.783883    6646 sync.go:113] Removing peer a979fb575495b8d6: timeout
I0605 18:14:44.783893    6646 downloader.go:150] Unregistering peer a979fb575495b8d6
I0605 18:16:30.054113    6646 downloader.go:139] Registering peer 672c0b7f50a4f456
I0605 18:16:39.783287    6646 sync.go:102] Attempting synchronisation: 672c0b7f50a4f456, 0x703852b3d3ab791f332fed76750cba791a5ac4a8f492bb93ddf20790e3a4c3a7
I0605 18:16:39.783324    6646 downloader.go:219] Synchronizing with the network using: 672c0b7f50a4f456
I0605 18:16:39.783329    6646 downloader.go:257] Downloading hashes (703852b3) from 672c0b7f50a4f456
I0605 18:16:44.783504    6646 downloader.go:368] Peer (672c0b7f50a4f456) didn't respond in time for hash request
I0605 18:16:44.783547    6646 sync.go:113] Removing peer 672c0b7f50a4f456: timeout
I0605 18:16:44.783557    6646 downloader.go:150] Unregistering peer 672c0b7f50a4f456
I0605 18:17:04.250090    6646 downloader.go:139] Registering peer bb92307842ac2177
I0605 18:17:09.785292    6646 sync.go:102] Attempting synchronisation: bb92307842ac2177, 0x2ab953cd7abaebd7646121dda0ce85903d718432aa04e92adb22470eb0c0cbda
I0605 18:17:09.785332    6646 downloader.go:219] Synchronizing with the network using: bb92307842ac2177
I0605 18:17:09.785338    6646 downloader.go:257] Downloading hashes (2ab953cd) from bb92307842ac2177
I0605 18:17:14.785509    6646 downloader.go:368] Peer (bb92307842ac2177) didn't respond in time for hash request
I0605 18:17:14.785552    6646 sync.go:113] Removing peer bb92307842ac2177: timeout
I0605 18:17:14.785562    6646 downloader.go:150] Unregistering peer bb92307842ac2177
I0605 18:22:44.760113    6646 downloader.go:139] Registering peer b16c43c55cb44ab2
I0605 18:22:49.356345    6646 sync.go:102] Attempting synchronisation: b16c43c55cb44ab2, 0x0be77ac629f27a2a16d83db02dcce39ff90f5d6cdbecff8f9ec97e7566a65516
I0605 18:22:49.356681    6646 downloader.go:219] Synchronizing with the network using: b16c43c55cb44ab2
I0605 18:22:49.356704    6646 downloader.go:257] Downloading hashes (0be77ac6) from b16c43c55cb44ab2
I0605 18:22:49.371431    6646 downloader.go:139] Registering peer 672c0b7f50a4f456
I0605 18:22:49.783231    6646 sync.go:102] Attempting synchronisation: 672c0b7f50a4f456, 0x0be77ac629f27a2a16d83db02dcce39ff90f5d6cdbecff8f9ec97e7566a65516
I0605 18:22:49.783288    6646 sync.go:110] Synchronisation already in progress
I0605 18:22:54.356902    6646 downloader.go:368] Peer (b16c43c55cb44ab2) didn't respond in time for hash request
I0605 18:22:54.356944    6646 sync.go:113] Removing peer b16c43c55cb44ab2: timeout
I0605 18:22:54.356955    6646 downloader.go:150] Unregistering peer b16c43c55cb44ab2
I0605 18:22:59.783277    6646 sync.go:102] Attempting synchronisation: 672c0b7f50a4f456, 0x0be77ac629f27a2a16d83db02dcce39ff90f5d6cdbecff8f9ec97e7566a65516
I0605 18:22:59.783403    6646 downloader.go:219] Synchronizing with the network using: 672c0b7f50a4f456
I0605 18:22:59.783423    6646 downloader.go:257] Downloading hashes (0be77ac6) from 672c0b7f50a4f456
I0605 18:23:04.783569    6646 downloader.go:368] Peer (672c0b7f50a4f456) didn't respond in time for hash request
I0605 18:23:04.783612    6646 sync.go:113] Removing peer 672c0b7f50a4f456: timeout
I0605 18:23:04.783623    6646 downloader.go:150] Unregistering peer 672c0b7f50a4f456
I0605 18:23:25.183486    6646 downloader.go:139] Registering peer de471bccee3d0422
I0605 18:23:29.783408    6646 sync.go:102] Attempting synchronisation: de471bccee3d0422, 0x6d84f0eeea7cf3fd990baeafd98710f5c400b85ff4c191aed52d985ad379ac5d
I0605 18:23:29.783489    6646 downloader.go:219] Synchronizing with the network using: de471bccee3d0422
I0605 18:23:29.783501    6646 downloader.go:257] Downloading hashes (6d84f0ee) from de471bccee3d0422
I0605 18:23:34.783811    6646 downloader.go:368] Peer (de471bccee3d0422) didn't respond in time for hash request
I0605 18:23:34.783877    6646 sync.go:113] Removing peer de471bccee3d0422: timeout
I0605 18:23:34.783896    6646 downloader.go:150] Unregistering peer de471bccee3d0422
I0605 18:24:46.991706    6646 downloader.go:139] Registering peer b67d2e7b8bafb9b6
I0605 18:24:49.785297    6646 sync.go:102] Attempting synchronisation: b67d2e7b8bafb9b6, 0xbc028a17dcf22bc1ac10892bc20cc2bc94db9b1bfa9c9771b9d1268013ea9e24
I0605 18:24:49.785359    6646 downloader.go:219] Synchronizing with the network using: b67d2e7b8bafb9b6
I0605 18:24:49.785370    6646 downloader.go:257] Downloading hashes (bc028a17) from b67d2e7b8bafb9b6
I0605 18:24:54.900095    6646 downloader.go:368] Peer (b67d2e7b8bafb9b6) didn't respond in time for hash request
I0605 18:24:54.900193    6646 sync.go:113] Removing peer b67d2e7b8bafb9b6: timeout
I0605 18:24:54.900220    6646 downloader.go:150] Unregistering peer b67d2e7b8bafb9b6
I0605 18:26:34.033638    6646 downloader.go:139] Registering peer 723cef52ab0df937
I0605 18:26:34.794594    6646 sync.go:102] Attempting synchronisation: 723cef52ab0df937, 0x1e016abfcb177227de57508c40c9910ee74e44ad766893a5f9ab4c68be2920d5
I0605 18:26:34.794669    6646 downloader.go:219] Synchronizing with the network using: 723cef52ab0df937
I0605 18:26:34.794686    6646 downloader.go:257] Downloading hashes (1e016abf) from 723cef52ab0df937
I0605 18:26:34.882928    6646 downloader.go:139] Registering peer 1d719beb797b9b78
I0605 18:26:39.783332    6646 sync.go:102] Attempting synchronisation: 723cef52ab0df937, 0x1e016abfcb177227de57508c40c9910ee74e44ad766893a5f9ab4c68be2920d5
I0605 18:26:39.783420    6646 sync.go:110] Synchronisation already in progress
I0605 18:26:39.794883    6646 downloader.go:368] Peer (723cef52ab0df937) didn't respond in time for hash request
I0605 18:26:39.794950    6646 sync.go:113] Removing peer 723cef52ab0df937: timeout
I0605 18:26:39.794967    6646 downloader.go:150] Unregistering peer 723cef52ab0df937
I0605 18:26:50.007128    6646 sync.go:102] Attempting synchronisation: 1d719beb797b9b78, 0xbcc56106b74bd1400837f0df098dd166f044855b878452b6484be7e0e7a1fb17
I0605 18:26:50.007432    6646 downloader.go:219] Synchronizing with the network using: 1d719beb797b9b78
I0605 18:26:50.007596    6646 downloader.go:257] Downloading hashes (bcc56106) from 1d719beb797b9b78
I0605 18:26:55.007943    6646 downloader.go:368] Peer (1d719beb797b9b78) didn't respond in time for hash request
I0605 18:26:55.007988    6646 sync.go:113] Removing peer 1d719beb797b9b78: timeout
I0605 18:26:55.007999    6646 downloader.go:150] Unregistering peer 1d719beb797b9b78
I0605 18:27:59.878128    6646 downloader.go:139] Registering peer 5ba2fb1294d3dbfa
I0605 18:28:09.785447    6646 sync.go:102] Attempting synchronisation: 5ba2fb1294d3dbfa, 0xffc9c44a808b77066bd87d0c03a7159a188a9fa38c4816fb6f22df244bde7a8a
I0605 18:28:09.785491    6646 downloader.go:219] Synchronizing with the network using: 5ba2fb1294d3dbfa
I0605 18:28:09.785499    6646 downloader.go:257] Downloading hashes (ffc9c44a) from 5ba2fb1294d3dbfa
I0605 18:28:14.785641    6646 downloader.go:368] Peer (5ba2fb1294d3dbfa) didn't respond in time for hash request
I0605 18:28:14.785731    6646 sync.go:113] Removing peer 5ba2fb1294d3dbfa: timeout
I0605 18:28:14.785762    6646 downloader.go:150] Unregistering peer 5ba2fb1294d3dbfa
I0605 18:28:22.320917    6646 downloader.go:139] Registering peer ebd7004d65f3bf97
I0605 18:28:29.785974    6646 sync.go:102] Attempting synchronisation: ebd7004d65f3bf97, 0xe6a9e4d300eef52b71be96454a96aa9c51719833ddfd129b85a47f4f475826b7
I0605 18:28:29.786039    6646 downloader.go:219] Synchronizing with the network using: ebd7004d65f3bf97
I0605 18:28:29.786054    6646 downloader.go:257] Downloading hashes (e6a9e4d3) from ebd7004d65f3bf97
I0605 18:28:34.786278    6646 downloader.go:368] Peer (ebd7004d65f3bf97) didn't respond in time for hash request
I0605 18:28:34.786321    6646 sync.go:113] Removing peer ebd7004d65f3bf97: timeout
I0605 18:28:34.786331    6646 downloader.go:150] Unregistering peer ebd7004d65f3bf97
I0605 18:30:23.061600    6646 downloader.go:150] Unregistering peer 4a5a722a073c1c63
I0605 18:30:57.639284    6646 downloader.go:139] Registering peer db9be59a8362cfb9
I0605 18:30:57.803637    6646 sync.go:102] Attempting synchronisation: db9be59a8362cfb9, 0xc154a4cc94f61e33f601eec8d5a6592a33b3143c72492b4c5e31236124f40534
I0605 18:30:57.803693    6646 downloader.go:219] Synchronizing with the network using: db9be59a8362cfb9
I0605 18:30:57.803707    6646 downloader.go:257] Downloading hashes (c154a4cc) from db9be59a8362cfb9
I0605 18:30:59.512757    6646 downloader.go:139] Registering peer b19e825cf5b15d75
I0605 18:30:59.783240    6646 sync.go:102] Attempting synchronisation: b19e825cf5b15d75, 0xc154a4cc94f61e33f601eec8d5a6592a33b3143c72492b4c5e31236124f40534
I0605 18:30:59.783290    6646 sync.go:110] Synchronisation already in progress
I0605 18:31:02.803828    6646 downloader.go:368] Peer (db9be59a8362cfb9) didn't respond in time for hash request
I0605 18:31:02.803887    6646 sync.go:113] Removing peer db9be59a8362cfb9: timeout
I0605 18:31:02.803905    6646 downloader.go:150] Unregistering peer db9be59a8362cfb9
I0605 18:31:09.783209    6646 sync.go:102] Attempting synchronisation: b19e825cf5b15d75, 0xc154a4cc94f61e33f601eec8d5a6592a33b3143c72492b4c5e31236124f40534
I0605 18:31:09.783261    6646 downloader.go:219] Synchronizing with the network using: b19e825cf5b15d75
I0605 18:31:09.783267    6646 downloader.go:257] Downloading hashes (c154a4cc) from b19e825cf5b15d75
I0605 18:31:14.783449    6646 downloader.go:368] Peer (b19e825cf5b15d75) didn't respond in time for hash request
I0605 18:31:14.783522    6646 sync.go:113] Removing peer b19e825cf5b15d75: timeout
I0605 18:31:14.783548    6646 downloader.go:150] Unregistering peer b19e825cf5b15d75
I0605 18:31:16.647796    6646 downloader.go:139] Registering peer 71326b0be32473af
I0605 18:31:28.539571    6646 downloader.go:139] Registering peer 47d582998b40790a
I0605 18:31:34.498226    6646 downloader.go:139] Registering peer ea79aad8f0460b9f
I0605 18:31:39.785478    6646 sync.go:102] Attempting synchronisation: ea79aad8f0460b9f, 0x72ce2a79e28c84d5be117f85c6dbe134b5305cadfb2ab3b21eeea829cd2396b0
I0605 18:31:39.785537    6646 downloader.go:219] Synchronizing with the network using: ea79aad8f0460b9f
I0605 18:31:39.785545    6646 downloader.go:257] Downloading hashes (72ce2a79) from ea79aad8f0460b9f
I0605 18:31:44.785728    6646 downloader.go:368] Peer (ea79aad8f0460b9f) didn't respond in time for hash request
I0605 18:31:44.785782    6646 sync.go:113] Removing peer ea79aad8f0460b9f: timeout
I0605 18:31:44.785797    6646 downloader.go:150] Unregistering peer ea79aad8f0460b9f
I0605 18:40:45.400927    6646 downloader.go:150] Unregistering peer 71326b0be32473af
I0605 18:40:52.017667    6646 downloader.go:150] Unregistering peer 47d582998b40790a
I0605 18:40:57.928277    6646 downloader.go:139] Registering peer 066b5daafb09f8db
I0605 18:40:59.786766    6646 sync.go:102] Attempting synchronisation: 066b5daafb09f8db, 0xa17a7dbeeb8035853c68c960d4b5dc21c4bbf76e8b4c6c3b124e4e687a1de9ef
I0605 18:40:59.787072    6646 downloader.go:219] Synchronizing with the network using: 066b5daafb09f8db
I0605 18:40:59.787251    6646 downloader.go:257] Downloading hashes (a17a7dbe) from 066b5daafb09f8db
I0605 18:41:04.787631    6646 downloader.go:368] Peer (066b5daafb09f8db) didn't respond in time for hash request
I0605 18:41:04.787671    6646 sync.go:113] Removing peer 066b5daafb09f8db: timeout
I0605 18:41:04.787682    6646 downloader.go:150] Unregistering peer 066b5daafb09f8db
I0605 18:41:13.558276    6646 downloader.go:139] Registering peer 5ba2fb1294d3dbfa
I0605 18:41:19.786433    6646 sync.go:102] Attempting synchronisation: 5ba2fb1294d3dbfa, 0xac27c6496eb778523dd9a1c92b3573c07283d929e18f2638aa3e43f1137c8cea
I0605 18:41:19.786473    6646 downloader.go:219] Synchronizing with the network using: 5ba2fb1294d3dbfa
I0605 18:41:19.786479    6646 downloader.go:257] Downloading hashes (ac27c649) from 5ba2fb1294d3dbfa
I0605 18:41:24.786606    6646 downloader.go:368] Peer (5ba2fb1294d3dbfa) didn't respond in time for hash request
I0605 18:41:24.786647    6646 sync.go:113] Removing peer 5ba2fb1294d3dbfa: timeout
I0605 18:41:24.786657    6646 downloader.go:150] Unregistering peer 5ba2fb1294d3dbfa
I0605 18:42:13.180805    6646 downloader.go:139] Registering peer 91787234ee198e61
I0605 18:42:13.451655    6646 sync.go:102] Attempting synchronisation: 91787234ee198e61, 0x1ebe422bcaa0f77e3a75d7232125c3b2e7cdb604c144ea2477edbe7e92bc6021
I0605 18:42:13.451689    6646 downloader.go:219] Synchronizing with the network using: 91787234ee198e61
I0605 18:42:13.451695    6646 downloader.go:257] Downloading hashes (1ebe422b) from 91787234ee198e61
I0605 18:42:13.606237    6646 downloader.go:139] Registering peer 4a5a722a073c1c63
I0605 18:42:18.451821    6646 downloader.go:368] Peer (91787234ee198e61) didn't respond in time for hash request
I0605 18:42:18.451864    6646 sync.go:113] Removing peer 91787234ee198e61: timeout
I0605 18:42:18.451878    6646 downloader.go:150] Unregistering peer 91787234ee198e61
I0605 18:44:45.693525    6646 downloader.go:139] Registering peer 6bc6d022a9907590
I0605 18:49:47.792987    6646 xeth.go:963] Tx(b391f705b54fb3a82065aaf55bab90d13eea841b77416b58dbc81708cdd4ee14) to: &9fec21cff232687e6105b1a95f1cee47c493a5b1
I0605 18:49:48.560891    6646 downloader.go:150] Unregistering peer 6bc6d022a9907590
I0605 18:49:49.054583    6646 downloader.go:150] Unregistering peer 4a5a722a073c1c63
I0605 18:49:50.487166    6646 downloader.go:139] Registering peer 33ea4d84fe742e5b
I0605 18:49:59.787379    6646 sync.go:102] Attempting synchronisation: 33ea4d84fe742e5b, 0x415f07693e71ceeec69be9981a7648bffdc3b3247dac00b8b048eb16cb54d01b
I0605 18:49:59.787559    6646 downloader.go:219] Synchronizing with the network using: 33ea4d84fe742e5b
I0605 18:49:59.787607    6646 downloader.go:257] Downloading hashes (415f0769) from 33ea4d84fe742e5b
I0605 18:50:04.787807    6646 downloader.go:368] Peer (33ea4d84fe742e5b) didn't respond in time for hash request
I0605 18:50:04.787847    6646 sync.go:113] Removing peer 33ea4d84fe742e5b: timeout
I0605 18:50:04.787857    6646 downloader.go:150] Unregistering peer 33ea4d84fe742e5b
I0605 18:50:06.497593    6646 downloader.go:139] Registering peer 6bc6d022a9907590
I0605 18:50:42.086739    6646 downloader.go:150] Unregistering peer 6bc6d022a9907590
I0605 18:50:57.984725    6646 downloader.go:139] Registering peer d772b3c2c5a1a333
I0605 18:50:59.787411    6646 sync.go:102] Attempting synchronisation: d772b3c2c5a1a333, 0xb965b43740bda5878412dfef44a3945a0c024b3635e573a434184c0225f0b6d9
I0605 18:50:59.787510    6646 downloader.go:219] Synchronizing with the network using: d772b3c2c5a1a333
I0605 18:50:59.787533    6646 downloader.go:257] Downloading hashes (b965b437) from d772b3c2c5a1a333
I0605 18:51:03.129247    6646 sync.go:102] Attempting synchronisation: d772b3c2c5a1a333, 0xb965b43740bda5878412dfef44a3945a0c024b3635e573a434184c0225f0b6d9
I0605 18:51:03.129567    6646 sync.go:110] Synchronisation already in progress
I0605 18:51:03.333739    6646 downloader.go:139] Registering peer bb92307842ac2177
I0605 18:51:04.388146    6646 sync.go:102] Attempting synchronisation: bb92307842ac2177, 0xb965b43740bda5878412dfef44a3945a0c024b3635e573a434184c0225f0b6d9
I0605 18:51:04.388224    6646 sync.go:110] Synchronisation already in progress
I0605 18:51:04.787828    6646 downloader.go:368] Peer (d772b3c2c5a1a333) didn't respond in time for hash request
I0605 18:51:04.787892    6646 sync.go:113] Removing peer d772b3c2c5a1a333: timeout
I0605 18:51:04.787911    6646 downloader.go:150] Unregistering peer d772b3c2c5a1a333
I0605 18:51:05.242765    6646 downloader.go:139] Registering peer 672c0b7f50a4f456
I0605 18:51:09.786740    6646 sync.go:102] Attempting synchronisation: 672c0b7f50a4f456, 0xaea41f8c6c4e0caf0376ac8756751df3ac449da4add508c6f5f9b478797382fb
I0605 18:51:09.787006    6646 downloader.go:219] Synchronizing with the network using: 672c0b7f50a4f456
I0605 18:51:09.787066    6646 downloader.go:257] Downloading hashes (aea41f8c) from 672c0b7f50a4f456
I0605 18:51:14.787782    6646 downloader.go:368] Peer (672c0b7f50a4f456) didn't respond in time for hash request
I0605 18:51:14.787825    6646 sync.go:113] Removing peer 672c0b7f50a4f456: timeout
I0605 18:51:14.787835    6646 downloader.go:150] Unregistering peer 672c0b7f50a4f456
I0605 18:51:19.783193    6646 sync.go:102] Attempting synchronisation: bb92307842ac2177, 0xb965b43740bda5878412dfef44a3945a0c024b3635e573a434184c0225f0b6d9
I0605 18:51:19.783244    6646 downloader.go:219] Synchronizing with the network using: bb92307842ac2177
I0605 18:51:19.783250    6646 downloader.go:257] Downloading hashes (b965b437) from bb92307842ac2177
I0605 18:51:23.367247    6646 sync.go:102] Attempting synchronisation: bb92307842ac2177, 0xb965b43740bda5878412dfef44a3945a0c024b3635e573a434184c0225f0b6d9
I0605 18:51:23.367308    6646 sync.go:110] Synchronisation already in progress
I0605 18:51:24.783372    6646 downloader.go:368] Peer (bb92307842ac2177) didn't respond in time for hash request
I0605 18:51:24.783426    6646 sync.go:113] Removing peer bb92307842ac2177: timeout
I0605 18:51:24.783442    6646 downloader.go:150] Unregistering peer bb92307842ac2177
I0605 18:52:33.833418    6646 downloader.go:139] Registering peer b67d2e7b8bafb9b6
I0605 18:52:39.785762    6646 sync.go:102] Attempting synchronisation: b67d2e7b8bafb9b6, 0x049e62b609c03928086590f5fdd02b66d07a4c955e1af50b768bd8885c179de5
I0605 18:52:39.785842    6646 downloader.go:219] Synchronizing with the network using: b67d2e7b8bafb9b6
I0605 18:52:39.785855    6646 downloader.go:257] Downloading hashes (049e62b6) from b67d2e7b8bafb9b6
I0605 18:52:44.449420    6646 sync.go:102] Attempting synchronisation: b67d2e7b8bafb9b6, 0x049e62b609c03928086590f5fdd02b66d07a4c955e1af50b768bd8885c179de5
I0605 18:52:44.449563    6646 sync.go:110] Synchronisation already in progress
I0605 18:52:44.786122    6646 downloader.go:368] Peer (b67d2e7b8bafb9b6) didn't respond in time for hash request
I0605 18:52:44.786182    6646 sync.go:113] Removing peer b67d2e7b8bafb9b6: timeout
I0605 18:52:44.786203    6646 downloader.go:150] Unregistering peer b67d2e7b8bafb9b6
I0605 18:52:45.071404    6646 downloader.go:139] Registering peer 91787234ee198e61
I0605 18:52:49.783473    6646 sync.go:102] Attempting synchronisation: 91787234ee198e61, 0x1ebe422bcaa0f77e3a75d7232125c3b2e7cdb604c144ea2477edbe7e92bc6021
I0605 18:52:49.783718    6646 downloader.go:219] Synchronizing with the network using: 91787234ee198e61
I0605 18:52:49.783757    6646 downloader.go:257] Downloading hashes (1ebe422b) from 91787234ee198e61
I0605 18:52:50.690822    6646 downloader.go:139] Registering peer 723cef52ab0df937
I0605 18:52:53.482624    6646 sync.go:102] Attempting synchronisation: 723cef52ab0df937, 0xac605737fc8eacee11a7f3af9936ac4feda95675a3c448a6ca3f373f63a97831
I0605 18:52:53.482657    6646 sync.go:110] Synchronisation already in progress
I0605 18:52:53.768849    6646 downloader.go:139] Registering peer 066b5daafb09f8db
I0605 18:52:54.784274    6646 downloader.go:368] Peer (91787234ee198e61) didn't respond in time for hash request
I0605 18:52:54.784347    6646 sync.go:113] Removing peer 91787234ee198e61: timeout
I0605 18:52:54.784371    6646 downloader.go:150] Unregistering peer 91787234ee198e61
I0605 18:52:59.787303    6646 sync.go:102] Attempting synchronisation: 066b5daafb09f8db, 0x8e79a8faceb5834f591d31290a7a6bb09263c8531f041332299e42e734816f9f
I0605 18:52:59.787679    6646 downloader.go:219] Synchronizing with the network using: 066b5daafb09f8db
I0605 18:52:59.787876    6646 downloader.go:257] Downloading hashes (8e79a8fa) from 066b5daafb09f8db
I0605 18:53:03.986006    6646 sync.go:102] Attempting synchronisation: 066b5daafb09f8db, 0x8e79a8faceb5834f591d31290a7a6bb09263c8531f041332299e42e734816f9f
I0605 18:53:03.988638    6646 sync.go:110] Synchronisation already in progress
I0605 18:53:04.788708    6646 downloader.go:368] Peer (066b5daafb09f8db) didn't respond in time for hash request
I0605 18:53:04.788857    6646 sync.go:113] Removing peer 066b5daafb09f8db: timeout
I0605 18:53:04.788901    6646 downloader.go:150] Unregistering peer 066b5daafb09f8db
I0605 18:53:04.825144    6646 downloader.go:139] Registering peer 672c0b7f50a4f456
I0605 18:53:09.786078    6646 sync.go:102] Attempting synchronisation: 672c0b7f50a4f456, 0x9b7b0d05c18cd8e84df165efd0172db3b29698ac13beffb953f71dab984d1e5f
I0605 18:53:09.786146    6646 downloader.go:219] Synchronizing with the network using: 672c0b7f50a4f456
I0605 18:53:09.786157    6646 downloader.go:257] Downloading hashes (9b7b0d05) from 672c0b7f50a4f456
I0605 18:53:14.786395    6646 downloader.go:368] Peer (672c0b7f50a4f456) didn't respond in time for hash request
I0605 18:53:14.786465    6646 sync.go:113] Removing peer 672c0b7f50a4f456: timeout
I0605 18:53:14.786485    6646 downloader.go:150] Unregistering peer 672c0b7f50a4f456
I0605 18:53:19.783267    6646 sync.go:102] Attempting synchronisation: 723cef52ab0df937, 0xac605737fc8eacee11a7f3af9936ac4feda95675a3c448a6ca3f373f63a97831
I0605 18:53:19.783412    6646 downloader.go:219] Synchronizing with the network using: 723cef52ab0df937
I0605 18:53:19.783437    6646 downloader.go:257] Downloading hashes (ac605737) from 723cef52ab0df937
I0605 18:53:24.783600    6646 downloader.go:368] Peer (723cef52ab0df937) didn't respond in time for hash request
I0605 18:53:24.783683    6646 sync.go:113] Removing peer 723cef52ab0df937: timeout
I0605 18:53:24.783708    6646 downloader.go:150] Unregistering peer 723cef52ab0df937
I0605 18:54:06.400013    6646 downloader.go:139] Registering peer 1f93f09be76a8203
I0605 18:54:22.050868    6646 downloader.go:139] Registering peer 71326b0be32473af
I0605 18:54:25.670375    6646 downloader.go:139] Registering peer 91787234ee198e61
I0605 18:54:29.785771    6646 sync.go:102] Attempting synchronisation: 91787234ee198e61, 0xbe69696cc960966ec5c585adad49b5b6449f043c193e9cb20e8c7885f374c979
I0605 18:54:29.785862    6646 downloader.go:219] Synchronizing with the network using: 91787234ee198e61
I0605 18:54:29.785877    6646 downloader.go:257] Downloading hashes (be69696c) from 91787234ee198e61
I0605 18:54:34.786117    6646 downloader.go:368] Peer (91787234ee198e61) didn't respond in time for hash request
I0605 18:54:34.786194    6646 sync.go:113] Removing peer 91787234ee198e61: timeout
I0605 18:54:34.786213    6646 downloader.go:150] Unregistering peer 91787234ee198e61
I0605 18:54:39.372088    6646 downloader.go:150] Unregistering peer 71326b0be32473af
I0605 18:54:39.932358    6646 downloader.go:139] Registering peer 7d96939629660b11
I0605 18:54:43.792005    6646 downloader.go:139] Registering peer b19e825cf5b15d75
I0605 18:54:45.057030    6646 downloader.go:150] Unregistering peer 1f93f09be76a8203
I0605 18:54:49.784685    6646 sync.go:102] Attempting synchronisation: b19e825cf5b15d75, 0x9727ba216f2e73982f6560f98b0fa2d6ca8602d48dc3c15c7f1bebedfe142899
I0605 18:54:49.784753    6646 downloader.go:219] Synchronizing with the network using: b19e825cf5b15d75
I0605 18:54:49.784766    6646 downloader.go:257] Downloading hashes (9727ba21) from b19e825cf5b15d75
I0605 18:54:53.016034    6646 sync.go:102] Attempting synchronisation: b19e825cf5b15d75, 0x9727ba216f2e73982f6560f98b0fa2d6ca8602d48dc3c15c7f1bebedfe142899
I0605 18:54:53.016065    6646 sync.go:110] Synchronisation already in progress
I0605 18:54:53.181511    6646 downloader.go:139] Registering peer a979fb575495b8d6
I0605 18:54:53.409723    6646 sync.go:102] Attempting synchronisation: a979fb575495b8d6, 0x88b5e353bf2bb3110c63453ed47514e4a5adc0a55438b10c040933f25a015633
I0605 18:54:53.409748    6646 sync.go:110] Synchronisation already in progress
I0605 18:54:54.784998    6646 downloader.go:368] Peer (b19e825cf5b15d75) didn't respond in time for hash request
I0605 18:54:54.785063    6646 sync.go:113] Removing peer b19e825cf5b15d75: timeout
I0605 18:54:54.785077    6646 downloader.go:150] Unregistering peer b19e825cf5b15d75
I0605 18:54:59.783193    6646 sync.go:102] Attempting synchronisation: a979fb575495b8d6, 0x88b5e353bf2bb3110c63453ed47514e4a5adc0a55438b10c040933f25a015633
I0605 18:54:59.783256    6646 downloader.go:219] Synchronizing with the network using: a979fb575495b8d6
I0605 18:54:59.783262    6646 downloader.go:257] Downloading hashes (88b5e353) from a979fb575495b8d6
I0605 18:55:04.784181    6646 downloader.go:368] Peer (a979fb575495b8d6) didn't respond in time for hash request
I0605 18:55:04.784253    6646 sync.go:113] Removing peer a979fb575495b8d6: timeout
I0605 18:55:04.784274    6646 downloader.go:150] Unregistering peer a979fb575495b8d6
I0605 18:55:17.761347    6646 downloader.go:150] Unregistering peer 7d96939629660b11
I0605 18:55:46.908033    6646 downloader.go:139] Registering peer 980c100319588e86
I0605 18:55:49.786304    6646 sync.go:102] Attempting synchronisation: 980c100319588e86, 0x05939833b744d06cb7140ed193d0d08af6c1baa800cf2f027e61822b70e9fc5f
I0605 18:55:49.786359    6646 downloader.go:219] Synchronizing with the network using: 980c100319588e86
I0605 18:55:49.786369    6646 downloader.go:257] Downloading hashes (05939833) from 980c100319588e86
I0605 18:55:54.786587    6646 downloader.go:368] Peer (980c100319588e86) didn't respond in time for hash request
I0605 18:55:54.786674    6646 sync.go:113] Removing peer 980c100319588e86: timeout
I0605 18:55:54.786695    6646 downloader.go:150] Unregistering peer 980c100319588e86
@karalabe
Copy link
Member

karalabe commented Jun 6, 2015

Could it happen that you had/have a very low bandwidth connection? I'm seeing the same error over and over again, all peers timing out on retrieving 2048 hashes. That amounts to having a lower bandwidth than 13KB/s. You can play around with increasing this timeout in eth/downloader.go -> hashTTL to maybe 10-15 secs and see if that solves it for you?

@karalabe
Copy link
Member

karalabe commented Jun 6, 2015

Btw, does this issue obsolete #1190 and #1191 ?

@cjphilpot
Copy link

I noticed the same thing with my node. Resetting geth seems to help and the node will eventually catch up, but after a while it falls behind and eventually stalls out. My connection is around 100KB/s. I also notice I usually have less than 3 peers and usually 1 or 2 only. My node is "Master Shake" on stats.ethdev.com.

@ethers
Copy link
Member Author

ethers commented Jun 6, 2015

This is different from #1190 (this happened after starting again from block0). I don't think there were any issues with network connection since I was doing other stuff online ok. As cjphilpot mentions, I think I restarted geth, maybe a few times, and eventually it was able to get more blocks. I check peercount when trying to fix this at the time and it was not part of the issue, otherwise I would mention the low peercount. Next time I may try "increasing this timeout in eth/downloader.go -> hashTTL to maybe 10-15 secs". IIRC in gitter, a pi2 also had this issue? (This is on a normal machine but could be helpful to know how the pi2 was resolved.)

This is different from #1191 (different node, box).

@karalabe
Copy link
Member

karalabe commented Jul 3, 2015

@ethers Did you try upgrading to current develop? It features the new sync protocol eth/61, which should be light years more stable than the old one. If it works out for you, I'll maybe close this issue. If you have issues with that though, could you open a fresh issue? This is kind of stale already.

@karalabe karalabe closed this as completed Jul 3, 2015
tony-ricciardi pushed a commit to tony-ricciardi/go-ethereum that referenced this issue Jan 20, 2022
* celo-blockchain cherry-pick from upstream: p2p: new dial scheduler (ethereum#20592)

Conflicts:
  p2p/dial.go
  p2p/server.go
  p2p/server_test.go

* p2p: new dial scheduler

This change replaces the peer-to-peer dial scheduler with a new and
improved implementation. The new code is better than the previous
implementation in two key aspects:

- The time between discovery of a node and dialing that node is
  significantly lower in the new version. The old dialState kept
  a buffer of nodes and launched a task to refill it whenever the buffer
  became empty. This worked well with the discovery interface we used to
  have, but doesn't really work with the new iterator-based discovery
  API.

- Selection of static dial candidates (created by Server.AddPeer or
  through static-nodes.json) performs much better for large amounts of
  static peers. Connections to static nodes are now limited like dynanic
  dials and can no longer overstep MaxPeers or the dial ratio.

* p2p/simulations/adapters: adapt to new NodeDialer interface

* p2p: re-add check for self in checkDial

* p2p: remove peersetCh

* p2p: allow static dials when discovery is disabled

* p2p: add test for dialScheduler.removeStatic

* p2p: remove blank line

* p2p: fix documentation of maxDialPeers

* p2p: change "ok" to "added" in static node log

* p2p: improve dialTask docs

Also increase log level for "Can't resolve node"

* p2p: ensure dial resolver is truly nil without discovery

* p2p: add "looking for peers" log message

* p2p: clean up Server.run comments

* p2p: fix maxDialedConns for maxpeers < dialRatio

Always allocate at least one dial slot unless dialing is disabled using
NoDial or MaxPeers == 0. Most importantly, this fixes MaxPeers == 1 to
dedicate the sole slot to dialing instead of listening.

* p2p: fix RemovePeer to disconnect the peer again

Also make RemovePeer synchronous and add a test.

* p2p: remove "Connection set up" log message

* p2p: clean up connection logging

We previously logged outgoing connection failures up to three times.

- in SetupConn() as "Setting up connection failed addr=..."
- in setupConn() with an error-specific message and "id=... addr=..."
- in dial() as "Dial error task=..."

This commit ensures a single log message is emitted per failure and adds
"id=... addr=... conn=..." everywhere (id= omitted when the ID isn't
known yet).

Also avoid printing a log message when a static dial fails but can't be
resolved because discv4 is disabled. The light client hit this case all
the time, increasing the message count to four lines per failed
connection.

* p2p: document that RemovePeer blocks

* les: add bootstrap nodes as initial discoveries (ethereum#20688)

* celo-blockchain addition: make static dials exempt from the maxDialPeers limit

Static peers are ones we explicitly want to connect to, and so should not be subject to this limit. This is especially important since connections between validators/proxies and other validators/proxies rely on this being so, and because that's how it was prior to the new dial scheduler from upstream.

* celo-blockchain addition: Add tests for two untested RemovePeer() scenarios

Co-authored-by: Felix Lange <[email protected]>
tony-ricciardi pushed a commit to tony-ricciardi/go-ethereum that referenced this issue Jan 20, 2022
…um#1208)

This increment was moved lower down in the function, but not removed here in the conflict resolution in ethereum#1192.
maoueh pushed a commit to streamingfast/go-ethereum that referenced this issue Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants