Skip to content

Commit

Permalink
Added cn-pico algo support
Browse files Browse the repository at this point in the history
  • Loading branch information
MoneroOcean committed Jan 24, 2019
1 parent 5e70830 commit c7f0a8d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# xmr-node-proxy

:warning: **[Monero will change PoW algorithm on October 18] Please update this proxy to the latest version and please put "algo": "cn/2" into your pool section of config.json** :warning:

Supports all known cryptonight/heavy/light coins:
Supports all known cryptonight/heavy/light/pico coins:

* Monero (XMR), MoneroV (XMV), Monero Original (XMO), Monero Classic (XMC), ...
* Wownero (WOW), Masari (MSR), Electroneum (ETN), Graft (GRFT), Intense (ITNS)
Expand Down
3 changes: 3 additions & 0 deletions lib/xmr.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ function parse_algo_variant(algo_str, variant) {
case 'cryptonight-heavy/0':
case 'cn/0':
case 'cryptonight/0':
case 'cn-pico/trtl':
case 'cryptonight-pico/trtl':
case 'cn-lite/0':
case 'cryptonight-lite/0': return 0;

Expand Down Expand Up @@ -112,6 +114,7 @@ function parse_algo_func(algo_str) {
if (typeof(algo_str) === 'undefined') return multiHashing.cryptonight;
if (algo_str.includes('lite')) return multiHashing.cryptonight_light;
if (algo_str.includes('heavy')) return multiHashing.cryptonight_heavy;
if (algo_str.includes('pico')) return multiHashing.cryptonight_pico;
return multiHashing.cryptonight;
}

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xmr-node-proxy",
"version": "0.4.0",
"version": "0.5.0",
"description": "Node proxy for XMR pools based on nodejs-pool, should support any coins that nodejs-pool does with little work",
"main": "proxy.js",
"scripts": {
Expand All @@ -27,6 +27,6 @@
"request": "^2.79.0",
"uuid": "3.0.1",
"cryptoforknote-util": "git+https://github.com/MoneroOcean/node-cryptoforknote-util.git#v3.0.0",
"cryptonight-hashing": "git+https://github.com/MoneroOcean/node-cryptonight-hashing.git#v4.0.1"
"cryptonight-hashing": "git+https://github.com/MoneroOcean/node-cryptonight-hashing.git#v5.0.0"
}
}
2 changes: 1 addition & 1 deletion proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const uuidV4 = require('uuid/v4');
const support = require('./lib/support.js')();
global.config = require('./config.json');

const PROXY_VERSION = "0.4.0";
const PROXY_VERSION = "0.5.0";
const DEFAULT_ALGO = [ "cn/2" ];
const DEFAULT_ALGO_PERF = { "cn": 1, "cn/half": 1.9 };

Expand Down

0 comments on commit c7f0a8d

Please sign in to comment.