aionnetwork / aion_miner

aion miner
57 stars 25 forks source link

handleShare never called - pool never accepts any shares.. #42

Open g00dnatur3 opened 5 years ago

g00dnatur3 commented 5 years ago

So i setup the pool, tried to follow all the directions.. etc.

But the pool never calls handleShare and this never accepts any shares

i tried this code inside shareProcessor:

    this.handleShare = function(isValidShare, isValidBlock, shareData){

        console.log()
        console.log('handleShare', `isValidShare: ${isValidShare}`, `isValidBlock: ${isValidBlock}`, 'shareData:', shareData)
        console.log()

I have redis setup, everything looks good, I cant figure out why this is happening...

Any help would be much obliged

Thank You

AionMiner commented 5 years ago

You'll only get an accepted share upon finding a block. This may take quite some time depending on your hashrate - for reference if you had a single 1080Ti mining at 250 Sol/s, with current difficulty you'd be lucky to find 1 or 2 blocks every 24 hours.

g00dnatur3 commented 5 years ago

OK Please try to follow me, with all respect possible:

inside the libs directory there is a file called shareProcessor.js, and inside this file there is a function called handleShare

this function should be called for EVERY VALID share, regardless if it finds a block or not.

this function is NEVER called...

i dont even think the equihash verify is being called...

use GMiner -- it tells you the number of accepted shares.. it never goes up, its stuck at 0...

the miner is NEVER sending shares, like NEVER.

Do you actually have this code running and tested?

I tried from scratch multiple times, going thru your documentation.

I have setup FIVE different equihash pools already, so i think i know what im doing, a little...

Please advise

Thank You