nebulasio / go-nebulas

Official Go implementation of the Nebulas protocol.
https://nebulas.io
GNU Lesser General Public License v3.0
711 stars 203 forks source link

mainnet sync error #209

Closed shenyaqi9527 closed 4 years ago

shenyaqi9527 commented 4 years ago
time="2020-03-27T13:13:30+08:00" level=info msg="Get Chunk at 2 times." file=sync_task.go func="sync.(*Task).checkChainGetChunkTimeout" line=391 syncPointBlockHash=5cab5ae11ba230bbb367c049f1f2d3c71e67291d0536e7575925b7eb120193a9 syncPointBlockHeight=4166977
time="2020-03-27T13:13:30+08:00" level=warning msg="Found unlinked ancestor." block="{\"height\": 4184560, \"hash\": \"457b075c616f8db3c7e8abc2fbbb4191ca3c051aa5bef6c22f9b3ef707f36f19\", \"parent_hash\": \"c19a373e40ef0ba94fe2b703a6c0b39dc2210cc150a6cc3e13358a65c0e41ea5\", \"acc_root\": \"fc024e6e3a832a07a8049d7251d69ea0b7c4fe2380e36cd2234916ffbeaf5521\", \"timestamp\": 1585285995, \"tx\": 0, \"miner\": \"n1ddAZUq15XKFZVFWPW5YTEAnFLEeFBcEMo\", \"random\": \"/vrf_seed/1f3e614ea8c4cc887a7049f94630d412d811d380ef4dd89497dc0642a507a665/vrf_proof/9c97f0a840f65277e110a5167af0bafe0904c34fd4fa5da7a49857fe72dd671176cb486a1def7a9c1f7c959b2485850bf25ebe1f990960e88a2cd87f43136fa4048a5ef777401fcbbe2df6af8c9c1db455200ed908a58b4e719c8be0f1e16348a08ba9325bb4f38ee28fefcc81c852925f261a72c47217b8805310a969ed53105a\"}" file=block_pool.go func="core.(*BlockPool).push" line=418
time="2020-03-27T13:13:40+08:00" level=info msg="Get Chunk at 3 times." file=sync_task.go func="sync.(*Task).checkChainGetChunkTimeout" line=391 syncPointBlockHash=5cab5ae11ba230bbb367c049f1f2d3c71e67291d0536e7575925b7eb120193a9 syncPointBlockHeight=4166977
time="2020-03-27T13:13:40+08:00" level=info msg="Failed to verify state." actual=7356b26d0eee7ee761752de3a30f696954cdabd4ac86717f3dca5c5cc9effd14 expect=790661a4c4a9ba230bdb7dbe5c63d33bb5cc5ec6a2b8f8536089cc342ad38f46 file=block.go func="core.(*Block).verifyState" line=1005
time="2020-03-27T13:13:40+08:00" level=error msg="Failed to execute block." block="{\"height\": 4167000, \"hash\": \"a486e85d39cfe6058630efb24f8ab8db163a6ae3e1003ba8c9d26d3d9ba3300f\", \"parent_hash\": \"51ebecf1725797de2fb8bd5b8c23d36939f8f11e642a4a634537d0e2784a8b66\", \"acc_root\": \"790661a4c4a9ba230bdb7dbe5c63d33bb5cc5ec6a2b8f8536089cc342ad38f46\", \"timestamp\": 1585022595, \"tx\": 0, \"miner\": \"n1X1JvGnddRNSuNVotoUZZ4q3mM9jau58gu\", \"random\": \"/vrf_seed/e61fa0e02ebc17413e9ac1dd77af69c50c0e81a2d8e53a46bf0bb18244e01682/vrf_proof/2b7f3a3b2bd9be5ad0f5e1aeec5c3e64951854b2e2bdd3cb4fa9642f7115fd50f03eed08a8ad9588d0c0dc9b3af7fe8a4659cdfa24e7bed2eaca8e53fbaa302d0465b814b186911a8bf9acf5977aa3c9c4481e21fdf6c8141c9baabc08d1a30838bbb1ad4c78527602a1ea8539a90460f1e6063c91c71065390496f7b68b7af416\"}" err="invalid block state root hash" file=block_pool.go func="core.(*linkedBlock).travelToLinkAndReturnAllValidBlocks" line=609
time="2020-03-27T13:13:41+08:00" level=warning msg="Failed to send message to peer." err="stream closed" file=stream.go func="net.(*Stream).Write" line=248 stream="Peer Stream: QmQK7W8wrByJ6So7rf84sZzKBxMYmc1i4a7JZsne93ysz5,/ip4/34.198.52.191/tcp/8680"
time="2020-03-27T13:13:45+08:00" level=warning msg="Found unlinked ancestor." block="{\"height\": 4184561, \"hash\": \"909fe9736191cd6c51207a7a0db3ffcb89acada6c9a6f3b5f0ed2605ee334d85\", \"parent_hash\": \"457b075c616f8db3c7e8abc2fbbb4191ca3c051aa5bef6c22f9b3ef707f36f19\", \"acc_root\": \"4166673838896a342608de7bf9e25a0e5e1e83e9dc29be765c39b99023eeb025\", \"timestamp\": 1585286010, \"tx\": 0, \"miner\": \"n1F4toCqFe8ZTKQzsKUyndoBJLDaZuVPKGD\", \"random\": \"/vrf_seed/1b59b270d36c2f0709a3c677480b107701a12869fdb06ce298a8247b9ce2d829/vrf_proof/731492a51d8f65af9a7f4dcb2b418160a5e2abc267eb97cf72e2da31db5702fd52b65a225b67b3e605c6a40171617fd93d58ad5ba0663c6cfb7294a82165127d04b25d36ab3b323441b8e1b462ed3f21c5828eb0713ee99d39412d6c2daed1f6a79e1f5905298a14822da37a3cd23b7fc484a0e2c235101ef04dafca056cf46f18\"}" file=block_pool.go func="core.(*BlockPool).push" line=418
time="2020-03-27T13:13:50+08:00" level=info msg="Get Chunk at 4 times." file=sync_task.go func="sync.(*Task).checkChainGetChunkTimeout" line=391 syncPointBlockHash=5cab5ae11ba230bbb367c049f1f2d3c71e67291d0536e7575925b7eb120193a9 syncPointBlockHeight=4166977
time="2020-03-27T13:14:00+08:00" level=warning msg="Found unlinked ancestor." block="{\"height\": 4184562, \"hash\": \"5e652be81e45dc6c31091a87644c8de6d42f5eae8488c478fcc80f863e0a2d4b\", \"parent_hash\": \"909fe9736191cd6c51207a7a0db3ffcb89acada6c9a6f3b5f0ed2605ee334d85\", \"acc_root\": \"437dab65bf6db975f2c2690ab5223f6b96a5e8c21437bd4d4a971785082a0d61\", \"timestamp\": 1585286025, \"tx\": 0, \"miner\": \"n1Fh8LTrct89N6AhRxpvdQwhqJi1k2PyPpt\", \"random\": \"/vrf_seed/831f1ed5e58d0e00dade8512560c8da64ca85139e80827e60e28a251c9ba9ab7/vrf_proof/038bb644cb918c14288254525bb1c22c159c512cfac98173a5647e87a6ee10336183c72b6c7b338d1dc12295e647df4b369dfbcb81053e437af05cfee29c7df7044b356663f5c17c2f4b55bdfa96d078f11edda7440834229b143241a6bf28d49ae3c0157078269f608ecfacb6d232d1abf256e1a78bb4c31b37b493aa1ef502be\"}" file=block_pool.go func="core.(*BlockPool).push" line=418
time="2020-03-27T13:14:00+08:00" level=info msg="Get Chunk at 5 times." file=sync_task.go func="sync.(*Task).checkChainGetChunkTimeout" line=391 syncPointBlockHash=5cab5ae11ba230bbb367c049f1f2d3c71e67291d0536e7575925b7eb120193a9 syncPointBlockHeight=4166977
time="2020-03-27T13:14:10+08:00" level=info msg="Get Chunk at 6 times." file=sync_task.go func="sync.(*Task).checkChainGetChunkTimeout" line=391 syncPointBlockHash=5cab5ae11ba230bbb367c049f1f2d3c71e67291d0536e7575925b7eb120193a9 syncPointBlockHeight=4166977
time="2020-03-27T13:14:10+08:00" level=info msg="Failed to verify state." actual=7356b26d0eee7ee761752de3a30f696954cdabd4ac86717f3dca5c5cc9effd14 expect=790661a4c4a9ba230bdb7dbe5c63d33bb5cc5ec6a2b8f8536089cc342ad38f46 file=block.go func="core.(*Block).verifyState" line=1005
time="2020-03-27T13:14:10+08:00" level=error msg="Failed to execute block." block="{\"height\": 4167000, \"hash\": \"a486e85d39cfe6058630efb24f8ab8db163a6ae3e1003ba8c9d26d3d9ba3300f\", \"parent_hash\": \"51ebecf1725797de2fb8bd5b8c23d36939f8f11e642a4a634537d0e2784a8b66\", \"acc_root\": \"790661a4c4a9ba230bdb7dbe5c63d33bb5cc5ec6a2b8f8536089cc342ad38f46\", \"timestamp\": 1585022595, \"tx\": 0, \"miner\": \"n1X1JvGnddRNSuNVotoUZZ4q3mM9jau58gu\", \"random\": \"/vrf_seed/e61fa0e02ebc17413e9ac1dd77af69c50c0e81a2d8e53a46bf0bb18244e01682/vrf_proof/2b7f3a3b2bd9be5ad0f5e1aeec5c3e64951854b2e2bdd3cb4fa9642f7115fd50f03eed08a8ad9588d0c0dc9b3af7fe8a4659cdfa24e7bed2eaca8e53fbaa302d0465b814b186911a8bf9acf5977aa3c9c4481e21fdf6c8141c9baabc08d1a30838bbb1ad4c78527602a1ea8539a90460f1e6063c91c71065390496f7b68b7af416\"}" err="invalid block state root hash" file=block_pool.go func="core.(*linkedBlock).travelToLinkAndReturnAllValidBlocks" line=609

@qywang2012

qywang2012 commented 4 years ago

The synchronization service does not find a usable node in the connected node and continues to synchronously look up the previous block.