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
291 stars 437 forks source link

getblocktemplate call failed for daemon instance 0 #368

Closed barul42 closed 5 years ago

barul42 commented 5 years ago

Hello, I'm trying to get z-nomp to work with my local zencash daemon (new install, the blockchain's still being synchronized), and I've got this error for each (2) threads of the pool:

[Pool] [zen] (Thread 1) getblocktemplate call failed for daemon instance 0 with error {"code":-1,"message":"CreateNewBlock(): TestBlockValidity failed"} [Pool] [zen] (Thread 1) Error with getblocktemplate on creating first job, server cannot start

I'm using the latest git clone of z-nomp with the latest release of zen from github. I've found here to add

* soft nofile 131072 * hard nofile 262144

before the EOF in /etc/security/limits, but I still got the error; is it normal with an unsynchronized blockchain?

Thanks

barul42 commented 5 years ago

It appears the error was due to the blockchain not being completely synchronized. It's all good now, sorry for the noise.