Setup a NOMP pool for MonetrayUnit on CentOS

in #mining8 years ago

HI Guys

Login as <user>
Open Terminal
# sudo yum install epel-release
# sudo yum install nodejs npm redis
# sudo systemctl start redis.service
# sudo systemctl status redis.service
    If redis is running
sudo systemctl enable redis.service
# redis-cli ping
    If redis returns "PONG" everthing is fine.
# cd
# git clone https://github.com/zone117x/node-open-mining-portal.git nomp
# cd nomp
# npm update
# cp config_example.json config.json
    The default settings are perfectly fine but feel free to edit them. A detailed description is available at https://github.com/zone117x/node-open-mining-portal
# cd coins
# cp quarkcoin.json monetaryunit.json
# nano monetaryunit.json
    Change name to "Monetary Unit"
    Change symbol to "MUE"
    Save & Exit
# cd ..
# cd pool_configs
# cp litecoin_example.json mue.json
# nano mue.json
    Set "enabled" to true
    Set "coint" to monetaryunit.json
    Set "address" to your wallet address where block rewards are given
    Set "rewardRecipients" to something you want. This is where pool fees are going
    Set "paymentProcessing" to the values you need
    I set "minimumPayment" to 0.01 and configured the values for the daemon (=the wallet running on this system the port, user and passwort needs to match your rpc settings)
    Now you need to configure the "ports" settings. You can configure as many or as less port you like.
    The important thing is that the diff should be changed to a very low value or your miner never will hit.
    In my opinion this is bug for ever algorithm that is not sha256 but it hasn't changed till now and most likely never will be.
    I configured to ports like this to get some hits. You need to experiment a bit. These values are not perfect but it's a good start.

"3008": {
   "diff": 0.000001
},
"3032": {
    "diff": 0.0001,
    "varDiff": {
      "minDiff": 0.000001,
      "maxDiff": 1,
      "targetTime": 15,
      "retargetTime": 90,
      "variancePercent": 30
   }
} 

    Set the "daemons" settings to the same value above.
    Set "p2p" "enabled" to false
    Save & Exit
#cd ..
#sudo node init.json
Basic setup is running and working know. From know on you are on your own.