Skip to content

Tutorial: Setting up NOMP for MPOS usage

Matthew Little edited this page May 7, 2014 · 1 revision

Hello! Welcome to the quick, easy guide to setting up NOMP as a MPOS stratum server, a replacement for python-stratum! Now updated for changes to NOMP's Payment Processing! It's not as hard as you may think!

First things first!

A few commands to get started (note: all commands assume you are root):

  git clone https://github.com/zone117x/node-open-mining-portal
  cd node-open-mining-portal
  cp config_example.json config.json
  nano config.json

Find the line that looks like this:

    "website": {
         "enabled": true,

Change true to false, as we will be using MPOS for the frontend Save config.json,

The next command needs modification according to which coin(s) you are setting up NOMP for:

nano coins/**MYCOINNAME**.json

inside of yourcoin.json, put the following

{
     "name": "**MYCOIN**",
     "symbol": "**MYC**",
     "algorithm": "scrypt", //or "sha256", "scrypt-jane", "scrypt-n", "quark", "x11"
     "txMessages": false, //or true (not required, defaults to false)
     "mposDiffMultiplier": 256, //only for x11 or quark coins in mpos mode, set to 256 (optional)
 }

For additional documentation how to configure coins (especially important for scrypt-n and scrypt-jane coins) see these instructions.

Almost there!

Some more commands! Again, these require modification

 cp pool_configs/litecoin_example.json **MYCOIN**.json
 nano pool_configs/**MYCOIN**.json

Find the following line:

 "address": "somerandomaddresshere",

Change that address to your coins address!

Find the following lines:

"rewardRecipients": {
        "n37vuNFkXfk15uFnGoVyHZ6PYQxppD3QqK": 1.5,
        "mirj3LtZxbSTharhtXvotqtJXUY7ki5qfx": 0.5,
        "22851477d63a085dbc2398c8430af1c09e7343f6": 0.1
    },

Delete the first two options because those are just example recipient addresses. But leave the third one for 0.1% of your mined coins to go towards the NOMP developers who work very hard to create this software :)

Now find the next line we need to change:

"paymentProcessing": {
        "enabled": true,

Change this to false Now to our next line! Isn't configuration fun?

   "mposMode": {
        "enabled": false,

And you guessed it! Change this to true!

Now! Our next thing you MAY want to change, is the stratum ports; these can be found under

    "ports": {

I suggest changing port 3032 to 3333, which MPOS sets as the default in its configuration

The last thing to change is the daemons, Find these at the lines:

 "daemons": [
         {
             "host": "127.0.0.1",
             "port": 19332,
             "user": "litecoinrpc",
             "password": "testnet"
         }
     ],

Change these to the appropriate settings for your coins RPC info.

Go down a bit, find

   "p2p": {
        "enabled": true,

And disable that!

Congratulations!

You can now start up your stratum with the following command:

node init.js