You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.error(`There was an error trying to get the tx data/events in block: ${this.currentBlockNumber}. Attempt ${attempts} of ${this.params.retryOnErrorAttempts}.`);
146
-
if(this.isStarted){
147
-
this.timer=setTimeout(()=>{
148
-
if(this.isStarted){
149
-
this.check();
150
-
}
151
-
},this.checkEveryMilliseconds);
152
-
}
153
143
}else{
154
144
consterrorMessages=`There was an error trying to get the tx data/events in block: ${this.currentBlockNumber}`;
155
145
this.emit(MONITOR_EVENTS.error,`${errorMessages}: ${error.message}\nMoving forward with the next block ${this.currentBlockNumber+1}...`);
156
146
console.error(errorMessages,error);
157
147
this.currentBlockNumber++;
158
148
}
159
-
149
+
}finally{
150
+
if(this.isStarted){
151
+
this.timer=setTimeout(()=>{
152
+
if(this.isStarted){
153
+
this.check();
154
+
}
155
+
},this.params.checkEveryMilliseconds);
156
+
}
160
157
}
161
158
}
162
159
@@ -208,12 +205,14 @@ class LiveMonitor extends EventEmitter {
0 commit comments