@decentnetwork/peer 0.1.121 → 0.1.122

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.
Files changed (2) hide show
  1. package/dist/peer.js +4 -1
  2. package/package.json +1 -1
package/dist/peer.js CHANGED
@@ -60,7 +60,10 @@ const DHT_MAINTENANCE_INTERVAL_MS = readEnvInt("DECENT_DHT_MAINTENANCE_INTERVAL_
60
60
  // distance-sort it feeds) without limit — which starved CCTV forwarding over time.
61
61
  const MAX_KNOWN_NODES = readEnvInt("DECENT_MAX_KNOWN_NODES", 400);
62
62
  const MAX_SELF_ANNOUNCE_TARGETS = readEnvInt("DECENT_SELF_ANNOUNCE_TARGETS", 16);
63
- const SELF_ANNOUNCE_ATTEMPTS = readEnvInt("DECENT_SELF_ANNOUNCE_ATTEMPTS", 3);
63
+ // 1 (was 3): a dead node cost attempts×ANNOUNCE_WAIT = 12s — one wave of
64
+ // dead nodes ate the entire per-cycle deadline, so the walk never got past
65
+ // wave 1 and stored on ~1 node per DAY. The 12s cycle itself is the retry.
66
+ const SELF_ANNOUNCE_ATTEMPTS = readEnvInt("DECENT_SELF_ANNOUNCE_ATTEMPTS", 1);
64
67
  // Self-announce batch size — number of step1 / step2 requests to fan out
65
68
  // at once. Toxcore's onion_client.c::do_announce keeps up to
66
69
  // MAX_ONION_CLIENTS_ANNOUNCE (12) in flight. Configurable via env.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decentnetwork/peer",
3
- "version": "0.1.121",
3
+ "version": "0.1.122",
4
4
  "description": "Pure TypeScript port of Elastos Carrier (toxcore-derived) P2P messaging. DHT, onion routing, TCP relay, FlatBuffers app payloads, Express offline relay. Wire-compatible with iOS Beagle and the Carrier C SDK.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",