pool worker individual addresses
This commit is contained in:
@@ -17,7 +17,14 @@
|
|||||||
# Start mining pool
|
# Start mining pool
|
||||||
./MINE/rin/start_mining_pool.sh
|
./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
|
./cpuminer -a rinhash -o stratum+tcp://YOUR_IP:3333 -u username.workername -p x
|
||||||
```
|
```
|
||||||
**Result**: Block rewards distributed among all miners based on shares
|
**Result**: Block rewards distributed among all miners based on shares
|
||||||
|
|||||||
@@ -63,6 +63,14 @@ echo "- Real-time statistics"
|
|||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
echo "After it starts, miners can connect with:"
|
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 "./cpuminer -a rinhash -o stratum+tcp://YOUR_IP:3333 -u username.workername -p x"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Press Ctrl+C to stop the pool"
|
echo "Press Ctrl+C to stop the pool"
|
||||||
|
|||||||
69
MINE/rin/test_pool_connections.sh
Normal file
69
MINE/rin/test_pool_connections.sh
Normal 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."
|
||||||
Reference in New Issue
Block a user