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

Halting finalizer, error: batch sanity check error #116

Open
kiennd opened this issue Apr 4, 2024 · 0 comments
Open

Halting finalizer, error: batch sanity check error #116

kiennd opened this issue Apr 4, 2024 · 0 comments

Comments

@kiennd
Copy link

kiennd commented Apr 4, 2024

I attempted to conduct a test involving abnormal restarts. Following several restart attempts, I encountered an error message: "Halting finalizer, error: batch sanity check error." This resulted in the halting of blocks and the suspension of all transactions.

I think the problem occurs when the system interrupts right when the process of saving the root state is being performed, resulting in the new state root not being saved to the database.
Is there any way to fix this problem?

I tested at Version: 0.6.4-cdk
error log:

2024-04-04T04:26:43.430Z        ERROR   sequencer/finalizer.go:792      halting finalizer, error: batch sanity check error. Check previous errors in logs to know which was the cause%!(EXTRA string=
/home/runner/work/cdk-validium-node/cdk-validium-node/log/log.go:142 github.com/0xPolygonHermez/zkevm-node/log.appendStackTraceMaybeArgs()
/home/runner/work/cdk-validium-node/cdk-validium-node/log/log.go:251 github.com/0xPolygonHermez/zkevm-node/log.Errorf()
/home/runner/work/cdk-validium-node/cdk-validium-node/sequencer/finalizer.go:792 github.com/0xPolygonHermez/zkevm-node/sequencer.(*finalizer).Halt()
/home/runner/work/cdk-validium-node/cdk-validium-node/sequencer/batch.go:358 github.com/0xPolygonHermez/zkevm-node/sequencer.(*finalizer).batchSanityCheck.func1()
/home/runner/work/cdk-validium-node/cdk-validium-node/sequencer/batch.go:421 github.com/0xPolygonHermez/zkevm-node/sequencer.(*finalizer).batchSanityCheck()
/home/runner/work/cdk-validium-node/cdk-validium-node/sequencer/batch.go:56 github.com/0xPolygonHermez/zkevm-node/sequencer.(*finalizer).processBatchesPendingtoCheck()
/home/runner/work/cdk-validium-node/cdk-validium-node/sequencer/finalizer.go:149 github.com/0xPolygonHermez/zkevm-node/sequencer.(*finalizer).Start()
)       {"pid": 1, "version": "0.6.4+cdk"}
github.com/0xPolygonHermez/zkevm-node/sequencer.(*finalizer).Halt
        /home/runner/work/cdk-validium-node/cdk-validium-node/sequencer/finalizer.go:792
github.com/0xPolygonHermez/zkevm-node/sequencer.(*finalizer).batchSanityCheck.func1
        /home/runner/work/cdk-validium-node/cdk-validium-node/sequencer/batch.go:358
github.com/0xPolygonHermez/zkevm-node/sequencer.(*finalizer).batchSanityCheck
        /home/runner/work/cdk-validium-node/cdk-validium-node/sequencer/batch.go:421
github.com/0xPolygonHermez/zkevm-node/sequencer.(*finalizer).processBatchesPendingtoCheck
        /home/runner/work/cdk-validium-node/cdk-validium-node/sequencer/batch.go:56
github.com/0xPolygonHermez/zkevm-node/sequencer.(*finalizer).Start
        /home/runner/work/cdk-validium-node/cdk-validium-node/sequencer/finalizer.go:149
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

1 participant