@leofcoin/chain 1.7.105 → 1.7.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/exports/browser/chain.js +7 -8
- package/exports/chain.js +7 -8
- package/package.json +1 -1
package/exports/browser/chain.js
CHANGED
|
@@ -5405,14 +5405,13 @@ class ConnectionMonitor {
|
|
|
5405
5405
|
const connectedPeers = this.connectedPeers;
|
|
5406
5406
|
const compatiblePeers = this.compatiblePeers;
|
|
5407
5407
|
console.log(`🔍 Health check: ${connectedPeers.length} connected, ${compatiblePeers.length} compatible`);
|
|
5408
|
-
if (connectedPeers.length === 0) {
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
}
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
}
|
|
5408
|
+
// if (connectedPeers.length === 0) {
|
|
5409
|
+
// console.warn('⚠️ No peer connections detected')
|
|
5410
|
+
// await this.#attemptReconnection()
|
|
5411
|
+
// } else if (compatiblePeers.length === 0) {
|
|
5412
|
+
// console.warn('⚠️ No compatible peers found')
|
|
5413
|
+
// await this.#attemptReconnection()
|
|
5414
|
+
// }
|
|
5416
5415
|
// Publish connection status
|
|
5417
5416
|
globalThis.pubsub?.publish('connection-status', {
|
|
5418
5417
|
connected: connectedPeers.length,
|
package/exports/chain.js
CHANGED
|
@@ -1551,14 +1551,13 @@ class ConnectionMonitor {
|
|
|
1551
1551
|
const connectedPeers = this.connectedPeers;
|
|
1552
1552
|
const compatiblePeers = this.compatiblePeers;
|
|
1553
1553
|
console.log(`🔍 Health check: ${connectedPeers.length} connected, ${compatiblePeers.length} compatible`);
|
|
1554
|
-
if (connectedPeers.length === 0) {
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
}
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
}
|
|
1554
|
+
// if (connectedPeers.length === 0) {
|
|
1555
|
+
// console.warn('⚠️ No peer connections detected')
|
|
1556
|
+
// await this.#attemptReconnection()
|
|
1557
|
+
// } else if (compatiblePeers.length === 0) {
|
|
1558
|
+
// console.warn('⚠️ No compatible peers found')
|
|
1559
|
+
// await this.#attemptReconnection()
|
|
1560
|
+
// }
|
|
1562
1561
|
// Publish connection status
|
|
1563
1562
|
globalThis.pubsub?.publish('connection-status', {
|
|
1564
1563
|
connected: connectedPeers.length,
|