On error, reset flag so that we dont get stuck in it

This commit is contained in:
Marco van Dijk 2022-04-30 13:52:27 +02:00
parent deaa7e5592
commit 8bd1496a01

View File

@ -1502,6 +1502,7 @@ const handleSync = async function () {
return; return;
} }
catch (err) { catch (err) {
hasError = false;
console.log("Error while syncing. Retrying in 30 seconds"); console.log("Error while syncing. Retrying in 30 seconds");
console.log("latestBlockInChain " + latestBlockInChain); console.log("latestBlockInChain " + latestBlockInChain);
console.log("lastBlockEvents " + lastBlockEvents); console.log("lastBlockEvents " + lastBlockEvents);