Z-NOMP(Node Open Mining Portal) (READY FOR TESTING)

Node Open Mining Portal for Zcash/Zclassic

1 Like

trying to test it (on ubuntu 16.04 server) and here is what i did:

mkdir ZNOMP
cd ZNOMP

curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install -y nodejs
wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make –j4
sudo make install
sudo cp src/redis-server /usr/local/bin/
sudo cp src/redis-cli /usr/local/bin/
cd ..
sudo apt-get install build-essential libsodium-dev npm

but here i get:

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
npm : Depends: nodejs but it is not going to be installed
Depends: node-abbrev (>= 1.0.4) but it is not going to be installed
Depends: node-ansi (>= 0.3.0-2) but it is not going to be installed
Depends: node-ansi-color-table but it is not going to be installed
Depends: node-archy but it is not going to be installed
Depends: node-block-stream but it is not going to be installed
Depends: node-fstream (>= 0.1.22) but it is not going to be installed
Depends: node-fstream-ignore but it is not going to be installed
Depends: node-github-url-from-git but it is not going to be installed
Depends: node-glob (>= 3.1.21) but it is not going to be installed
Depends: node-graceful-fs (>= 2.0.0) but it is not going to be installed
Depends: node-inherits but it is not going to be installed
Depends: node-ini (>= 1.1.0) but it is not going to be installed
Depends: node-lockfile but it is not going to be installed
Depends: node-lru-cache (>= 2.3.0) but it is not going to be installed
Depends: node-minimatch (>= 0.2.11) but it is not going to be installed
Depends: node-mkdirp (>= 0.3.3) but it is not going to be installed
Depends: node-gyp (>= 0.10.9) but it is not going to be installed
Depends: node-nopt (>= 3.0.1) but it is not going to be installed
Depends: node-npmlog but it is not going to be installed
Depends: node-once but it is not going to be installed
Depends: node-osenv but it is not going to be installed
Depends: node-read but it is not going to be installed
Depends: node-read-package-json (>= 1.1.0) but it is not going to be installed
Depends: node-request (>= 2.25.0) but it is not going to be installed
Depends: node-retry but it is not going to be installed
Depends: node-rimraf (>= 2.2.2) but it is not going to be installed
Depends: node-semver (>= 2.1.0) but it is not going to be installed
Depends: node-sha but it is not going to be installed
Depends: node-slide but it is not going to be installed
Depends: node-tar (>= 0.1.18) but it is not going to be installed
Depends: node-underscore but it is not going to be installed
Depends: node-which but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

it's node.js 7 ... right?

actually nodejs has npm installed with it ... so i guess

sudo apt-get install build-essential libsodium-dev npm

does not need npm in it

trying out the rest of the steps

ok ... got things a bit working ... now i'm betting this:

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/node_modules/stratum-pool/node_modules/equihashverify/build/Release/:$PWD/node_modules/equihashverify/build/Release/ node init.js

2016-11-28 23:58:34 [POSIX] [Connection Limit] (Safe to ignore) POSIX module not installed and resource (connection) limit was not raised
2016-11-28 23:58:34 [Master] [CLI] CLI listening on port 17117
events.js:160
throw er; // Unhandled 'error' event
^

