mit-dci / lit

Lightning Network node software
MIT License
551 stars 119 forks source link

Fast blocks breaks reorg code in testnet #306

Open Varunram opened 6 years ago

Varunram commented 6 years ago
2018/08/03 21:31:55.377431 full block out of order error
2018/08/03 21:31:55.377517 full block out of order error
2018/08/03 21:31:55.378679 full block out of order error
2018/08/03 21:31:55.378806 full block out of order error
2018/08/03 21:31:55.378962 full block out of order error

and

2018/08/03 17:58:37.904062 478 bytes received
2018/08/03 17:58:37.904215 got 2 headers. Range:
ad665239408ac6b9adc0e76b67d5128feb8797ae89db26184b81e23985f4b111 - ceda5710dcdf1f2b148151cf76c6fc925246d1ca203d8cbdba1a126964963c14
2018/08/03 17:58:37.904304 header file position: 10682160
2018/08/03 17:58:37.904371 made 4033 header slice
2018/08/03 17:58:37.920546 Got unknown message type sendheaders
2018/08/03 17:58:37.920692 got 1 addresses.
2018/08/03 17:58:37.922745 Added 2 headers OK.
2018/08/03 17:58:37.922844 got header tip height 133529
2018/08/03 17:58:37.923746 get headers message has 18 header hashes, first one is ceda5710dcdf1f2b148151cf76c6fc925246d1ca203d8cbdba1a126964963c14
2018/08/03 17:58:37.929389 got 0 headers, we're probably synced up
2018/08/03 17:58:37.929558 blockTip to 133527 headerTip 133529
2018/08/03 17:58:37.929637 will request blocks 133528 to 133529
2018/08/03 17:58:37.935790 ingested full block ad665239408ac6b9adc0e76b67d5128feb8797ae89db26184b81e23985f4b111 height 133528 OK
2018/08/03 17:58:37.937211 ingested full block ceda5710dcdf1f2b148151cf76c6fc925246d1ca203d8cbdba1a126964963c14 height 133529 OK
2018/08/03 17:58:37.937337 got header tip height 133529
2018/08/03 17:58:37.937535 get headers message has 18 header hashes, first one is ceda5710dcdf1f2b148151cf76c6fc925246d1ca203d8cbdba1a126964963c14
2018/08/03 17:58:37.942622 got 0 headers, we're probably synced up
2018/08/03 17:58:37.942777 blockTip to 133529 headerTip 133529
2018/08/03 17:58:37.942877 no blocks to request, entering wait state
2018/08/03 17:58:37.942904 1104 bytes received
2018/08/03 17:58:38.306072 Get http://ipv6.myexternalip.com/raw: dial tcp [2a01:4f8:d13:16c1::2]:80: connect: network is unreachable
2018/08/03 17:58:38.523226 Listening on [::]:2448
2018/08/03 17:58:38.523244 Listening with ln address: ln1up6k8vxt7vjqcnyzq08e5w6gv8ckr466fcswl3 
2018/08/03 17:58:38.523280 no peer 
2018/08/03 17:58:40.945782 got inv.  Contains:
2018/08/03 17:58:40.945968     0)MSG_BLOCK : 000000000000ba67d5ac4f69479683d5b115c24f184282a41a90231596101c2e
2018/08/03 17:58:40.946043 inv block but ignoring; not synced
2018/08/03 17:58:40.946076 got inv.  Contains:
2018/08/03 17:58:40.946113     0)MSG_BLOCK : 00000000000099510381738f5a9c0a99c8bef1e047ad7786dd643421b3171b0d
2018/08/03 17:58:40.946152 inv block but ignoring; not synced
2018/08/03 17:58:40.946190 got inv.  Contains:
2018/08/03 17:58:40.946231     0)MSG_BLOCK : 000000000000b67bf7ab426bed9d13e50bf99e3b3f5766689c05b43c19167181
2018/08/03 17:58:40.946284 inv block but ignoring; not synced
2018/08/03 17:58:40.946316 got inv.  Contains:
2018/08/03 17:58:40.946362     0)MSG_BLOCK : 000000000003552961afb08bff6f778e33d16ff2725fd5c8b08349f2d2fb8c91
2018/08/03 17:58:40.946446 inv block but ignoring; not synced
2018/08/03 17:58:40.946573 got 2000 headers. Range:
00000000000c5df1fca7f70bac277087b70e0bcd78d98d04cd81a64d72ae372f - 000000000000c3efd856e8b77e13fa8700f76731050475983c5f26b38d82b094
2018/08/03 17:58:40.954582 header file position: 8064240
2018/08/03 17:58:40.954695 made 2017 header slice
2018/08/03 17:58:40.990229 Header 00000000000c5df1fca7f70bac277087b70e0bcd78d98d04cd81a64d72ae372f attaches at height 1356767
2018/08/03 17:58:40.996795 reorg from height 1356771 to 1358767
2018/08/03 17:58:40.996919 Header error: Block 1356772 00000000000c5df1fca7f70bac277087b70e0bcd78d98d04cd81a64d72ae372f incorrect difficulty.  Read 1d00f78e, expect 1d00ffff
2018/08/03 17:58:41.902221 got inv.  Contains:
2018/08/03 17:58:41.902242     0)MSG_BLOCK : 000000000001b8f070571e4fd45cc165b4275dc3e503541fedb32c0cd7a5317b
2018/08/03 17:58:41.902245 inv block but ignoring; not synced
2018/08/03 17:58:42.713614 got inv.  Contains:
2018/08/03 17:58:42.713636     0)MSG_BLOCK : 0000000000007913083a17671980f348e2574b6a4bdafbcfe4560cad1888f30f
2018/08/03 17:58:42.713639 inv block but ignoring; not synced
2018/08/03 17:58:43.117232 got inv.  Contains:
delbonis commented 5 years ago

Is this still an issue?

delbonis commented 5 years ago

Oops, didn't mean to close this.