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
// FIXME: This is a placeholder value, we need to get the actual value from the contract
408
+
value: 1,
409
+
};
410
+
});
411
+
412
+
returnnodeSet;
413
+
};
414
+
390
415
/**
391
416
* Stops internal listeners/polling that refresh network state and watch for epoch changes.
392
417
* Removes global objects created internally
@@ -674,11 +699,9 @@ export class LitCore {
674
699
awaitPromise.race([
675
700
newPromise((_resolve,reject)=>{
676
701
timeoutHandle=setTimeout(()=>{
677
-
constmsg=`Error: Could not handshake with nodes after timeout of ${
678
-
this.config.connectTimeout
679
-
}ms. Could only connect to ${Object.keys(serverKeys).length} of ${
680
-
this.config.bootstrapUrls.length
681
-
} nodes. Please check your network connection and try again. Note that you can control this timeout with the connectTimeout config option which takes milliseconds.`;
702
+
constmsg=`Error: Could not handshake with nodes after timeout of ${this.config.connectTimeout
703
+
}ms. Could only connect to ${Object.keys(serverKeys).length} of ${this.config.bootstrapUrls.length
704
+
} nodes. Please check your network connection and try again. Note that you can control this timeout with the connectTimeout config option which takes milliseconds.`;
682
705
683
706
try{
684
707
thrownewInitError({},msg);
@@ -1006,8 +1029,8 @@ export class LitCore {
1006
1029
this._epochCache.currentNumber&&
1007
1030
this._epochCache.startTime&&
1008
1031
Math.floor(Date.now()/1000)<
1009
-
this._epochCache.startTime+
1010
-
Math.floor(EPOCH_PROPAGATION_DELAY/1000)&&
1032
+
this._epochCache.startTime+
1033
+
Math.floor(EPOCH_PROPAGATION_DELAY/1000)&&
1011
1034
this._epochCache.currentNumber>=3// FIXME: Why this check?
0 commit comments