When an error happens during the synchronization process, the intermediate state reset makes the hermez node to get stuck in an infinite error loop.
Expected Behavior
Reset both databases to the same batch/block and continue to sync.
Steps to Reproduce
Configure your node to use this roll up SC: https://goerli.etherscan.io/address/0xf08a226B67a8A9f99cCfCF51c50867bc18a54F53
The batch 32717 has an error and will cause the sync process to fail, this will trigger the intermediate state reset. After the reset is executed the node will be stuck with an error similar to this:
We suspect the intermediate state reset is not resetting the state properly in both databases, looks like the StateDB is getting behind to the HistoryDB, and this is causing the DBs to be out of sync.
Summary of Bug
When an error happens during the synchronization process, the intermediate state reset makes the hermez node to get stuck in an infinite error loop.
Expected Behavior
Reset both databases to the same batch/block and continue to sync.
Steps to Reproduce
Configure your node to use this roll up SC: https://goerli.etherscan.io/address/0xf08a226B67a8A9f99cCfCF51c50867bc18a54F53 The batch 32717 has an error and will cause the sync process to fail, this will trigger the intermediate state reset. After the reset is executed the node will be stuck with an error similar to this:
System information
v1.7.0
Linux/OSX
Additional Information:
We suspect the intermediate state reset is not resetting the state properly in both databases, looks like the StateDB is getting behind to the HistoryDB, and this is causing the DBs to be out of sync.