Error: bind EACCES 0.0.0.0:80
at Object.exports._errnoException (util.js:1022:11)
at exports._exceptionWithHostPort (util.js:1045:20)
at cb (net.js:1327:16)
at rr (cluster.js:626:14)
at Worker. (cluster.js:595:9)
at process. (cluster.js:766:8)
at emitTwo (events.js:111:20)
at process.emit (events.js:191:7)
at processEmit as emit
at process.nextTick (internal/child_process.js:752:12)
2016-11-28 23:58:35 [Master] [Website] Website process died, spawning replacement...
2016-11-28 23:58:35 [Payments] [zcash] Payment processing setup to run every 20 second(s) with daemon (rpcuser@127.0.0.1:19332) and redis (127.0.0.1:6379)
2016-11-28 23:58:35 [Payments] [zcash] Finished interval - time spent: 8ms total, 3ms redis, 5ms daemon RPC
2016-11-28 23:58:35 [Switching] [Setup] (Thread 1) Loading last proxy state from redis
2016-11-28 23:58:35 [Pool] [zcash] (Thread 1) Share processing setup with redis (127.0.0.1:6379)
2016-11-28 23:58:35 [Pool] [zcash] (Thread 1) No rewardRecipients have been setup which means no fees will be taken
2016-11-28 23:58:35 [Master] [PoolSpawner] Spawned 1 pool(s) on 4 thread(s)
2016-11-28 23:58:35 [Switching] [Setup] (Thread 2) Loading last proxy state from redis
2016-11-28 23:58:35 [Pool] [zcash] (Thread 2) Share processing setup with redis (127.0.0.1:6379)
2016-11-28 23:58:36 [Switching] [Setup] (Thread 3) Loading last proxy state from redis
2016-11-28 23:58:36 [Pool] [zcash] (Thread 3) Share processing setup with redis (127.0.0.1:6379)
2016-11-28 23:58:36 [Pool] [zcash] (Thread 2) No rewardRecipients have been setup which means no fees will be taken
2016-11-28 23:58:36 [Pool] [zcash] (Thread 3) No rewardRecipients have been setup which means no fees will be taken
(node:14798) DeprecationWarning: Using Buffer without new will soon stop working. Use new Buffer(), or preferably Buffer.from(), Buffer.allocUnsafe() or Buffer.alloc() instead.
2016-11-28 23:58:36 [Pool] [zcash] (Thread 1) Stratum Pool Server Started for zcash [ZEC] {equihash}
Network Connected: Mainnet
Detected Reward Type: POW
Current Block Height: 18461
Current Block Diff: 856381.495638303
Current Connect Peers: 8
Network Difficulty: 877865.93847726
Network Hash Rate: 40.50 MH
Stratum Port(s): 3032
Pool Fee Percent: 0%
Block polling every: 30 ms
2016-11-28 23:58:36 [Switching] [Setup] (equihash) Setting proxy difficulties after pool start
(node:14808) DeprecationWarning: Using Buffer without new will soon stop working. Use new Buffer(), or preferably Buffer.from(), Buffer.allocUnsafe() or Buffer.alloc() instead.
2016-11-28 23:58:36 [Pool] [zcash] (Thread 2) Stratum Pool Server Started for zcash [ZEC] {equihash}
2016-11-28 23:58:36 [Switching] [Setup] (equihash) Setting proxy difficulties after pool start
(node:14814) DeprecationWarning: Using Buffer without new will soon stop working. Use new Buffer(), or preferably Buffer.from(), Buffer.allocUnsafe() or Buffer.alloc() instead.
2016-11-28 23:58:36 [Pool] [zcash] (Thread 3) Stratum Pool Server Started for zcash [ZEC] {equihash}
2016-11-28 23:58:36 [Switching] [Setup] (equihash) Setting proxy difficulties after pool start
2016-11-28 23:58:36 [Switching] [Setup] (Thread 4) Loading last proxy state from redis
2016-11-28 23:58:36 [Pool] [zcash] (Thread 4) Share processing setup with redis (127.0.0.1:6379)
2016-11-28 23:58:36 [Pool] [zcash] (Thread 4) No rewardRecipients have been setup which means no fees will be taken
(node:14820) DeprecationWarning: Using Buffer without new will soon stop working. Use new Buffer(), or preferably Buffer.from(), Buffer.allocUnsafe() or Buffer.alloc() instead.
2016-11-28 23:58:36 [Pool] [zcash] (Thread 4) Stratum Pool Server Started for zcash [ZEC] {equihash}
2016-11-28 23:58:36 [Switching] [Setup] (equihash) Setting proxy difficulties after pool start
events.js:160
throw er; // Unhandled 'error' event
^

Error: bind EACCES 0.0.0.0:80
at Object.exports._errnoException (util.js:1022:11)
at exports._exceptionWithHostPort (util.js:1045:20)
at cb (net.js:1327:16)
at rr (cluster.js:626:14)
at Worker. (cluster.js:595:9)
at process. (cluster.js:766:8)
at emitTwo (events.js:111:20)
at process.emit (events.js:191:7)
at processEmit as emit
at process.nextTick (internal/child_process.js:752:12)
2016-11-28 23:58:37 [Master] [Website] Website process died, spawning replacement...

any pointers?

Looks like nodejs can't bind your web server to port 80 due to permissions. Try elevating the permissions on the proc or raising the port above 1024.

you're the man :smiley: ... changed port to 8080 and now its not throwing the same error ... but

trying to connect with

nheqminer.exe -cd 0 -l amegahed.myvnc.com:3333 -u t1eYeHJKV6Ku9VzadpS8p1LDBeYXqQtRjvw.LTGPU

i get:

2016-11-29 00:12:03 [Switching] [Connect] (Thread 1) Connection to switch1 from ::ffff:41.235.128.28 on 3333 routing to zcash
2016-11-29 00:12:03 [Pool] [zcash] (Thread 1) Unauthorized t1eYeHJKV6Ku9VzadpS8p1LDBeYXqQtRjvw.LTGPU:x [::ffff:41.235.128.28]

