Closed whunmr closed 5 years ago
fixing this one
due to simulated slow connection, at least 3 peer were disconnected.
| => grep "disconnect timeout" ~/.bitcoincash/logs/copernicus.log
2018/12/14 15:41:35.539 [W] [syncmanager.go:244] disconnect timeout sync peer:39.108.100.122:8333
2018/12/14 16:04:15.539 [W] [syncmanager.go:244] disconnect timeout sync peer:47.52.233.52:8333
2018/12/14 16:23:55.539 [W] [syncmanager.go:244] disconnect timeout sync peer:206.189.115.28:8333
and finally started to download blocks:
| => ./coperctl getblockchaininfo | head
{
"chain": "main",
"blocks": 603,
"headers": 560767,
"bestblockhash": "0000000051654a00514d993e928b21e06c47dc16d4e289bb435ea6f7d55b357b",
"difficulty": 1,
"mediantime": 1232037121,
"verificationprogress": 1,
"pruned": false,
"chainwork": "0000000000000000000000000000000000000000000000000000025c025c025c",
will close this issue now.
Describe the bug During IBD, haven't start download block in nearly one hour, seems still syncing headers.
To Reproduce running instance from master code on testnet: https://github.com/copernet/copernicus/commit/3a07937d0a62239de752dd1bf61a9a344a4dd023
Expected behavior quickly download the headers of all block. when peer hang we should switch to other peers to download the headers.
Additional context