stratum-mining icon indicating copy to clipboard operation
stratum-mining copied to clipboard

finalize does not return true

Open bandroidx opened this issue 12 years ago • 3 comments

def finalize(self, merkle_root_int, extranonce1_bin, extranonce2_bin, ntime, nonce): '''Take all parameters required to compile block candidate. self.is_valid() should return True then...'''

    self.hashMerkleRoot = merkle_root_int
    self.nTime = ntime
    self.nNonce = nonce
    self.vtx[0].set_extranonce(extranonce1_bin + extranonce2_bin)        
    self.sha256 = None # We changed block parameters, let's reset sha256 cache

in the code above, finalize does not return true. It seems it should?

bandroidx avatar Apr 10 '13 12:04 bandroidx

using it for bitcoin or litecoin?

viperaus avatar Apr 10 '13 12:04 viperaus

litecoin

bandroidx avatar Apr 10 '13 12:04 bandroidx

slush's version needs tweaking for litecoin - my fork is trying to get it operating with litecoind - i think i may be getting close, just trying to find some ppl to point to the server and get some shares so i can verify.. hit me up on skype or msn (viperaus, [email protected] respectively) and ill run things through with you..

viperaus avatar Apr 10 '13 12:04 viperaus