@leofcoin/chain 1.7.100 → 1.7.102
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 +1 -7
- package/exports/chain.js +1 -7
- package/package.json +2 -2
package/exports/browser/chain.js
CHANGED
|
@@ -5315,7 +5315,7 @@ class ConnectionMonitor {
|
|
|
5315
5315
|
#peerReconnectAttempts = {};
|
|
5316
5316
|
#maxReconnectAttempts = 10;
|
|
5317
5317
|
#reconnectDelay = 5000;
|
|
5318
|
-
#healthCheckInterval =
|
|
5318
|
+
#healthCheckInterval = 60000;
|
|
5319
5319
|
#version;
|
|
5320
5320
|
// event handlers to remove later
|
|
5321
5321
|
#onOnline = null;
|
|
@@ -5370,8 +5370,6 @@ class ConnectionMonitor {
|
|
|
5370
5370
|
this.#checkInterval = setInterval(() => {
|
|
5371
5371
|
this.#healthCheck();
|
|
5372
5372
|
}, this.#healthCheckInterval);
|
|
5373
|
-
// Initial health check
|
|
5374
|
-
this.#healthCheck();
|
|
5375
5373
|
}
|
|
5376
5374
|
stop() {
|
|
5377
5375
|
if (!this.#isMonitoring)
|
|
@@ -5623,10 +5621,6 @@ class ConnectionMonitor {
|
|
|
5623
5621
|
async #attemptReconnection() {
|
|
5624
5622
|
console.warn('⚠️ Attempting to reconnect to peers...');
|
|
5625
5623
|
try {
|
|
5626
|
-
// gentle restore: if peernet supports start(), try that first
|
|
5627
|
-
if (globalThis.peernet?.start) {
|
|
5628
|
-
await globalThis.peernet.start();
|
|
5629
|
-
}
|
|
5630
5624
|
// attempt targeted reconnection for disconnected peers sequentially (avoid racing WebRTC state)
|
|
5631
5625
|
const disconnected = this.disconnectedPeers;
|
|
5632
5626
|
for (const p of disconnected) {
|
package/exports/chain.js
CHANGED
|
@@ -1461,7 +1461,7 @@ class ConnectionMonitor {
|
|
|
1461
1461
|
#peerReconnectAttempts = {};
|
|
1462
1462
|
#maxReconnectAttempts = 10;
|
|
1463
1463
|
#reconnectDelay = 5000;
|
|
1464
|
-
#healthCheckInterval =
|
|
1464
|
+
#healthCheckInterval = 60000;
|
|
1465
1465
|
#version;
|
|
1466
1466
|
// event handlers to remove later
|
|
1467
1467
|
#onOnline = null;
|
|
@@ -1516,8 +1516,6 @@ class ConnectionMonitor {
|
|
|
1516
1516
|
this.#checkInterval = setInterval(() => {
|
|
1517
1517
|
this.#healthCheck();
|
|
1518
1518
|
}, this.#healthCheckInterval);
|
|
1519
|
-
// Initial health check
|
|
1520
|
-
this.#healthCheck();
|
|
1521
1519
|
}
|
|
1522
1520
|
stop() {
|
|
1523
1521
|
if (!this.#isMonitoring)
|
|
@@ -1769,10 +1767,6 @@ class ConnectionMonitor {
|
|
|
1769
1767
|
async #attemptReconnection() {
|
|
1770
1768
|
console.warn('⚠️ Attempting to reconnect to peers...');
|
|
1771
1769
|
try {
|
|
1772
|
-
// gentle restore: if peernet supports start(), try that first
|
|
1773
|
-
if (globalThis.peernet?.start) {
|
|
1774
|
-
await globalThis.peernet.start();
|
|
1775
|
-
}
|
|
1776
1770
|
// attempt targeted reconnection for disconnected peers sequentially (avoid racing WebRTC state)
|
|
1777
1771
|
const disconnected = this.disconnectedPeers;
|
|
1778
1772
|
for (const p of disconnected) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leofcoin/chain",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.102",
|
|
4
4
|
"description": "Official javascript implementation",
|
|
5
5
|
"private": false,
|
|
6
6
|
"exports": {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@rollup/plugin-typescript": "^12.1.4",
|
|
56
56
|
"@types/semver": "^7.7.0",
|
|
57
57
|
"@vandeurenglenn/debug": "^1.2.6",
|
|
58
|
-
"rollup": "^4.46.
|
|
58
|
+
"rollup": "^4.46.4",
|
|
59
59
|
"rollup-plugin-modify": "^3.0.0",
|
|
60
60
|
"tape": "^5.9.0",
|
|
61
61
|
"tslib": "^2.8.1"
|