here is a screenshot of the webui :smiley:

still trying to figure out miners :))))

the Getting started page:

configuration page

graph stats page

tabed stats

authorized worker :smiley:

syntax for nheqminer needed to changed :smiley:

nheqminer.exe -cd 0 -l amegahed.myvnc.com:3333 -u t1eYeHJKV6Ku9VzadpS8p1LDBeYXqQtRjvw -p x

how do you define workers in miners?

can you give examples for different miners? optiminer ... nheqminer ... etc ... ?

i tried to connect two instances of nheqminer from two different machines and the pool backend just went crazy :smiley:

thank you :))))

I am getting the following error:

Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED 127.0.0.1:6379

this is what it keeps throwing:

Error: Expected property "1" of type Satoshi, got Number 1155919426.9999998
2016-11-29 01:06:28 [Master] [PoolSpawner] Fork 0 died, spawning replacement worker...
2016-11-29 01:06:31 [Switching] [Setup] (Thread 4) Loading last proxy state from redis
2016-11-29 01:06:31 [Switching] [Setup] (Thread 3) Loading last proxy state from redis
2016-11-29 01:06:31 [Switching] [Setup] (Thread 2) Loading last proxy state from redis
2016-11-29 01:06:31 [Pool] [zcash] (Thread 4) Share processing setup with redis (127.0.0.1:6379)
2016-11-29 01:06:31 [Pool] [zcash] (Thread 2) Share processing setup with redis (127.0.0.1:6379)
2016-11-29 01:06:31 [Pool] [zcash] (Thread 3) Share processing setup with redis (127.0.0.1:6379)
2016-11-29 01:06:31 [Switching] [Setup] (Thread 4) Switching "switch1" listening for equihash on port 3333 into zcash
2016-11-29 01:06:31 [Switching] [Setup] (Thread 2) Switching "switch1" listening for equihash on port 3333 into zcash
2016-11-29 01:06:31 [Switching] [Setup] (Thread 3) Switching "switch1" listening for equihash on port 3333 into zcash
2016-11-29 01:06:31 [Pool] [zcash] (Thread 4) No rewardRecipients have been setup which means no fees will be taken
2016-11-29 01:06:31 [Switching] [Setup] (Thread 1) Loading last proxy state from redis
2016-11-29 01:06:31 [Pool] [zcash] (Thread 3) No rewardRecipients have been setup which means no fees will be taken
2016-11-29 01:06:31 [Pool] [zcash] (Thread 2) No rewardRecipients have been setup which means no fees will be taken
2016-11-29 01:06:31 [Pool] [zcash] (Thread 1) Share processing setup with redis (127.0.0.1:6379)

/home/mylin/ZNOMP/z-nomp/node_modules/typeforce/index.js:154
throw tfSubError(e, i)
^
Error: Expected property "1" of type Satoshi, got Number 1155919426.9999998

/home/mylin/ZNOMP/z-nomp/node_modules/typeforce/index.js:154
throw tfSubError(e, i)
^
Error: Expected property "1" of type Satoshi, got Number 1155919426.9999998

/home/mylin/ZNOMP/z-nomp/node_modules/typeforce/index.js:154
throw tfSubError(e, i)
^
Error: Expected property "1" of type Satoshi, got Number 1155919426.9999998
2016-11-29 01:06:31 [Master] [PoolSpawner] Fork 3 died, spawning replacement worker...
2016-11-29 01:06:31 [Switching] [Setup] (Thread 1) Switching "switch1" listening for equihash on port 3333 into zcash
2016-11-29 01:06:31 [Master] [PoolSpawner] Fork 2 died, spawning replacement worker...
2016-11-29 01:06:31 [Master] [PoolSpawner] Fork 1 died, spawning replacement worker...
2016-11-29 01:06:31 [Pool] [zcash] (Thread 1) No rewardRecipients have been setup which means no fees will be taken

/home/mylin/ZNOMP/z-nomp/node_modules/typeforce/index.js:154
throw tfSubError(e, i)
^
Error: Expected property "1" of type Satoshi, got Number 1155919426.9999998
2016-11-29 01:06:31 [Master] [PoolSpawner] Fork 0 died, spawning replacement worker...

i started redis using screen:

screen -S redis
redis-server
'# start server
screen -S znomp
cd ZNOMP/z-nomp
npm start

Has anyone tried mining a block on testnet with this?

