Mining/pkg/node
snider b24a3f00d6 fix: Add timeouts, atomic writes, and thread safety improvements
- Add 30s context timeout for database transactions in hashrate.go
- Add helper function for parsing SQLite timestamps with error logging
- Implement atomic file writes (temp + rename) for profile_manager.go,
  config_manager.go, and peer.go to prevent corruption on crash
- Add 5s timeout for stats collection per miner in manager.go
- Add 5s timeout for stdin writes in miner.go
- Clean up config file on failed miner start in xmrig_start.go
- Implement debounced saves (5s) for peer registry to reduce disk I/O
- Fix CheckInstallation data race in xmrig.go and ttminer.go by adding
  proper mutex protection around shared field updates
- Add 10s handshake timeout for WebSocket connections in transport.go
- Update peer_test.go to call Close() before reload to flush changes

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 02:55:30 +00:00
..
bundle.go feat: Add multi-node P2P mining management system 2025-12-29 19:49:33 +00:00
bundle_test.go feat: Add multi-node P2P mining management system 2025-12-29 19:49:33 +00:00
controller.go fix: Address networking, memory leak, and segfault issues from code review 2025-12-31 02:26:46 +00:00
identity.go feat: Add multi-node P2P mining management system 2025-12-29 19:49:33 +00:00
identity_test.go feat: Add multi-node P2P mining management system 2025-12-29 19:49:33 +00:00
message.go feat: Add multi-node P2P mining management system 2025-12-29 19:49:33 +00:00
message_test.go feat: Add multi-node P2P mining management system 2025-12-29 19:49:33 +00:00
peer.go fix: Add timeouts, atomic writes, and thread safety improvements 2025-12-31 02:55:30 +00:00
peer_test.go fix: Add timeouts, atomic writes, and thread safety improvements 2025-12-31 02:55:30 +00:00
transport.go fix: Add timeouts, atomic writes, and thread safety improvements 2025-12-31 02:55:30 +00:00
worker.go feat: Implement logging functionality for miners with log buffer and retrieval endpoint 2025-12-29 22:10:45 +00:00
worker_test.go feat: Implement logging functionality for miners with log buffer and retrieval endpoint 2025-12-29 22:10:45 +00:00