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
Copy file name to clipboardExpand all lines: packages/core/src/lib/lit-core.ts
+7-9Lines changed: 7 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -404,7 +404,7 @@ export class LitCore {
404
404
return{
405
405
socketAddress: urlWithoutProtocol,
406
406
407
-
// FIXME: This is a placeholder value, we need to get the actual value from the contract
407
+
// FIXME: This is a placeholder value. Brendon said: It's not used anymore in the nodes, but leaving it as we may need it in the future.
408
408
value: 1,
409
409
};
410
410
});
@@ -699,11 +699,9 @@ export class LitCore {
699
699
awaitPromise.race([
700
700
newPromise((_resolve,reject)=>{
701
701
timeoutHandle=setTimeout(()=>{
702
-
constmsg=`Error: Could not handshake with nodes after timeout of ${
703
-
this.config.connectTimeout
704
-
}ms. Could only connect to ${Object.keys(serverKeys).length} of ${
705
-
this.config.bootstrapUrls.length
706
-
} 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.`;
707
705
708
706
try{
709
707
thrownewInitError({},msg);
@@ -1031,8 +1029,8 @@ export class LitCore {
1031
1029
this._epochCache.currentNumber&&
1032
1030
this._epochCache.startTime&&
1033
1031
Math.floor(Date.now()/1000)<
1034
-
this._epochCache.startTime+
1035
-
Math.floor(EPOCH_PROPAGATION_DELAY/1000)&&
1032
+
this._epochCache.startTime+
1033
+
Math.floor(EPOCH_PROPAGATION_DELAY/1000)&&
1036
1034
this._epochCache.currentNumber>=3// FIXME: Why this check?
0 commit comments