-
Notifications
You must be signed in to change notification settings - Fork 181
Description
I'm attempting to set up a pool for turtlecoin (https://github.com/turtlecoin/turtlecoin), at http://turtlepool.space, and appear to be having issues with getting the pool to unlock the blocks correctly.
UPDATE: For those using TurtleCoin, this was fixed, this bug still may apply to other cryptonote currencies.
I have set up the daemon and wallet (using simplewallet), and the pool appears to connect to them and read ok.

I then set up my miner to mine to the pool. It has managed to find several successful blocks, however when a block is discovered, the block becomes orphaned after the maturity depth has passed.
There are no obvious errors in any of the logs.
Upon further inspection, it appears that there is an off-by-one error in blockUnlocker.js.
This can be temporarily fixed by changing line 48 of blockUnlocker.js from
apiInterfaces.rpcDaemon('getblockheaderbyheight', {height: block.height}, function(error, result){
to
apiInterfaces.rpcDaemon('getblockheaderbyheight', {height: block.height + 1}, function(error, result){
However this feels like somewhat of a hack.
Please let me know if you need any more info.