Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ***EDIT komodo.conf
- rpcuser=<yourRpcUserName>
- rpcpassword=<yourRpcPassword>
- rpcport=<YourRpcPort>
- txindex=1
- daemon=1
- server=1
- rpcallowip=127.0.0.1
- addnode=5.9.102.210
- addnode=78.47.196.146
- addnode=178.63.69.164
- addnode=88.198.65.74
- addnode=5.9.122.241
- addnode=144.76.94.38
- blocknotify=node /home/<user>/z-nomp/scripts/cli.js blocknotify komodo %s
- ***INSTALL Z-NOMP
- sudo apt-get install libsodium-dev npm redis-server
- sudo npm install n -g
- sudo n stable
- git clone https://github.com/joshuayabut/node-open-mining-portal.git z-nomp
- cd z-nomp
- npm update
- npm install
- sudo service redis-server restart
- *REM if libsodium package not found (ubuntu 14.04)
- git clone https://github.com/jedisct1/libsodium.git
- cd libsodium
- ./configure
- ./autogen.sh
- sudo make
- sudo make install
- *** EDIT blockTemplate.js to remove this.rpcData.founders (from zchash)
- =>in file "z-nomp/node_modules/stratum-pool/lib/blockTemplate.js"
- replace line 26 by
- var blockReward = (this.rpcData.miner) * 100000000;
- *REM if not done, will generate error
- ***SETUP Z-NOMP CONFIG FILES FILES
- **Create config.json
- in z-nomp directory
- cp config_example.json config.json
- edit config.json with
- "website": {
- "enabled": true,
- "host": "0.0.0.0",
- "port": 8080,
- "stratumHost": "blabla.com",
- 0.0.0.0 should be changed to the public ip address of the server if accessed from the net (local if lan)
- i think stratumHost is only used for display in gettingstarted page, i put the same as host in doubt
- **Create coin config file
- in z-nomp/coins directory
- create komodo.json with
- {
- "name": "komodo",
- "symbol": "KMD",
- "algorithm": "equihash",
- "payFoundersReward": false
- }
- **
- **Create pool config file
- in z-nomp/pool_configs
- cp zclassic.json komodo.json
- edit komodo.json with
- enabled": true,
- "coin": "komodo.json",
- "address": "t1dfrrxCHek2ts987VpZsRmFKBvdcBJ1Cqd",
- "_comment_address": "a transparent address to send coinbase rewards to and to transfer to zAddress.",
- "zAddress": "ztqgT4xsouCyjHXrFtXnDVgtvPRmURMgHQw2gd39dLdtoYkmPACScHturZjqsNdAPtP6JCLaWmZmYDqbjCMRgdCfQ2vjY2K",
- "_comment_zAddress": "a private address used to send coins to tAddress.",
- "tAddress": "tmLqYHEnCiL4dpktEKdAKeRjPdkxNtJVWfb",
- "_comment_tAddress": "transparent address used to send payments, make this a different address, otherwise payments will not send",
- *REM the first address is the main address of the pool (getting block rewards)
- *use komodo-cli getnewaddress and z_getnewaddress (or already existing addresses)
- *then edit
- "paymentProcessing": {
- "enabled": false,
- "paymentInterval": 30,
- "minimumPayment": 1,
- "daemon": {
- "host": "127.0.0.1",
- "port": <yourRpcport>,
- "user": "<yourRpcUserName>",
- "password": "<yourRpcPassword>"
- }
- },
- "ports": {
- "7777": {
- "diff": 0.05,
- "varDiff": {
- "minDiff": 0.04,
- "maxDiff": 16,
- "targetTime": 15,
- "retargetTime": 60,
- "variancePercent": 30
- }
- }
- },
- "daemons": [
- {
- "host": "127.0.0.1",
- "port": <yourRpcport>,
- "user": "<yourRpcUserName>",
- "password": "<yourRpcPassword>"
- }
- ],
- *<yourRpcport>, <yourRpcUserName> and <yourRpcPasswordXPASSX> are those of komodo.conf
- *paymentProcessing is set to false because buggy if activated
- *"7777" port is your stratum port (to point your miners to)
- **
- **Launch z-nomp
- in z-nomp directory
- npm start
- on a browser, type IP:PORT (you specified in config.json) and the page should display
- Warning, the process will die on ssh exit. best is to run it on a screen session
- **
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement