slush0 / stratum-mining

Demo implementation of Bitcoin mining pool on Stratum protocol
Other
247 stars 207 forks source link

finalize does not return true #3

Open bandroidx opened 11 years ago

bandroidx commented 11 years ago

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?

viperaus commented 11 years ago

using it for bitcoin or litecoin?

bandroidx commented 11 years ago

litecoin

viperaus commented 11 years ago

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, viperaus@hotmail.com respectively) and ill run things through with you..