diff --git a/README.md b/README.md index 8d6c89b1..439fb65d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Zcash® and Zclassic - Node Open Mining Portal +# BTCPrivate - Node Open Mining Portal -**[Click here for the official - Zcash® and Zclassic Stratum Mining Pool Installation Guide](https://zdeveloper.org/wiki:z-nomp_install)** +**[Click here for the official - z-nomp Stratum Mining Pool Installation Guide](https://zdeveloper.org/wiki:z-nomp_install)** This is a Equihash mining pool based off of Node Open Mining Portal. @@ -21,19 +21,11 @@ IRC If your pool uses Z-NOMP let us know and we will list your website here. -### Some pools using Z-NOMP or node-stratum-module: +### Some BTCPrivate Pools: -https://pool.cryptobroker.io/zcl Running MPOS and 0.5% of the fee goes to the Zclassic donation fund! 200+ blocks have been found as well! +https://btcp.ragnarpool.ovh/stats -http://luckpool.org Zcash Pool with Custom Frontend w/Miner's Jackpot - -http://zclmine.com/ Custom frontend - -http://zclassic.miningspeed.com Custom frontend and 0% fee - -https://zpool.it 0.5% fee - -http://miningpool.io/ +https://btcp.coinblockers.com/ Usage ===== @@ -57,9 +49,9 @@ you are using - a good place to start with redis is [data persistence](http://re Follow the build/install instructions for your coin daemon. Your coin.conf file should end up looking something like this: ``` daemon=1 -rpcuser=zclassicrpc +rpcuser=btcprivaterpc rpcpassword=securepassword -rpcport=8232 +rpcport=7933 ``` For redundancy, its recommended to have at least two daemon instances running in case one drops out-of-sync or offline, all instances will be polled for block/transaction updates and be used for submitting blocks. Creating a backup daemon @@ -80,14 +72,14 @@ Clone the repository and run `npm update` for all the dependencies to be install sudo apt-get install build-essential libsodium-dev npm sudo npm install n -g sudo n stable -git clone https://github.com/joshuayabut/node-open-mining-portal.git z-nomp +git clone https://github.com/BTCPrivate/z-nomp.git z-nomp cd z-nomp npm update npm install ``` ##### Pool config -Take a look at the example json file inside the `pool_configs` directory. Rename it to `zclassic.json` and change the +Take a look at the example json file inside the `pool_configs` directory. Rename it to `BTCPrivate.json` and change the example fields to fit your setup. ``` @@ -105,9 +97,9 @@ ie: Miner 1 mines at 0.1 difficulty and finds 10 shares, the pool sees it as 1 s ``` node [path to cli.js] [coin name in config] [block hash symbol] ``` -Example: inside `zclassic.conf` add the line +Example: inside `btcprivate.conf` add the line ``` -blocknotify=node /home/user/z-nomp/scripts/cli.js blocknotify zclassic %s +blocknotify=node /home/user/z-nomp/scripts/cli.js blocknotify btcprivate %s ``` Alternatively, you can use a more efficient block notify script written in pure C. Build and usage instructions diff --git a/coins/btcprivate.json b/coins/btcprivate.json new file mode 100644 index 00000000..a6182b6c --- /dev/null +++ b/coins/btcprivate.json @@ -0,0 +1,8 @@ +{ + "name": "btcprivate", + "symbol": "btcp", + "algorithm": "equihash", + "requireShielding": true, + "peerMagic": "", + "txfee": 0.0004 +} diff --git a/coins/btcprivate_testnet.json b/coins/btcprivate_testnet.json new file mode 100644 index 00000000..789ccb0e --- /dev/null +++ b/coins/btcprivate_testnet.json @@ -0,0 +1,8 @@ +{ + "name": "btcprivate_testnet", + "symbol": "bttt", + "algorithm": "equihash", + "requireShielding": true, + "peerMagic": "", + "txfee": 0.0004 +} diff --git a/libs/api.js b/libs/api.js index 1b416117..4d1952bc 100644 --- a/libs/api.js +++ b/libs/api.js @@ -26,7 +26,7 @@ module.exports = function(logger, portalConfig, poolConfigs){ case 'getblocksstats': portalStats.getBlocks(function(data){ res.header('Content-Type', 'application/json'); - res.end(JSON.stringify(data)); + res.end(JSON.stringify(data)); }); break; case 'payments': @@ -52,7 +52,7 @@ module.exports = function(logger, portalConfig, poolConfigs){ // get miners balance along with worker balances portalStats.getBalanceByAddress(address, function(balances) { // get current round share total - portalStats.getTotalSharesByAddress(address, function(shares) { + portalStats.getTotalSharesByAddress(address, function(shares) { var totalHash = parseFloat(0.0); var totalShares = shares; var networkSols = 0; @@ -103,6 +103,7 @@ module.exports = function(logger, portalConfig, poolConfigs){ } return; case 'live_stats': + /* res.writeHead(200, { 'Content-Type': 'text/event-stream', 'Cache-Control': 'no-cache', @@ -115,6 +116,7 @@ module.exports = function(logger, portalConfig, poolConfigs){ req.on("close", function() { delete _this.liveStatConnections[uid]; }); + */ return; default: next(); diff --git a/website/pages/stats.html b/website/pages/stats.html index 30ed6785..423fc895 100644 --- a/website/pages/stats.html +++ b/website/pages/stats.html @@ -318,7 +318,9 @@