proxy fix
This commit is contained in:
45
MINE/rin/view_mining_log.sh
Normal file
45
MINE/rin/view_mining_log.sh
Normal file
@@ -0,0 +1,45 @@
|
||||
#!/bin/bash
|
||||
|
||||
# View RinCoin Mining Log
|
||||
# Shows the latest mining activity and wallet balance
|
||||
|
||||
LOG_FILE="mining_log.txt"
|
||||
|
||||
if [ ! -f "$LOG_FILE" ]; then
|
||||
echo "❌ Mining log file '$LOG_FILE' not found!"
|
||||
echo "Make sure the stratum proxy has been started at least once."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "=== RinCoin Mining Log Viewer ==="
|
||||
echo ""
|
||||
|
||||
# Show last 20 lines of the log
|
||||
echo "📊 Recent Activity (last 20 entries):"
|
||||
echo "----------------------------------------"
|
||||
tail -20 "$LOG_FILE"
|
||||
|
||||
echo ""
|
||||
echo "💰 Current Wallet Balance:"
|
||||
echo "----------------------------------------"
|
||||
grep "Wallet Balance:" "$LOG_FILE" | tail -1 || echo "No balance logged yet"
|
||||
|
||||
echo ""
|
||||
echo "🎉 Total Blocks Found:"
|
||||
echo "----------------------------------------"
|
||||
grep -c "HASH FOUND!" "$LOG_FILE" || echo "0"
|
||||
|
||||
echo ""
|
||||
echo "📈 Total Mining Time:"
|
||||
echo "----------------------------------------"
|
||||
if grep -q "Started:" "$LOG_FILE"; then
|
||||
START_TIME=$(grep "Started:" "$LOG_FILE" | head -1 | cut -d' ' -f2-3)
|
||||
echo "Started: $START_TIME"
|
||||
echo "Current: $(date '+%Y-%m-%d %H:%M:%S')"
|
||||
else
|
||||
echo "Start time not available"
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "📝 Full log available at: $LOG_FILE"
|
||||
echo "🔄 To watch live updates: tail -f $LOG_FILE"
|
Reference in New Issue
Block a user