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
288 stars 441 forks source link

Zen Cash Payment processing #246

Open jamiejacksoncumbria opened 6 years ago

jamiejacksoncumbria commented 6 years ago

Hi when I payment processing on for zen cash I get this error. Any help would be greatful. I noticed this was mentioned on another issue but it did not have a solution attached to it.

/home/jamie/z-nomp/libs/paymentProcessor.js:738 round.confirmations = parseInt((tx.result.confirmations || 0)); ^

TypeError: Cannot read property 'confirmations' of null at /home/jamie/z-nomp/libs/paymentProcessor.js:738:66 at Array.forEach () at /home/jamie/z-nomp/libs/paymentProcessor.js:729:31 at /home/jamie/z-nomp/node_modules/stratum-pool/lib/daemon.js:133:13 at parseJson (/home/jamie/z-nomp/node_modules/stratum-pool/lib/daemon.js:85:17) at IncomingMessage. (/home/jamie/z-nomp/node_modules/stratum-pool/lib/daemon.js:95:17) at emitNone (events.js:110:20) at IncomingMessage.emit (events.js:207:7) at endReadableNT (_stream_readable.js:1059:12) at _combinedTickCallback (internal/process/next_tick.js:138:11)

michaelotis commented 6 years ago

I too am having this issue too with BitcoinZ. Blocks sits pending forever, seems it can't query the transaction and get the confirmation number...

michaelotis commented 6 years ago

@jamiejacksoncumbria I figured it out.

There must be something screwy with a script or redis. This is how I fixed it.

- To start, if you have a set called "blocksConfirmed" already then I don't know if my solution is for you

Give it about 10-15 seconds and you should see the block says PAID on the stats page and all other blocks have confirmation numbers instead of PENDING

All miners also now have immature balances.