Open erm3nda opened 8 years ago
Added:
I edited my prevhash()
function according to ![ https://github.com/Crypto-Expert/stratum-mining/blob/master/lib/bitcoin_rpc.py] and problem has gone.
def prevhash(self):
resp = (yield self._call('getblocktemplate', []))
try:
defer.returnValue(json.loads(resp)['result']['previousblockhash'])
#defer.returnValue(json.loads(resp)['result']['data'][8:72])
except Exception as e:
log.exception("Cannot decode prevhash %s" % str(e))
raise
I found similar issues like: ![https://github.com/Crypto-Expert/stratum-mining/issues/68] ![https://github.com/viacoin/viacoin/issues/2]
My error:
Looking the file, i see that is calling getwork, wich I understand is not working anymore. I've tried to play with the getblocktemplate but still no luck.