Skip to content

A merge mining pool for Ulord and USC and portal written entirely in Node.js.

License

Notifications You must be signed in to change notification settings

UlordChain/ulord-mm-pool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ulord - Node Open Mining Portal

This is a Cryptohello mining pool based on the Node Open Mining Portal.

Usage

Requirements

Seriously

Those are legitimate requirements. If you use old versions of Node.js or Redis that may come with your system package manager then you will have problems. Follow the linked instructions to get the last stable versions.

Redis security warning: be sure firewall access to redis - an easy way is to include bind 127.0.0.1 in your redis.conf file. Also it's a good idea to learn about and understand software that you are using - a good place to start with redis is data persistence.

0) Setting up coin daemon

Follow the build/install instructions for your coin daemon.Your ulord.conf file should end up looking something like this(you can find this file at a dir named .ulordcore):

testnet=0
rpcuser=ulordpool
rpcpassword=ulordpool
txindex=1
addressindex=1
spentindex=1
timestampindex=1
reindex=0

1) Downloading & Installing

Clone the repository and run npm update for all the dependencies to be installed:

sudo apt-get install build-essential libsodium-dev npm
sudo npm install n -g
sudo n 4.8.7
git clone https://github.com/UlordChain/ulord-mm-pool.git
cd ulord-mm-pool
npm update
2) The overall configuration

You must change the daemon address to the same as the step 0 configuration. Note that there are two places to change. If your redis is configured with a password, modify it together.Configuration file located in ./config.json.

The config_example.json file adds the USC configuration switch as follows:

"usc":{
    "enabled": true,
    "rpcIp": "localhost",
    "rpcPort": 58858
}
3) Pool config

You can custom your configuration by modify file pool_config/ulord.json.The most important thing is to change pool address to yours.

Please Note that: 1 Difficulty is actually 8192, 0.125 Difficulty is actually 1024.

Whenever a miner submits a share, the pool counts the difficulty and keeps adding them as the shares. 

ie: Miner 1 mines at 0.1 difficulty and finds 10 shares, the pool sees it as 1 share. Miner 2 mines at 0.5 difficulty and finds 5 shares, the pool sees it as 2.5 shares. 
[Optional, recommended] Setting up blocknotify
  1. In config.json set the port and password for blockNotifyListener
  2. In your daemon conf file set the blocknotify command to use:
node [path to cli.js] [coin name in config] [block hash symbol]

Example: inside ulord.conf add the line

blocknotify=node /home/user/z-nomp/scripts/cli.js blocknotify ulord %s

Alternatively, you can use a more efficient block notify script written in pure C. Build and usage instructions are commented in scripts/blocknotify.c.

3) Start the portal

npm start
Optional enhancements for your awesome new mining pool server setup:
  • Use something like forever to keep the node script running in case the master process crashes.
  • Use something like redis-commander to have a nice GUI for exploring your redis database.
  • Use something like logrotator to rotate log output from Z-NOMP.
  • Use New Relic to monitor your Z-NOMP instance and server performance.

Upgrading Z-NOMP

Our ulord pool based on Z-nomp. When updating Z-NOMP to the latest code its important to not only git pull the latest from this repo, but to also update the node-merged-pool and node-multi-hashing modules, and any config files that may have been changed.

  • Inside your Z-NOMP directory (where the init.js script is) do git pull to get the latest Z-NOMP code.
  • Remove the dependenices by deleting the node_modules directory with rm -r node_modules.
  • Run npm update to force updating/reinstalling of the dependencies.
  • Compare your config.json and pool_configs/coin.json configurations to the latest example ones in this repo or the ones in the setup instructions where each config field is explained. You may need to modify or add any new changes.

Donations

To support development of this project feel free to donate :)

  • UT: UbZnu7QCHcate5RMmequjt1W4zuVT6KDSa

PS: The donated UT flows to Ulord community foundation and is supervised by the community.

Credits

Z-NOMP

NOMP

License

Released under the MIT License. See LICENSE file.

About

A merge mining pool for Ulord and USC and portal written entirely in Node.js.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages