pool worker individual addresses

This commit is contained in:
Dobromir Popov
2025-09-02 12:04:16 +03:00
parent 8bdf9bf9eb
commit 0c8e4989e4
3 changed files with 85 additions and 1 deletions

View File

@@ -17,7 +17,14 @@
# Start mining pool
./MINE/rin/start_mining_pool.sh
# Miners connect with:
# Miners connect with their RinCoin addresses:
# Option 1: Address as username
./cpuminer -a rinhash -o stratum+tcp://YOUR_IP:3333 -u rin1qahvvv9d5f3443wtckeqavwp9950wacxfmwv20q -p x
# Option 2: Address.workername format
./cpuminer -a rinhash -o stratum+tcp://YOUR_IP:3333 -u rin1qahvvv9d5f3443wtckeqavwp9950wacxfmwv20q.worker1 -p x
# Option 3: Traditional username (rewards to pool address)
./cpuminer -a rinhash -o stratum+tcp://YOUR_IP:3333 -u username.workername -p x
```
**Result**: Block rewards distributed among all miners based on shares

View File

@@ -63,6 +63,14 @@ echo "- Real-time statistics"
echo ""
echo "After it starts, miners can connect with:"
echo ""
echo "Option 1: Address as username"
echo "./cpuminer -a rinhash -o stratum+tcp://YOUR_IP:3333 -u rin1qahvvv9d5f3443wtckeqavwp9950wacxfmwv20q -p x"
echo ""
echo "Option 2: Address.workername format"
echo "./cpuminer -a rinhash -o stratum+tcp://YOUR_IP:3333 -u rin1qahvvv9d5f3443wtckeqavwp9950wacxfmwv20q.worker1 -p x"
echo ""
echo "Option 3: Traditional username (rewards to pool address)"
echo "./cpuminer -a rinhash -o stratum+tcp://YOUR_IP:3333 -u username.workername -p x"
echo ""
echo "Press Ctrl+C to stop the pool"

View File

@@ -0,0 +1,69 @@
#!/bin/bash
# Test different mining pool connection methods
echo "=== Testing Mining Pool Connection Methods ==="
echo ""
# Kill any existing processes
./MINE/rin/kill_stratum_proxy.sh
echo "🚀 Starting mining pool..."
./MINE/rin/start_mining_pool.sh &
POOL_PID=$!
echo ""
echo "⏳ Waiting for pool to start..."
sleep 5
echo ""
echo "🧪 Testing different connection methods:"
echo ""
echo "1⃣ Test 1: Address as username"
echo "Command: ./cpuminer -a rinhash -o stratum+tcp://127.0.0.1:3333 -u rin1qahvvv9d5f3443wtckeqavwp9950wacxfmwv20q -p x -t 2"
echo "Expected: Pool should recognize this as a RinCoin address"
echo ""
echo "2⃣ Test 2: Address.workername format"
echo "Command: ./cpuminer -a rinhash -o stratum+tcp://127.0.0.1:3333 -u rin1qahvvv9d5f3443wtckeqavwp9950wacxfmwv20q.worker1 -p x -t 2"
echo "Expected: Pool should recognize address and worker separately"
echo ""
echo "3⃣ Test 3: Traditional username"
echo "Command: ./cpuminer -a rinhash -o stratum+tcp://127.0.0.1:3333 -u user.worker -p x -t 2"
echo "Expected: Pool should use default pool address for rewards"
echo ""
echo "📊 Pool Status:"
echo "Web Dashboard: http://127.0.0.1:8080"
echo "Pool Address: rin1qahvvv9d5f3443wtckeqavwp9950wacxfmwv20q"
echo ""
echo "Press Enter to run test 1..."
read
echo "Running Test 1..."
timeout 10s ./cpuminer -a rinhash -o stratum+tcp://127.0.0.1:3333 -u rin1qahvvv9d5f3443wtckeqavwp9950wacxfmwv20q -p x -t 2
echo ""
echo "Press Enter to run test 2..."
read
echo "Running Test 2..."
timeout 10s ./cpuminer -a rinhash -o stratum+tcp://127.0.0.1:3333 -u rin1qahvvv9d5f3443wtckeqavwp9950wacxfmwv20q.worker1 -p x -t 2
echo ""
echo "Press Enter to run test 3..."
read
echo "Running Test 3..."
timeout 10s ./cpuminer -a rinhash -o stratum+tcp://127.0.0.1:3333 -u user.worker -p x -t 2
echo ""
echo "🧹 Cleaning up..."
kill $POOL_PID 2>/dev/null
./MINE/rin/kill_stratum_proxy.sh
echo ""
echo "✅ Test complete! Check the pool logs above to see how each connection was handled."