I'm throwing the error here where it seems to be finding a hash that satisfies the target yet is not valid.

Output:


2016-11-28 18:47:27 [Pool] [zcash] (Thread 1) We thought a block was found but it was rejected by the daemon, share data: {"job":"ccd4","ip":"::ffff:127.0.0.1","port":3333,"worker":"t1d1DQciS8AqViH1GqmPhTrky3qLY3ySbrG","height":13459,"blockReward":841187500,"difficulty":10,"shareDiff":"42.20973128","blockDiff":5.91466799,"blockDiffActual":5.91466799,"blockHash":"0000308505a06394c7ee60d222133aea464793180859f676dd85ccfb2732bb74"}

Ubuntu 13 VPS SERVER
Help to set up.
Installation guide please!

1 Like

Fairly sure that this doesn't work yet. Also there is a hard to track bug that crashes the pool frequently. I tried tracking it down but you know... javascript

1 Like

Linux Ubuntu VPS Server
I want to build a pool.
I would be glad if you help.

at CentOS 7

npm start

z-nomp@0.0.4 start /opt/z-nomp
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/node_modules/stratum-pool/node_modules/equihashverify/build/Release/:$PWD/node_modules/equihashverify/build/Release/ node init.js

module.js:472
throw err;
^

Error: Cannot find module '/opt/z-nomp/node_modules/bignum/binding/bignum.node'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (/opt/z-nomp/node_modules/bignum/index.js:4:11)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)

npm ERR! Linux 3.10.0-327.22.2.el7.x86_64
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v7.2.0
npm ERR! npm v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! z-nomp@0.0.4 start: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/node_modules/stratum-pool/node_modules/equihashverify/build/Release/:$PWD/node_modules/equihashverify/build/Release/ node init.js
npm ERR! Exit status 1

Hi, I have been testing your z-nomp. I would have to say, it was very easy to install and it runs pretty good. I made a mistake in setting up the miners and set the "validateWorkerUsername": false, instead of true. Yes, I now know why it should be true, because of a payment errors, among other things. I have the following error:

2017-01-02 20:42:44 [Pool] [zclassic] (Thread 1) Share accepted at diff 1.97020826/2.30223653 by t1xxxxxxxxxxxxxxxxxxxxxxf [::ffff:xxx.xxx.xxx.xxx]
2017-01-02 20:42:45 [Payments] [zclassic] Error trying to send payments with RPC sendmany {"code":-5,"message":"Invalid Zcash address: t1xxxxxxxxxxxxxxxxxxxxxxxxxa.Rig1"}
2017-01-02 20:42:45 [Payments] [zclassic] Finished interval - time spent: 6ms total, 1ms redis, 3ms daemon RPC
2017-01-02 20:42:48 [Pool] [zclassic] (Thread 2) Share accepted at diff 3.60954418/5.37047127 by t1xxxxxxxxxxxxxxxxxxxxxxxx8Z [::ffff:xx.xx.x.x]

A invalid Zcash address because of the .Rig1 is part of it. How can I fix this payment? I will be changing to true, but I wanted/need to fix this payment 1st if I can.

Help me plz

/home/pool/z-nomp/node_modules/bs58check/index.js:48
if (!payload) throw new Error('Invalid checksum')
^

Error: Invalid checksum
at Object.decode (/home/pool/z-nomp/node_modules/bs58check/index.js:48:23)
at Object.fromBase58Check (/home/pool/z-nomp/node_modules/bitcoinjs-lib-zcash/src/address.js:8:27)
at Object.exports.createGeneration (/home/pool/z-nomp/node_modules/stratum-pool/lib/transactions.js:83:46)
at new BlockTemplate (/home/pool/z-nomp/node_modules/stratum-pool/lib/blockTemplate.js:35:35)
at JobManager.processTemplate (/home/pool/z-nomp/node_modules/stratum-pool/lib/jobManager.js:123:32)
at /home/pool/z-nomp/node_modules/stratum-pool/lib/pool.js:578:66
at itemFinished (/home/pool/z-nomp/node_modules/stratum-pool/lib/daemon.js:155:36)
at /home/pool/z-nomp/node_modules/stratum-pool/lib/daemon.js:169:17
at parseJson (/home/pool/z-nomp/node_modules/stratum-pool/lib/daemon.js:85:17)
at IncomingMessage. (/home/pool/z-nomp/node_modules/stratum-pool/lib/daemon.js:95:17)
2017-01-06 21:35:54 [Master] [PoolSpawner] Fork 0 died, spawning replacement worker...