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

Zdash Rpc update stats #100

Closed sonicdx10 closed 7 years ago

sonicdx10 commented 7 years ago

Well Rpc Updating Stats is not working but I can confirm that payments are made in zdash

WaveringAna commented 7 years ago

It's an issue with zdash's RPC

sonicdx10 commented 7 years ago

good to see this one open again

CloudMiningPool commented 7 years ago

Hi modify libs/paymentProcessor.js - line 306 from this

finalRedisCommands.push(['hset', coin + ':stats', 'networkSols', result[0].response.networksolps]);

to this

finalRedisCommands.push(['hset', coin + ':stats', 'networkSols', result[0].response.networkhashps]);

All works

sonicdx10 commented 7 years ago

testing right away!

sonicdx10 commented 7 years ago

well yeah it delets the error message while trying to update stats in zdash, but still no newtork stats are showing up on web

sonicdx10 commented 7 years ago

my bad, it is working ok! Thx @zcashcloud

sonicdx10 commented 7 years ago

@aayanl @sennevb @hellcatz You may want to merge this solution 🥇

CloudMiningPool commented 7 years ago

@sonicdx10 you are welcome

WaveringAna commented 7 years ago

So zdash hasn't pulled v1.0.3 from zcash yet, eek

sonicdx10 commented 7 years ago

This week I really not sure if willl be .05+ version or the win wallet, but both are in plans of dev so we can wait the update or maybe both of em 😆

sennevb commented 7 years ago

Hi modify libs/paymentProcessor.js - line 306 from this

finalRedisCommands.push(['hset', coin + ':stats', 'networkSols', result[0].response.networksolps]);

to this

finalRedisCommands.push(['hset', coin + ':stats', 'networkSols', result[0].response.networkhashps]);

All works

also Zcash and so wil lstil work if you change this, or do we have to make an if statement???

@aayanl will not be merged??

sonicdx10 commented 7 years ago

So if Zdash team update the soft to .5+ wee need to set it back as it was? 😲

sennevb commented 7 years ago

then its best to wait lol

sonicdx10 commented 7 years ago

It's seems that everything work properly with your solution, I prefer it than wait 🚽 HAHA

sennevb commented 7 years ago

does it work for zdash only, or does Zcash and zclassic also still work with this workaround?? did u test?

sonicdx10 commented 7 years ago

Well, the truth is that I have not found any blocks in either of those two, but the "rpc" has not pointed out any error, nor the node (there is no illegal function in the procedure) but Komodo is running ok

ccycv commented 7 years ago

Is the zdash/hush working? I have installed z-nomp with zcash and zdash, but i'm not sure about zdash config, I don't find any block... is used the default diff settings..