miner readme, cmds
This commit is contained in:
67
rin/QUICK_REFERENCE.md
Normal file
67
rin/QUICK_REFERENCE.md
Normal file
@@ -0,0 +1,67 @@
|
||||
# RinCoin Mining Quick Reference
|
||||
|
||||
## 🚀 **Quick Commands:**
|
||||
|
||||
### **Solo Mining (All Rewards to You)**
|
||||
```bash
|
||||
# Start solo mining proxy
|
||||
./MINE/rin/start_stratum_proxy.sh
|
||||
|
||||
# Connect miner
|
||||
./cpuminer -a rinhash -o stratum+tcp://127.0.0.1:3333 -u user -p pass -t 28
|
||||
```
|
||||
|
||||
### **Mining Pool (Distribute Rewards)**
|
||||
```bash
|
||||
# Start mining pool
|
||||
./MINE/rin/start_mining_pool.sh
|
||||
|
||||
# Miners connect
|
||||
./cpuminer -a rinhash -o stratum+tcp://YOUR_IP:3333 -u username.workername -p x
|
||||
```
|
||||
|
||||
### **Cleanup**
|
||||
```bash
|
||||
# Kill proxy/pool processes
|
||||
./MINE/rin/kill_stratum_proxy.sh
|
||||
```
|
||||
|
||||
## 📊 **What Each Does:**
|
||||
|
||||
| Command | Purpose | Rewards | Miners |
|
||||
|---------|---------|---------|--------|
|
||||
| `start_stratum_proxy.sh` | Solo mining | 100% to you | Single |
|
||||
| `start_mining_pool.sh` | Pool mining | Distributed | Multiple |
|
||||
|
||||
## 🌐 **Web Dashboard (Pool Only)**
|
||||
- **URL**: `http://YOUR_IP:8080`
|
||||
- **Features**: Stats, miners, blocks, hashrate
|
||||
|
||||
## ⚡ **Quick Test**
|
||||
```bash
|
||||
# Test solo mining
|
||||
./MINE/rin/start_stratum_proxy.sh &
|
||||
sleep 5
|
||||
./cpuminer -a rinhash -o stratum+tcp://127.0.0.1:3333 -u user -p pass -t 4
|
||||
|
||||
|
||||
|
||||
## Check wallets
|
||||
|
||||
# First, check available wallets and load one if needed
|
||||
curl -u rinrpc:745ce784d5d537fc06105a1b935b7657903cfc71a5fb3b90 -d '{"jsonrpc":"1.0","id":"1","method":"listwalletdir","params":[]}' -H 'content-type: text/plain;' http://127.0.0.1:9556/
|
||||
|
||||
# Load wallet (replace "main" with your wallet name)
|
||||
curl -u rinrpc:745ce784d5d537fc06105a1b935b7657903cfc71a5fb3b90 -d '{"jsonrpc":"1.0","id":"1","method":"loadwallet","params":["main"]}' -H 'content-type: text/plain;' http://127.0.0.1:9556/
|
||||
|
||||
# Total received by your address
|
||||
curl -u rinrpc:745ce784d5d537fc06105a1b935b7657903cfc71a5fb3b90 -d '{"jsonrpc":"1.0","id":"1","method":"getreceivedbyaddress","params":["rin1qahvvv9d5f3443wtckeqavwp9950wacxfmwv20q",0]}' -H 'content-type: text/plain;' http://127.0.0.1:9556/
|
||||
|
||||
# Wallet balance
|
||||
curl -u rinrpc:745ce784d5d537fc06105a1b935b7657903cfc71a5fb3b90 -d '{"jsonrpc":"1.0","id":"1","method":"getbalance","params":[]}' -H 'content-type: text/plain;' http://127.0.0.1:9556/
|
||||
|
||||
# Recent transactions
|
||||
curl -u rinrpc:745ce784d5d537fc06105a1b935b7657903cfc71a5fb3b90 -d '{"jsonrpc":"1.0","id":"1","method":"listtransactions","params":[]}' -H 'content-type: text/plain;' http://127.0.0.1:9556/
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user