mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-04-03 19:55:53 +00:00
autoLearnHopNodes was creating stub 'repeater' entries in the nodes table for every unresolved hop prefix. With hash_size=1, this generated thousands of phantom nodes (6,638 fake repeaters on a ~300-node mesh). Root cause fix: - autoLearnHopNodes no longer calls db.upsertNode() for unresolved hops - Hop prefixes are still cached to avoid repeated DB lookups - Unresolved hops display as raw hex via hop-resolver (no behavior change) Cleanup: - Added db.removePhantomNodes() — deletes nodes with public_key <= 16 chars (real MeshCore pubkeys are 64 hex chars / 32 bytes) - Called at server startup to purge existing phantoms Tests: 14 new assertions in test-db.js (109 total, all passing) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
32 KiB
32 KiB