From 0c8e4989e408974593eaacf6c86c634443c945fc Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Tue, 2 Sep 2025 12:04:16 +0300 Subject: [PATCH] pool worker individual addresses --- MINE/rin/README.md | 9 +++- MINE/rin/start_mining_pool.sh | 8 ++++ MINE/rin/test_pool_connections.sh | 69 +++++++++++++++++++++++++++++++ 3 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 MINE/rin/test_pool_connections.sh diff --git a/MINE/rin/README.md b/MINE/rin/README.md index e95deb9..09aa17b 100644 --- a/MINE/rin/README.md +++ b/MINE/rin/README.md @@ -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 diff --git a/MINE/rin/start_mining_pool.sh b/MINE/rin/start_mining_pool.sh index 466401b..a24f9ed 100644 --- a/MINE/rin/start_mining_pool.sh +++ b/MINE/rin/start_mining_pool.sh @@ -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" diff --git a/MINE/rin/test_pool_connections.sh b/MINE/rin/test_pool_connections.sh new file mode 100644 index 0000000..8d22208 --- /dev/null +++ b/MINE/rin/test_pool_connections.sh @@ -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."