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
Virgil
6f0747abc2
fix(reload): apply custom diff updates to active miners
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-05 03:49:05 +00:00
Virgil
e1eadf705d
fix(proxy): separate config loading from validation
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-05 03:36:21 +00:00
Virgil
ea378354de
chore(proxy): clarify watcher and limiter names
2026-04-05 03:34:07 +00:00
Virgil
82b2375058
fix(proxy): trim mode and worker identifiers
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-05 03:19:28 +00:00
Virgil
af96bfce94
docs: align public API comments with AX guidance
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-05 02:58:56 +00:00
Virgil
ee128e944d
fix(proxy): make config watcher restartable
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-05 02:50:55 +00:00
Virgil
30ff013158
docs(proxy): sharpen AX usage examples
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-05 02:34:53 +00:00
Virgil
be47d7afde
fix(proxy): align config and login parsing with rfc
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-05 02:31:37 +00:00
Virgil
0a7c99264b
refactor(errors): add scoped proxy failures
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-05 02:18:05 +00:00
Virgil
35db5f6840
docs(proxy): sharpen AX usage examples
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-05 02:12:55 +00:00
Virgil
8a52856719
fix(proxy): reject configs without enabled pools
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-05 02:09:46 +00:00
Virgil
356eb9cec1
fix(proxy): use mtime-based config watching
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-05 02:04:03 +00:00
Virgil
cbde021d0c
docs(proxy): align AX comments
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-05 02:01:38 +00:00
Virgil
f2f7dfed75
fix(proxy): align config watcher with RFC
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-05 01:59:28 +00:00
Virgil
ce3b7a50cd
fix(proxy): use filesystem config watcher
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-05 01:56:36 +00:00
Virgil
b9b3c47b4c
docs(proxy): align public comments with AX
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-05 01:30:08 +00:00
Virgil
3cd0909d74
feat(proxy): add share sink fanout
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-05 01:08:23 +00:00
Virgil
d0ae26a1a2
Align difficulty math with RFC
2026-04-05 01:05:00 +00:00
Virgil
d8b4bf2775
refactor(proxy): clarify internal helper naming
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-05 00:52:34 +00:00
Virgil
eabe9b521d
fix(proxy): harden hot-reload config access
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-05 00:45:39 +00:00
Virgil
8ad123ecab
refactor(proxy): improve splitter registry naming
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-05 00:36:29 +00:00
Virgil
55d44df9c2
Use effective custom diff in share accounting
2026-04-05 00:32:43 +00:00
Virgil
9d2b1f368c
docs(proxy): align API comments with AX
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-05 00:28:03 +00:00
Virgil
cf4136c8f0
docs(proxy): align public comments with AX
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-05 00:18:05 +00:00
Virgil
a76e6be1c7
docs(proxy): align public entry points with AX examples
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-05 00:07:27 +00:00
Virgil
7a48e479ec
docs(proxy): align public docs with AX examples
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 23:54:23 +00:00
Virgil
34f95071d9
fix(proxy): align difficulty conversion with RFC examples
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 23:36:55 +00:00
Virgil
e2bd10c94f
docs(proxy): sharpen AX usage examples
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 23:28:35 +00:00
Virgil
619b3c500d
refactor(proxy): isolate event bus panics
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 23:16:18 +00:00
Virgil
8a321e2467
docs(proxy): align public helpers with AX examples
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 23:13:43 +00:00
Virgil
167ecc2bdc
refactor(proxy): clarify agent-facing names
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 23:10:35 +00:00
Virgil
2b8bba790c
refactor(proxy): align login flow with RFC order
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 22:13:10 +00:00
Virgil
cfd669e4d2
refactor(proxy): clarify config parameter names
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 22:09:58 +00:00
Virgil
6422a948bf
refactor(proxy): clarify runtime config naming
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 22:06:18 +00:00
Virgil
a79b35abaf
Improve public API usage examples
2026-04-04 21:58:37 +00:00
Virgil
6d6934f37b
fix(proxy): resolve login custom diff during handshake
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 21:39:58 +00:00
Virgil
9028334d49
Implement miner target capping and RFC line limits
2026-04-04 21:08:28 +00:00
Virgil
ce7d3301fc
refactor(proxy): clarify config path naming
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 20:53:49 +00:00
Virgil
86c07943b0
fix(proxy): align watcher and HTTP payloads
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 20:45:37 +00:00
Virgil
d47d89af7a
Fix submit job validation and custom diff fallback
2026-04-04 20:28:54 +00:00
Virgil
3efa7f34d0
docs(proxy): add AX usage examples to lifecycle APIs
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 20:12:26 +00:00
Virgil
bc67e73ca0
fix(proxy): tighten listener and limiter lifecycle
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 18:49:03 +00:00
Virgil
64443c41f6
feat(proxy): fill RFC login and watch gaps
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 18:25:36 +00:00
Virgil
7f44596858
fix(proxy): validate config and reload pools
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 18:19:09 +00:00
Virgil
a38dfc18ec
feat(proxy): implement RFC surface
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 10:29:02 +00:00