Mining/pkg/mining
Claude 74ebda333d
Some checks failed
Test / test (push) Has been cancelled
Security Scan / security (push) Has been cancelled
ax(mining): rename mu to mutex in SettingsManager
AX Principle 1 — predictable names over short names. The mu field
requires context to understand; mutex is self-describing.

Co-Authored-By: Charon <charon@lethean.io>
2026-04-02 14:19:36 +01:00
..
component feat: Implement logging functionality for miners with log buffer and retrieval endpoint 2025-12-29 22:10:45 +00:00
auth.go ax(mining): rename abbreviated variables b and h to randomBytes and digest in auth.go 2026-04-02 09:46:32 +01:00
auth_test.go ax(mining): rename cfg to authConfig in auth_test.go 2026-04-02 13:05:33 +01:00
bufpool.go ax(mining): replace prose comment with usage example on bufferPool 2026-04-02 12:58:24 +01:00
circuit_breaker.go ax(mining): remove prose comment that restates the ErrCircuitOpen declaration 2026-04-02 12:30:31 +01:00
circuit_breaker_test.go ax(mining): rename wg to waitGroup in circuit breaker concurrency test 2026-04-02 13:27:05 +01:00
component.go ax(mining): replace prose comment with usage example on GetComponentFS 2026-04-02 10:07:18 +01:00
config_manager.go ax(mining): rename cfg to configuration in DatabaseConfig field comments 2026-04-02 14:16:17 +01:00
container.go ax(mining): rename Container.mu to mutex (AX Principle 1) 2026-04-02 14:03:42 +01:00
container_test.go chore: migrate module path from github.com to forge.lthn.ai 2026-02-22 21:39:01 +00:00
dual_mining_test.go fix: Comprehensive code hardening from 4-domain Opus review 2025-12-31 14:33:30 +00:00
errors.go ax(mining): add usage example comments to MiningError builder methods 2026-04-02 13:39:31 +01:00
errors_test.go ax(mining): remove banned errors import from errors_test.go 2026-04-02 14:10:49 +01:00
events.go ax(mining): rename mu to mutex in EventHub for AX Principle 1 compliance 2026-04-02 13:55:00 +01:00
events_test.go feat: Add context propagation, state sync, and tests 2025-12-31 10:10:39 +00:00
file_utils.go feat: Add API authentication and comprehensive code review fixes 2025-12-31 14:07:26 +00:00
lethean.go ax(mining): replace prose-description comments with usage examples in lethean.go 2026-04-02 12:49:24 +01:00
lethean_test.go feat(mining): add Lethean pool presets + ProgPoWZ profiles 2026-04-02 07:22:48 +01:00
manager.go ax(mining): replace prose comment with usage example on ShutdownTimeout 2026-04-02 14:05:00 +01:00
manager_interface.go feat: Enhance mining configuration management and API documentation 2025-12-07 16:26:18 +00:00
manager_race_test.go test: Add race condition tests and fix AVG float64 scan bug 2025-12-31 11:07:29 +00:00
manager_test.go ax(mining): replace prose comments with usage examples in manager_test.go 2026-04-02 13:47:00 +01:00
metrics.go ax(mining): replace prose struct comments with usage examples in metrics.go 2026-04-02 13:08:54 +01:00
miner.go ax(mining): replace prose comment on BaseMiner with usage example 2026-04-02 14:18:10 +01:00
miner_factory.go ax(mining): replace prose comments with usage examples in miner_factory 2026-04-02 13:30:49 +01:00
miner_factory_test.go refactor: Add MinerFactory to centralize miner instantiation 2025-12-31 11:12:33 +00:00
mining.go ax(mining): replace prose struct comments with usage examples 2026-04-02 13:11:10 +01:00
mining_profile.go ax(mining): replace prose type comments with usage examples in mining_profile.go 2026-04-02 13:15:17 +01:00
mining_test.go ax(mining): rename mining_test.go functions to TestFilename_Function_{Good,Bad,Ugly} convention 2026-04-02 11:49:07 +01:00
node_service.go ax(mining): rename abbreviated locals nm/pr to nodeManager/peerRegistry in NewNodeService 2026-04-02 14:13:17 +01:00
profile_manager.go ax(mining): replace pm abbreviation with profileManager in usage-example comments 2026-04-02 14:02:17 +01:00
profile_manager_test.go test: Add comprehensive profile_manager_test.go (TEST-CRIT-2) 2025-12-31 15:20:00 +00:00
ratelimiter.go ax(mining): rename RateLimiter.mu to mutex; fix prose comment to usage example 2026-04-02 12:02:14 +01:00
ratelimiter_test.go ax(mining): rename ratelimiter tests to TestFilename_Function_{Good,Bad,Ugly} pattern 2026-04-02 09:43:12 +01:00
repository.go ax(mining): rename mu to mutex in FileRepository (AX Principle 1) 2026-04-02 13:40:56 +01:00
repository_test.go test: Add error path unit tests for context cancellation and cleanup 2025-12-31 13:04:20 +00:00
service.go ax(mining): replace prose comment on ServiceStartup with usage example 2026-04-02 14:09:37 +01:00
service_test.go ax(mining): rename service_test.go functions to TestFilename_Function_Good convention 2026-04-02 11:44:00 +01:00
settings_manager.go ax(mining): rename mu to mutex in SettingsManager 2026-04-02 14:19:36 +01:00
settings_manager_test.go ax(mining): rename settings_manager tests to Good/Bad/Ugly convention 2026-04-02 10:23:40 +01:00
simulated_miner.go ax(mining): replace prose comments with usage examples in simulated_miner.go 2026-04-02 10:28:07 +01:00
stats_collector.go ax(mining): remove banned fmt import from stats_collector 2026-04-02 12:47:06 +01:00
stats_collector_test.go feat: Add API authentication and comprehensive code review fixes 2025-12-31 14:07:26 +00:00
supervisor.go ax(mining): rename receiver s to supervisor on TaskSupervisor (AX Principle 1) 2026-04-02 13:50:53 +01:00
syslog_unix.go chore: migrate module path from github.com to forge.lthn.ai 2026-02-22 21:39:01 +00:00
syslog_windows.go chore: migrate module path from github.com to forge.lthn.ai 2026-02-22 21:39:01 +00:00
throttle_test.go fix: Comprehensive code hardening from 4-domain Opus review 2025-12-31 14:33:30 +00:00
ttminer.go ax(mining): rename mu to mutex in BaseMiner and LogBuffer (AX Principle 1) 2026-04-02 13:59:06 +01:00
ttminer_start.go ax(mining): rename mu to mutex in BaseMiner and LogBuffer (AX Principle 1) 2026-04-02 13:59:06 +01:00
ttminer_stats.go ax(mining): replace banned errors import with domain error constructors 2026-04-02 14:00:08 +01:00
version.go ax(mining): replace prose comments with usage examples in version.go 2026-04-02 12:43:09 +01:00
xmrig.go ax(mining): replace prose comments with usage examples on HTTP client accessors 2026-04-02 14:11:58 +01:00
xmrig_gpu_test.go fix: Comprehensive code hardening from 4-domain Opus review 2025-12-31 14:33:30 +00:00
xmrig_start.go ax(mining): rename mu to mutex in BaseMiner and LogBuffer (AX Principle 1) 2026-04-02 13:59:06 +01:00
xmrig_stats.go ax(mining): replace banned errors import with domain error constructors 2026-04-02 14:00:08 +01:00
xmrig_test.go Fix test failures and unused imports after combining PRs 2026-02-02 06:12:37 +00:00