jtgrassie / monero-pool

A Monero mining pool server written in C
BSD 3-Clause "New" or "Revised" License
345 stars 125 forks source link

Question: Have I configured the pool correctly? #60

Closed jasmerah1966 closed 3 years ago

jasmerah1966 commented 3 years ago

Hi, a few days ago I setting up my pool following the README.md guide. Pool and Monero daemon run as expected. But I keep wondering have I configured my pool correctly?

monerod command:

monerod --rpc-bind-ip 127.0.0.1 --detach --prune-blockchain --block-notify '/usr/bin/pkill -USR1 monero-pool'

Monero Wallet CLI command:

monero-wallet-rpc --rpc-bind-port 18084 --password-file ~/wallet_pass --wallet-file pool_wallet --disable-rpc-login --trusted-daemon --detach

pool.conf :

...
rpc-host = 127.0.0.1
rpc-port = 18081
wallet-rpc-host = 127.0.0.1
wallet-rpc-port = 18084
rpc-timeout = 30
idle-timeout = 300
pool-wallet = 46dxxxxf <=  this is wallet address I bind on monero-wallet-rpc command above
pool-fee-wallet = 45xxxxV
...

This is the respond from Wallet RPC get_address method:

 curl http://127.0.0.1:18084/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"get_address","params":{"account_index":0,"address_index":[0]}}' -H 'Content-Type: application/json'
{
  "id": "0",
  "jsonrpc": "2.0",
  "result": {
    "address": "46dxxxxf",
    "addresses": [{
      "address": "46dxxxxf",
      "address_index": 0,
      "label": "Primary account",
      "used": false
    }]
  }
}

monerod status: not mining

Height: 2302897/2302897 (100.0%) on mainnet, not mining, net hash 2.10 GH/s, v14, 12(out)+74(in) connections, uptime 8d 2h 58m 58s

I found warning to set setup-background-mining 1 on monero-wallet-rpc.log

Background mining not enabled. Run "set setup-background-mining 1" in monero-wallet-cli to change.

Question:

  1. Do I need to set monerod and monero-wallet-cli to mining state?
  2. The monerod is listen on port 18080 (public), 18081 (localhost), 18082 (localhost). Do I need to open firewall port 18080 used by monerod publicly on my pool?

Thank you before.

jtgrassie commented 3 years ago
  1. No.
  2. No.