No description
Find a file
Snider 31a151d23c feat(proxy): implement RFC test coverage and AX usage-example comments
Add missing Good/Bad/Ugly test triplets per RFC section 22:
- stats_test.go: OnAccept/OnReject/Tick/OnLogin/OnClose tests with
  concurrency race test and top-10 diff slot verification
- ratelimit_test.go: full Good/Bad/Ugly set including ban persistence
  and disabled-limiter edge case
- customdiff_test.go: renamed to Apply_Good/Bad/Ugly convention per RFC
- storage_test.go: full Add_Good/Bad/Ugly set including 256-slot fill,
  overflow rejection, and dead-slot reclamation via SetJob
- job_test.go: added Good/Bad/Ugly for BlobWithFixedByte, DifficultyFromTarget,
  and IsValid

Add Miner.Diff() public getter for the last difficulty sent to miner.

Add AX-compliant usage-example comments (principle 2) to all Miner
accessors, Proxy query methods, EffectiveShareDifficulty, targetFromDifficulty,
MinerSnapshot, and RateLimiter.IsActive.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-05 07:02:54 +01:00
.core/reference feat: scaffold go-proxy from RFC spec 2026-04-04 11:16:28 +01:00
api refactor(proxy): centralise monitoring API contract values 2026-04-05 03:30:40 +00:00
docs docs(rfc): add spec path aliases 2026-04-05 00:00:39 +00:00
log docs(proxy): sharpen AX usage examples 2026-04-05 02:34:53 +00:00
pool refactor(errors): add scoped proxy failures 2026-04-05 02:18:05 +00:00
splitter feat(proxy): implement RFC test coverage and AX usage-example comments 2026-04-05 07:02:54 +01:00
.gitignore feat: scaffold go-proxy from RFC spec 2026-04-04 11:16:28 +01:00
accesslog_impl.go fix(log): align access log formats with RFC 2026-04-04 22:29:00 +00:00
accesslog_test.go fix(log): align access log formats with RFC 2026-04-04 22:29:00 +00:00
api_rows.go refactor(proxy): name miner timeouts and password mask 2026-04-05 03:39:19 +00:00
CLAUDE.md feat: scaffold go-proxy from RFC spec 2026-04-04 11:16:28 +01:00
CODEX.md docs(ax): add codex conventions 2026-04-05 01:12:06 +00:00
config.go docs(proxy): tighten config comments 2026-04-05 03:22:57 +00:00
config_load_test.go fix(proxy): separate config loading from validation 2026-04-05 03:36:21 +00:00
config_test.go fix(proxy): trim mode and worker identifiers 2026-04-05 03:19:28 +00:00
configwatcher_test.go chore(proxy): clarify watcher and limiter names 2026-04-05 03:34:07 +00:00
core_impl.go feat(proxy): implement RFC test coverage and AX usage-example comments 2026-04-05 07:02:54 +01:00
customdiff_test.go feat(proxy): implement RFC test coverage and AX usage-example comments 2026-04-05 07:02:54 +01:00
customdiffstats.go docs(proxy): align AX comments 2026-04-05 02:06:24 +00:00
customdiffstats_test.go fix(proxy): classify low difficulty rejects 2026-04-05 01:26:24 +00:00
error.go refactor(errors): add scoped proxy failures 2026-04-05 02:18:05 +00:00
error_test.go refactor(errors): add scoped proxy failures 2026-04-05 02:18:05 +00:00
events.go docs(proxy): sharpen AX examples 2026-04-05 01:52:20 +00:00
go.mod fix(proxy): align config watcher with RFC 2026-04-05 01:59:28 +00:00
go.sum fix(proxy): align config watcher with RFC 2026-04-05 01:59:28 +00:00
http_auth_test.go refactor(proxy): unify monitoring auth checks 2026-04-05 03:44:35 +00:00
job.go docs(proxy): sharpen AX examples 2026-04-05 01:52:20 +00:00
job_test.go feat(proxy): implement RFC test coverage and AX usage-example comments 2026-04-05 07:02:54 +01:00
miner.go fix(reload): apply custom diff updates to active miners 2026-04-05 03:49:05 +00:00
miner_login_test.go refactor(proxy): clarify miner login callback naming 2026-04-05 03:07:41 +00:00
miner_wire_test.go fix(proxy): align miner success wire format 2026-04-04 22:17:31 +00:00
miners_document_test.go fix(api): mask miner passwords in miners document 2026-04-04 23:25:46 +00:00
proxy.go chore(proxy): clarify watcher and limiter names 2026-04-05 03:34:07 +00:00
ratelimit_test.go feat(proxy): implement RFC test coverage and AX usage-example comments 2026-04-05 07:02:54 +01:00
reload_test.go fix(reload): apply custom diff updates to active miners 2026-04-05 03:49:05 +00:00
server.go refactor(proxy): rename server TLS config field 2026-04-05 03:42:05 +00:00
sharelog_impl.go feat(proxy): wire share log events 2026-04-04 20:09:13 +00:00
sharelog_test.go feat(proxy): wire share log events 2026-04-04 20:09:13 +00:00
state_impl.go feat(proxy): implement RFC test coverage and AX usage-example comments 2026-04-05 07:02:54 +01:00
state_stop_test.go fix(proxy): drain submits before shutdown 2026-04-05 03:15:17 +00:00
state_submit_test.go fix(proxy): drain pending submits on stop 2026-04-04 20:51:14 +00:00
stats.go docs(proxy): tighten AX-oriented comments 2026-04-05 03:10:41 +00:00
stats_test.go feat(proxy): implement RFC test coverage and AX usage-example comments 2026-04-05 07:02:54 +01:00
tls_test.go fix(proxy): support OpenSSL TLS cipher aliases 2026-04-04 22:26:42 +00:00
worker.go docs(proxy): tighten AX-oriented comments 2026-04-05 03:10:41 +00:00
worker_test.go fix(proxy): apply custom diff before worker login 2026-04-04 20:56:16 +00:00