Problem: A mapped autonomous system and an unmapped IPv6 /32 can share an address group, so the node treats unrelated peers as part of the same network when selecting connections.
A node started with -asmap=2026-09-asmap.dat can also silently select the embedded map.
Fix: Give mapped autonomous systems their own group tag. Nodes using ASMap rebucket stored peers once on upgrade or downgrade across this change.
- Load digit-leading filenames from disk.
-asmap,-asmap=and-asmap=1still select the embedded map.-asmap=2now names a file. - Report failed path lookups as missing files, and directories or read failures as invalid maps.
- Require a new destination for
exportasmap. A repeated export is cheap to regenerate, but exporting over a custom map silently changes what the node loads on restart. Callers reusing a path must first move or remove the file. Original overwrite rationale - Fix the
decode --nonoverlappingdocumentation and help text, and describe howdiff_addrsgroups peers by their old and new AS assignments.
I batched these fixes because I don't have the bandwidth to maintain several ASMap PRs. Feel free to carve out and merge individual commits. The ASMap optimizations can be merged independently.