Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

better support for monero7 #24

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ cryptonote-xmr-pool
High performance Node.js (with native C addons) mining pool for CryptoNote based coins such as Bytecoin, DuckNote, Monero, QuazarCoin, Boolberry, Dashcoin, etc..
Comes with lightweight example front-end script which uses the pool's AJAX API.

UPDATED FOR MONERO HARDFORK (Monero7) Credit goes to Clintar as he did all the work I just changed a [link.](https://github.com/hypeboard/cryptonote-xmr-pool/compare)



#### Table of Contents
Expand Down Expand Up @@ -83,6 +85,7 @@ Comes with lightweight example front-end script which uses the pool's AJAX API.

#### Pools Using This Software

* https://arhash.xyz run by HyperionX
* http://xmr.poolto.be run by PCFil
* http://xmr.cncoin.farm run by clintar
* https://xmr.ayuscrypto.com run by j0hnw0rk3r
Expand Down Expand Up @@ -120,7 +123,7 @@ sudo apt-get install git redis-server libboost1.55-all-dev nodejs-dev nodejs-leg
Clone the repository and run `npm update` for all the dependencies to be installed:

```bash
git clone https://github.com/clintar/cryptonote-xmr-pool.git pool
git clone https://github.com/hypeboard/cryptonote-xmr-pool.git pool
cd pool
npm update
```
Expand All @@ -131,10 +134,10 @@ npm update
Explanation for each field:
```javascript
/* Used for storage in redis so multiple coins can share the same redis instance. */
"coin": "ducknote",
"coin": "monero",

/* Used for front-end display */
"symbol": "XDN",
"symbol": "XMR",

/* Minimum units in a single coin, see COIN constant in DAEMON_CODE/src/cryptonote_config.h */
"coinUnits": 100000000,
Expand Down
2 changes: 1 addition & 1 deletion lib/configReader.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ for(var configOption in donationAddresses) {
}
}

global.version = "v1.1.5_uni";
global.version = "v1.1.5_xmr";
4 changes: 2 additions & 2 deletions lib/pool.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var crypto = require('crypto');

var async = require('async');
var bignum = require('bignum');
var multiHashing = require('multi-hashing');
var multiHashing = require('cryptonight-hashing');
var cnUtil = require('cryptonote-util');

// Must exactly be 8 hex chars, already lowercased before test
Expand Down Expand Up @@ -419,7 +419,7 @@ function processShare(miner, job, blockTemplate, nonce, resultHash){
}
else {
convertedBlob = cnUtil.convert_blob(shareBuffer);
hash = cryptoNight(convertedBlob);
hash = cryptoNight(convertedBlob, convertedBlob[0] >= 7 ? convertedBlob[0] - 6 : 0);
shareType = 'valid';
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"cli-color": "*",
"dateformat": "*",
"base58-native": "*",
"multi-hashing": "git://github.com/clintar/node-multi-hashing.git#Nan-2.0",
"cryptonight-hashing": "git://github.com/Venthos/node-cryptonight-hashing.git",
"cryptonote-util": "git://github.com/kirichenko/node-cryptonote-util.git#xmr-Nan-2.0"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion website-example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@

<footer>
<div class="text-muted">
Powered by <a target="_blank" href="//cryptonotemining.org"><i class="fa fa-github"></i> cryptonote-universal-pool</a>
Powered by <a target="_blank" href="//github.com/clintar/cryptonote-xmr-pool"><i class="fa fa-github"></i> cryptonote-XMR-pool</a>
<span id="poolVersion"></span>
open sourced under the <a href="http://www.gnu.org/licenses/gpl-2.0.html">GPL</a>
</div>
Expand Down