Skip to content
A NOMP based stratum for the Komodo platform
Branch: master
Clone or download
webworker01 Disablecb (#19)
* add disablcb mode (#18)

* Make a bit easier

* change to my stratum fork

* try first go with reward recipents active, debug.

* revert wtf

* try again

* forgot print of sendmany

* wtf

* fix

* fixed pool payouts. Now works for disablecb option as normal. Template now enables payment processor by default. gencfg.sh script can take a coin as $1, run wihtout it will use assetchains.json.

* remoce debug prints

* fix

* update with new changes for disablecb

* change to use jl777 FSM branch KMD

* Whitespace

* Revert dependency and template change

* Fix readme and coins template
Latest commit a1af0da Apr 14, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
Old READEM update Jul 27, 2018
libs Disablecb (#19) Apr 14, 2019
scripts
website fix alt tag for homepage image Feb 2, 2019
.gitignore remove some files not needed for other websites Feb 1, 2019
LICENSE
README.md
coins.template Disablecb (#19) Apr 14, 2019
config_example.json Update config_example.json Dec 24, 2018
gencfg.sh Disablecb (#19) Apr 14, 2019
init.js Update logger for for network stats Sep 2, 2018
package-lock.json add newest package-lock.json Dec 15, 2018
package.json sapling for node-stratum-pool is now in master Dec 13, 2018
poolconfigs.template Add trackShares template example Sep 2, 2018

README.md

Mining stratum for Komodo and Komodo assetchains.

Requirements

Differences between this and Z-NOMP

  • This is meant for Komodo mining
  • Founders, Treasury, and other ZEC/ZEN specific stuff is removed

Upgrade

Please be sure to backup your ./coins and ./pool_configs directory before upgrading

Kill your running pool (CTRL-C)

cd knomp
git pull
npm install
npm start

Install Daemon

Some initial setup

# The following packages are needed to build both Komodo and this stratum:
sudo apt-get update
sudo apt-get install build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool ncurses-dev unzip git python python-zmq zlib1g-dev wget libcurl4-openssl-dev bsdmainutils automake curl libboost-dev libboost-system-dev libsodium-dev jq redis-server nano -y

Now, let's build Komodo

git clone https://github.com/jl777/komodo -b dev
cd komodo
zcutil/fetch-params.sh
zcutil/build.sh -j8
strip src/komodod
strip src/komodo-cli

Now, let's run the assets. This will start ALL of the assets might take a day or so to sync, depending on system speed/network connection.

If you are setting up a single chain to mine and/or don't know what pubkey is, skip this step and use the startup params for the komodod daemon as provided by the individual coin's team.

cd ~/komodo/src
./assetchains

Install Pool

Once all the chains you want on your pool have synced up we can configure the stratum.

We need node and npm installed

cd ~
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -

Now, let's build our stratum and run it. This will install the pool and configure it for all the assetchains on your system automatically. It must be run from the same user as the coin deamons were launched, as it pulls the rpcuser/pass from the conf file in the home directory.

git clone https://github.com/webworker01/knomp
cd knomp
npm install
cp config_example.json config.json (and configure it)
nano gencfg.sh

Edit line 3 in so that it has your own KMD based address, CTRL-X then Y to save and exit

We need to generate the coins files (coin daemon must be running!): gencfg.sh <coin name>

You can run just gencfg.sh with no coin name to use the assetchains.json in komodo/src directory for all coins. Make sure you edit the template with the correct values you want before running the config generator.

Finally we are ready to start the pool software

npm start

If all went well the program should start without error and you should be able to browse to your pool website on your server via port 8080.

Disable Coinbase Mode

This mode uses -pubkey to tell the daemon where the coinbase should be sent, and uses the daemons coinbase transaction rather then having the pool create the coinabse transaction. This enables special coinbase transactions, such as ac_founders and ac_script or new modes with CC vouts in the coinbase not yet created, it will work with all coins, except Full Z support described below.

To enable it, change the value in the ./coins/*.json to "disablecb" : true

The pool fee is taken in the payment processor using this mode, and might not be 100% accurate down to the single satoshi, so the pool address may end up with some small amount of coins over time.

Payment Processing

Please note that the default configs generated are for solo mining. If you wish to create a public pool please modify the configs like in this example config

There is now a config option you can add to your pool_configs/coin.json to toggle making an attempt at a payment upon pool startup.

"paymentProcessing": {
    "payOnStart": true,
    ...
}

Invalid Worker Addresses

You can add an option to your pool_config to have any miners that mine with an invalid address (if they somehow get through) to pay out to an address of your choosing

"invalidAddress":"zsValidAddressOfYourChoosingThatsNotThePoolZAddress"

Full Z Transaction Support (Sprout)

This is an option to force miners to use a Z address as their username for payouts

In your coins file add:

"privateChain": true,
"burnFees": true

Sapling and Sapling Payment Support

In coins/pirate.json file:

"privateChain": true,
"burnFees": true,
"sapling": 152855

Please note, PIRATE sapling became active around 2018-12-15 01:15UTC at block 152855 Now that this has passed this can just be set to "sapling":true

In pool_config:

"zAddress": "zsPoolsSaplingAddress",
"walletInterval": 2,
"validateWorkerUsername": true,
"paymentProcessing": {
    "minConf": 5,
    "paymentInterval": 180,
    "maxBlocksPerPayment": 20,

More Resources

Further info on config and some sample configs

License

Forked from ComputerGenie repo (deleted)

Released under the GNU General Public License v2 http://www.gnu.org/licenses/gpl-2.0.html

Forked from z-classic/z-nomp which is incorrectly licensed under MIT License - see zone117x/node-open-mining-portal

You can’t perform that action at this time.