Advertisement
Guest User

Untitled

a guest
Jan 29th, 2017
609
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.85 KB | None | 0 0
  1. ***EDIT komodo.conf
  2.  
  3. rpcuser=<yourRpcUserName>
  4. rpcpassword=<yourRpcPassword>
  5. rpcport=<YourRpcPort>
  6. txindex=1
  7. daemon=1
  8. server=1
  9. rpcallowip=127.0.0.1
  10. addnode=5.9.102.210
  11. addnode=78.47.196.146
  12. addnode=178.63.69.164
  13. addnode=88.198.65.74
  14. addnode=5.9.122.241
  15. addnode=144.76.94.38
  16. blocknotify=node /home/<user>/z-nomp/scripts/cli.js blocknotify komodo %s
  17.  
  18.  
  19. ***INSTALL Z-NOMP
  20. sudo apt-get install libsodium-dev npm redis-server
  21. sudo npm install n -g
  22. sudo n stable
  23. git clone https://github.com/joshuayabut/node-open-mining-portal.git z-nomp
  24. cd z-nomp
  25. npm update
  26. npm install
  27.  
  28. sudo service redis-server restart
  29.  
  30.  
  31. *REM if libsodium package not found (ubuntu 14.04)
  32. git clone https://github.com/jedisct1/libsodium.git
  33. cd libsodium
  34. ./configure
  35. ./autogen.sh
  36. sudo make
  37. sudo make install
  38.  
  39.  
  40.  
  41.  
  42. *** EDIT blockTemplate.js to remove this.rpcData.founders (from zchash)
  43. =>in file "z-nomp/node_modules/stratum-pool/lib/blockTemplate.js"
  44. replace line 26 by
  45. var blockReward = (this.rpcData.miner) * 100000000;
  46. *REM if not done, will generate error
  47.  
  48.  
  49.  
  50. ***SETUP Z-NOMP CONFIG FILES FILES
  51.  
  52. **Create config.json
  53. in z-nomp directory
  54. cp config_example.json config.json
  55. edit config.json with
  56.  
  57. "website": {
  58. "enabled": true,
  59. "host": "0.0.0.0",
  60. "port": 8080,
  61. "stratumHost": "blabla.com",
  62.  
  63. 0.0.0.0 should be changed to the public ip address of the server if accessed from the net (local if lan)
  64. i think stratumHost is only used for display in gettingstarted page, i put the same as host in doubt
  65.  
  66.  
  67.  
  68. **Create coin config file
  69. in z-nomp/coins directory
  70. create komodo.json with
  71. {
  72. "name": "komodo",
  73. "symbol": "KMD",
  74. "algorithm": "equihash",
  75. "payFoundersReward": false
  76. }
  77. **
  78.  
  79. **Create pool config file
  80. in z-nomp/pool_configs
  81. cp zclassic.json komodo.json
  82. edit komodo.json with
  83.  
  84. enabled": true,
  85. "coin": "komodo.json",
  86.  
  87. "address": "t1dfrrxCHek2ts987VpZsRmFKBvdcBJ1Cqd",
  88. "_comment_address": "a transparent address to send coinbase rewards to and to transfer to zAddress.",
  89.  
  90. "zAddress": "ztqgT4xsouCyjHXrFtXnDVgtvPRmURMgHQw2gd39dLdtoYkmPACScHturZjqsNdAPtP6JCLaWmZmYDqbjCMRgdCfQ2vjY2K",
  91. "_comment_zAddress": "a private address used to send coins to tAddress.",
  92.  
  93. "tAddress": "tmLqYHEnCiL4dpktEKdAKeRjPdkxNtJVWfb",
  94. "_comment_tAddress": "transparent address used to send payments, make this a different address, otherwise payments will not send",
  95.  
  96. *REM the first address is the main address of the pool (getting block rewards)
  97. *use komodo-cli getnewaddress and z_getnewaddress (or already existing addresses)
  98. *then edit
  99.  
  100. "paymentProcessing": {
  101. "enabled": false,
  102. "paymentInterval": 30,
  103. "minimumPayment": 1,
  104. "daemon": {
  105. "host": "127.0.0.1",
  106. "port": <yourRpcport>,
  107. "user": "<yourRpcUserName>",
  108. "password": "<yourRpcPassword>"
  109. }
  110. },
  111.  
  112. "ports": {
  113. "7777": {
  114. "diff": 0.05,
  115. "varDiff": {
  116. "minDiff": 0.04,
  117. "maxDiff": 16,
  118. "targetTime": 15,
  119. "retargetTime": 60,
  120. "variancePercent": 30
  121. }
  122. }
  123. },
  124.  
  125. "daemons": [
  126. {
  127. "host": "127.0.0.1",
  128. "port": <yourRpcport>,
  129. "user": "<yourRpcUserName>",
  130. "password": "<yourRpcPassword>"
  131. }
  132. ],
  133.  
  134. *<yourRpcport>, <yourRpcUserName> and <yourRpcPasswordXPASSX> are those of komodo.conf
  135. *paymentProcessing is set to false because buggy if activated
  136. *"7777" port is your stratum port (to point your miners to)
  137. **
  138.  
  139. **Launch z-nomp
  140. in z-nomp directory
  141. npm start
  142.  
  143. on a browser, type IP:PORT (you specified in config.json) and the page should display
  144.  
  145. Warning, the process will die on ssh exit. best is to run it on a screen session
  146. **
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement