[BOUNTY #28] Email/SMS Alert System for Miners (75 RTC)#497
Open
xiangshangsir wants to merge 3 commits intoScottcjn:mainfrom
Open
[BOUNTY #28] Email/SMS Alert System for Miners (75 RTC)#497xiangshangsir wants to merge 3 commits intoScottcjn:mainfrom
xiangshangsir wants to merge 3 commits intoScottcjn:mainfrom
Conversation
added 3 commits
March 1, 2026 17:20
…erboard - Added onclick handler to leaderboard table rows - Clicking a machine now navigates to machine.html?id=<fingerprint_hash> - Added cursor:pointer style for better UX - Completes Hall of Fame Machine Detail Pages bounty (50 RTC) Deliverables: - web/hall-of-fame/index.html (updated with click functionality) - web/hall-of-fame/machine.html (already exists) - API endpoint /api/hall_of_fame/machine (already exists)
- Implements interactive analytics dashboard with lightweight-charts - Features: - RTC volume/metrics visualization over time - Active miners trend tracking - Epoch rewards history display - Interactive zoom/pan controls - Multiple time ranges (1D, 7D, 30D, 90D, 1Y, ALL) - Real-time epoch data from rustchain.org API - Responsive design for mobile/desktop - Tech stack: - TradingView lightweight-charts library - Vanilla JS (no build step required) - Dark theme matching RustChain design system Closes Scottcjn#26 Wallet: 0x76AD8c0bef0a99eEb761c3B20b590D60b20964Dc
## Overview Automated alert system for RustChain miners with email and SMS support. ## Alert Types -⚠️ Offline: No attestation for >1 hour - 💰 Rewards: Epoch rewards received - 🚨 Large transfers: Transfers >100 RTC threshold - ❌ Attestation failures: Hardware/software issues ## Features - Email alerts via SMTP (Gmail, Outlook, etc.) - SMS alerts via Twilio (optional) - Configurable thresholds and intervals - Rate limiting (max 10 alerts/type/24h) - Full audit trail in SQLite - HTTP API for miner preferences ## Files Added 1. tools/miner_alerts/miner_alert_system.py (550+ lines) - Main monitoring daemon - EmailSender and SMSSender classes - AlertDatabase for preferences/history - Rate limiting logic 2. tools/miner_alerts/alert_config.example.json - Configuration template 3. tools/miner_alerts/README.md - Complete documentation - API examples - Systemd service config 4. node/alert_endpoints.py - GET/POST /api/alert/preferences - GET /api/alert/history - POST /api/alert/test - GET /api/alert/stats 5. node/migrations/add_alert_tables.sql - alert_preferences table - alert_history table - alert_rate_limit table ## API Endpoints - GET /api/alert/preferences?miner_id=xxx - POST /api/alert/preferences - GET /api/alert/history?miner_id=xxx&limit=50 - POST /api/alert/test - GET /api/alert/stats ## Configuration - CHECK_INTERVAL: 300 seconds (5 minutes) - OFFLINE_THRESHOLD: 3600 seconds (1 hour) - LARGE_TRANSFER_THRESHOLD: 100 RTC - RATE_LIMIT: 10 alerts per type per 24h ## Usage Closes Scottcjn#28 Wallet: 0x76AD8c0bef0a99eEb761c3B20b590D60b20964Dc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated alert system for RustChain miners. Supports email (SMTP) and SMS (Twilio) notifications for: offline miners, rewards received, large transfers, attestation failures. Includes HTTP API for miner preferences, rate limiting, and full audit trail. Closes #28