electroneum / electroneum-pool

GNU General Public License v2.0
177 stars 172 forks source link

Does electroneum pool fork pay for orphan blocks? #101

Open dyablohunter opened 6 years ago

dyablohunter commented 6 years ago

On some stratum protocol pools the software pays for orphan blocks, does this one pay for them from the next blocks mined?

Zer0dn commented 6 years ago

blockUnlocker.js

Line #126 orphanCommands.push(['del', config.coin + ':shares:round' + block.height]);

By this line and my limited time exploring the code it looks like some blocks if they do not qualify are orphaned and the block is deleted along with all shares from the round from redis as work done.

dyablohunter commented 6 years ago

How much work is deleted? Only for that block? If so, that is not a very significant amount, yes?

Zer0dn commented 6 years ago

Without checking deeper into the code yes just the orphan is deleted with the shares sent in for it.

I just seen that you had this here and wanted to at a minimum give you what I found on it :)