z-classic / z-nomp

z-nomp is mining pool software for Zcash and Zclassic so you can create internet money in your home!
MIT License
287 stars 441 forks source link

Zec Payment not working #93

Closed sonicdx10 closed 7 years ago

sonicdx10 commented 7 years ago

Other equihash crypto are working ok

server mexpool.ddns.net

/home/dimi/z-nomp/libs/paymentProcessor.js:172 for (var i = 0, len = result[0].response.length; i < len; i++) { ^

TypeError: Cannot read property 'length' of null at /home/dimi/z-nomp/libs/paymentProcessor.js:172:57 at /home/dimi/z-nomp/node_modules/stratum-pool/lib/daemon.js:175:17 at /home/dimi/z-nomp/node_modules/async/dist/async.js:359:16 at iteratorCallback (/home/dimi/z-nomp/node_modules/async/dist/async.js:935:13) at /home/dimi/z-nomp/node_modules/async/dist/async.js:843:16 at itemFinished (/home/dimi/z-nomp/node_modules/stratum-pool/lib/daemon.js:157:17) at /home/dimi/z-nomp/node_modules/stratum-pool/lib/daemon.js:169:17 at parseJson (/home/dimi/z-nomp/node_modules/stratum-pool/lib/daemon.js:85:17) at IncomingMessage. (/home/dimi/z-nomp/node_modules/stratum-pool/lib/daemon.js:95:17) at emitNone (events.js:91:20) 2017-03-07 08:05:48 [Master] [Payment Processor] Payment processor died, spawning replacement...

WaveringAna commented 7 years ago

usually this error indicates the payment processor can't connect to the main zcash node

6otah commented 7 years ago

@aayanl I have the same error. My zcash node runs on another server. I added host, port, user, pass in paymentProcessing - daemon and in daemons sections in pool config; added ip of znomp pool in coin daemon config file. When I delete rpcallowip line in zcash config I get this output:

2017-03-08 13:20:26 [Payments]  [zcash] Could not parse rpc data from daemon instance  0
Request Data: {"method":"validateaddress","params":["t1KE......"],"id":1488972026193}
Reponse Data: Forbidden

Does this mean znomp actually can connect to zcash node?

sonicdx10 commented 7 years ago

yup, just zec is not working with paymentsproc, did a few movements without success :(

WaveringAna commented 7 years ago

you need -rpcallowip if want to connect to a remote node

sonicdx10 commented 7 years ago

Is not on remote server no need special port or ipallow, is on local ^.-?

6otah commented 7 years ago

@aayanl I have -rpcallowip line, payment processor still dies and respawns.

sonicdx10 commented 7 years ago

Tried to change VPS, compile, blah blah several times, and the only equihash coin that doesn't work with payment processor is ZEC... got server up and running on alvblock.com (komodo, zclassic, zdash)

WaveringAna commented 7 years ago

can you copy and paste your zcash pool conifg?

sonicdx10 commented 7 years ago

Fixed with last git but now komodo pool doesn't start

WaveringAna commented 7 years ago

Glad to see zcash payments work, ill see whats up with Komodo

sonicdx10 commented 7 years ago

Komodo running with (succes on 4 pools) what does that affect? to the other 3 coins?

// generate the fees and coinbase tx var blockReward = (this.rpcData.miner + this.rpcData.founders) * 100000000; // generate the fees and coinbase tx var blockReward = (this.rpcData.miner) * 100000000;

WaveringAna commented 7 years ago

The first one is for zcash to include the founder's reward, the second one pays everything to the miner for zclassic

sonicdx10 commented 7 years ago

ok then the 4 pools (zec, zdash, zcl, kmd) are working with Second Option

WaveringAna commented 7 years ago

you need the first one for zcash otherwise blocks will get rejected

WaveringAna commented 7 years ago

for not including the founders tax

sonicdx10 commented 7 years ago

thx 4 your help

sonicdx10 commented 7 years ago

so at it is can't be possible to run komodo and zec on same stratum?

WaveringAna commented 7 years ago

no

angelassets commented 7 years ago

Hi, Need help with the following errors...: 2017-07-16 11:09:35 [POSIX] [Connection Limit] (Safe to ignore) POSIX module not installed and resource (connection) limit was not raised 2017-07-16 11:09:35 [Master] [CLI] CLI listening on port 17117 2017-07-16 11:09:35 [PPLNT] [zcash] TimeShare processing setup with redis (127.0.0.1:6379) 2017-07-16 11:09:35 [Payments] [zcash] paymentInterval of 180 seconds recommended to reduce the RPC work queue. 2017-07-16 11:09:35 [Payments] [zcash] zcash requireShielding: true 2017-07-16 11:09:35 [Payments] [zcash] zcash minConf: 10 2017-07-16 11:09:35 [Payments] [zcash] zcash payments txfee reserve: 0.0004 2017-07-16 11:09:35 [Payments] [zcash] zcash maxBlocksPerPayment: 3 2017-07-16 11:09:35 [Payments] [zcash] zcash PPLNT: false, time period: 0.51 2017-07-16 11:09:35 [Payments] [zcash] Error with payment processing daemon {"type":"offline","message":"connect ECONNREFUSED 127.0.0.1:19332"} 2017-07-16 11:09:35 [Payments] [zcash] Error with payment processing daemon {"type":"offline","message":"connect ECONNREFUSED 127.0.0.1:19332"} 2017-07-16 11:09:35 [Payments] [zcash] Error with payment processing daemon {"type":"offline","message":"connect ECONNREFUSED 127.0.0.1:19332"} 2017-07-16 11:09:35 [Website] [Server] Website started on 0.0.0.0:8080 2017-07-16 11:09:35 [Website] [zcash] Could not dumpprivkey for zcash {"type":"offline","message":"connect ECONNREFUSED 127.0.0.1:19332"} 2017-07-16 11:09:36 [Switching] [Setup] (Thread 1) Loading last proxy state from redis 2017-07-16 11:09:36 [Pool] [zcash] (Thread 1) Share processing setup with redis (127.0.0.1:6379) 2017-07-16 11:09:36 [Pool] [zcash] (Thread 1) Could not parse rpc data from daemon instance 0 Request Data: {"method":"getinfo","params":[],"id":1500183576131} Reponse Data: 2017-07-16 11:09:36 [Master] [PoolSpawner] Spawned 1 pool(s) on 4 thread(s) 2017-07-16 11:09:36 [Switching] [Setup] (Thread 2) Loading last proxy state from redis 2017-07-16 11:09:36 [Pool] [zcash] (Thread 2) Share processing setup with redis (127.0.0.1:6379) 2017-07-16 11:09:36 [Pool] [zcash] (Thread 2) Could not parse rpc data from daemon instance 0 Request Data: {"method":"getinfo","params":[],"id":1500183576387} Reponse Data: 2017-07-16 11:09:36 [Switching] [Setup] (Thread 3) Loading last proxy state from redis 2017-07-16 11:09:36 [Pool] [zcash] (Thread 3) Share processing setup with redis (127.0.0.1:6379) 2017-07-16 11:09:36 [Pool] [zcash] (Thread 3) Could not parse rpc data from daemon instance 0 Request Data: {"method":"getinfo","params":[],"id":1500183576540} Reponse Data: 2017-07-16 11:09:36 [Switching] [Setup] (Thread 4) Loading last proxy state from redis 2017-07-16 11:09:36 [Pool] [zcash] (Thread 4) Share processing setup with redis (127.0.0.1:6379) 2017-07-16 11:09:36 [Pool] [zcash] (Thread 4) Could not parse rpc data from daemon instance 0 Request Data: {"method":"getinfo","params":[],"id":1500183576770}

miningmining commented 6 years ago

Hi,

I have some issues as well... Is there anyone who wants to setup a project for me, well paid ofcourse? Contact me at skype: patrickdegroot007