-
Notifications
You must be signed in to change notification settings - Fork 17
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
Panic received: "long fork detected". #147
Comments
Scrollback history: scrollback.txt |
What is "long fork"?For safety, the CKB light client will NOT rollback automatically if a fork has more than 100 blocks. So, a panic will be caused if there is a better fork, which has more than 100 blocks, was detected; and users have to handle the situation by themselves. Why "long fork detected"?With CKB binaries between version
The epoch 6765 was estimated to be started at 2023-06-25 6:50 UTC, and it was started at 2023-06-26 07:01:21 UTC in real. The 100th block in the epoch 6765 was mined in 2023-06-25 07:12:55 UTC. In your logs, "long fork detected" was happened in "2023-06-25 07:19:47". Since there are lots different version of CKB binaries, a fork chain could be existed. p.s. Some bad things were happended since epoch 6765 and a lot of transactions were pending for more than 1 hour. So, from CKB How to fix that?Since, CKB light client only caches 100 blocks before the tip block; the fork point is difficult to be found for long fork. At present, the only way to fix that, is to remove the data of CKB light client and re-sync again. |
This morning I checked on my ten v0.3.4 light clients and found that three of them have exited with the long fork error. When I checked on them yesterday they all appeared to be running fine and fully up to sync. Is this expected behavior? This seems like it would be a maintenance problem if light clients cannot stay online and require you to manually delete data files to get back online. |
it's not expected, could you upload the log here? |
I received the following error on v0.2.4 when running normally. The node has always been v0.2.4 and there has been no previous node version for the storage used. It was running without issue for several weeks. Below is the error message. A longer scrollback history will also be added.
The text was updated successfully, but these errors were encountered: