Mining/cmd/mining/cmd
snider 1351dc7562 fix: Address race conditions and network blocking issues
Critical fixes:
- Release mutex before HTTP calls in GetStats() to prevent blocking
- Fix m.cmd race between Stop() and Wait() goroutine by capturing locally
- Add context support to GetStats() for proper request cancellation

High priority fixes:
- Add existence check in collectMinerStats() before operating on miners
- Add mutex-protected httpClient getter/setter for thread-safe test mocking

Changes:
- Miner interface now requires context.Context for GetStats()
- Stats HTTP requests timeout after 5 seconds (was 30s client default)
- All callers updated to pass context (service uses request context)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 01:55:24 +00:00
..
doctor.go feat: Enhance mining configuration management and API documentation 2025-12-07 16:26:18 +00:00
install.go feat: Enhance mining configuration management and API documentation 2025-12-07 16:26:18 +00:00
list.go adds miner-cli, a miner management and lifecycle tool 2025-11-09 01:02:31 +00:00
node.go feat: Implement logging functionality for miners with log buffer and retrieval endpoint 2025-12-29 22:10:45 +00:00
peer.go feat: Add multi-node P2P mining management system 2025-12-29 19:49:33 +00:00
remote.go feat: Add multi-node P2P mining management system 2025-12-29 19:49:33 +00:00
root.go Complete Go 1.24 package with CLI, tests, and configuration 2025-11-08 16:52:16 +00:00
serve.go fix: Address race conditions and network blocking issues 2025-12-31 01:55:24 +00:00
start.go fix: Address critical security and concurrency issues 2025-12-31 00:50:06 +00:00
status.go fix: Address race conditions and network blocking issues 2025-12-31 01:55:24 +00:00
stop.go adds miner-cli, a miner management and lifecycle tool 2025-11-09 01:02:31 +00:00
uninstall.go feat: Enhance mining configuration management and API documentation 2025-12-07 16:26:18 +00:00
update.go adds miner-cli, a miner management and lifecycle tool 2025-11-09 01:02:31 +00:00