Makefile: add "canned-gossmap" target
What changed, and why it matters
This commit adds a new Makefile build target called 'canned-gossmap' that helps developers create compressed test data files from a local gossip store. It is purely a developer tooling/test-data generation helper and does not change any runtime code, network behavior, or security-sensitive logic.
No security action required. This is a benign build/test helper addition.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch appends one Makefile target: ‘canned-gossmap’. It depends on devtools/gossmap-compress and, when invoked, reads /tmp/gossip_store, produces a dated compressed gossip-store file plus a node-map file under tests/data/, xz-compresses the node-map, and lists the resulting files. No source code, binaries, protocol handling, or configuration defaults are modified.
Changed components
MakefileInspect captured patch +3 / −0
diff --git a/Makefile b/Makefile
index 97983e6a..fd6c8aa7 100644
--- a/Makefile
+++ b/Makefile
@@ -1156,6 +1156,9 @@ ccan-rune-rune.o: $(CCANDIR)/ccan/rune/rune.c
ccan-rune-coding.o: $(CCANDIR)/ccan/rune/coding.c
@$(call VERBOSE, "cc $<", $(CC) $(CFLAGS) -c -o $@ $<)
+canned-gossmap: devtools/gossmap-compress
+ DATE=`date +%Y-%m-%d` && devtools/gossmap-compress compress --output-node-map /tmp/gossip_store tests/data/gossip-store-$$DATE.compressed > tests/data/gossip-store-$$DATE-node-map && xz -9 tests/data/gossip-store-$$DATE-node-map && ls -l tests/data/gossip-store-$$DATE*
+
print-binary-sizes: $(ALL_PROGRAMS) $(ALL_TEST_PROGRAMS) $(BIN_PROGRAMS)
@echo User programs:
@size -t $(PKGLIBEXEC_PROGRAMS) $(filter-out tools/reckless,$(BIN_PROGRAMS)) $(PLUGINS)
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.