|
41 | 41 |
|
42 | 42 | GOFLAGS ?= |
43 | 43 |
|
44 | | -.PHONY: build test lint e2e build-all clean clean-all fmt vet tidy sync-templates sync-schemas snapshot-schema-baseline update-render-golden refresh-builder-pins docs man cover vuln bootstrap-go |
| 44 | +.PHONY: build test lint e2e build-all clean clean-all fmt vet tidy sync-templates sync-schemas snapshot-schema-baseline update-render-golden docs man cover vuln bootstrap-go build-replay install-replay |
45 | 45 |
|
46 | 46 | ## bootstrap-go: Download + verify the project-local Go toolchain |
47 | 47 | ## (idempotent; safe to re-run; no-op if already current) |
@@ -164,9 +164,17 @@ update-render-golden: $(GO_BOOTSTRAP) |
164 | 164 | TROND_UPDATE_GOLDEN=1 $(GO) test -run TestRenderHOCON_Golden ./internal/render/ |
165 | 165 | @echo "render golden files refreshed under internal/render/testdata/golden/." |
166 | 166 |
|
167 | | -## refresh-builder-pins: Re-resolve Eclipse Temurin tags → sha256 digests |
168 | | -## and rewrite internal/build/pins/builder_image_digests.json. |
169 | | -## Run at trond release-prep so the binary ships current |
170 | | -## digests. Requires docker + jq on PATH. spec/002 FR-012. |
171 | | -refresh-builder-pins: |
172 | | - @./scripts/refresh-builder-pins.sh |
| 167 | +## build-replay: Build the tools/replay binary into bin/replay. |
| 168 | +## replay is a standalone Go binary (no java-tron source |
| 169 | +## dependency) that streams mainnet historical transactions |
| 170 | +## from TronGrid to a private chain over HTTP. See |
| 171 | +## tools/replay/README.md and tools/replay/IMPROVEMENTS.md. |
| 172 | +build-replay: $(GO_BOOTSTRAP) |
| 173 | + @mkdir -p bin |
| 174 | + $(GO) build -ldflags "$(LDFLAGS)" -o bin/replay ./tools/replay |
| 175 | + @echo "✓ bin/replay built" |
| 176 | + |
| 177 | +## install-replay: Build + copy bin/replay into $(GOBIN). |
| 178 | +install-replay: build-replay |
| 179 | + cp bin/replay $(GOBIN)/replay |
| 180 | + @echo "✓ replay installed at $(GOBIN)/replay" |
0 commit comments