commit
4a68da7bcd
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -10,3 +10,6 @@
|
||||
[submodule "externals/quarkcoin-hash"]
|
||||
path = externals/quarkcoin-hash
|
||||
url = https://github.com/Neisklar/quarkcoin-hash-python
|
||||
[submodule "externals/vertcoin_scrypt"]
|
||||
path = externals/vertcoin_scrypt
|
||||
url = https://github.com/scr34m/vertcoin_scrypt.git
|
||||
|
||||
1
externals/vertcoin_scrypt
vendored
Submodule
1
externals/vertcoin_scrypt
vendored
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 4a3d789cf4fd713308f26610e39e81cb7d86423f
|
||||
@ -296,7 +296,7 @@ class CBlock(object):
|
||||
self.quark = uint256_from_str(quark_hash.getPoWHash(''.join(r)))
|
||||
return self.quark
|
||||
elif settings.COINDAEMON_ALGO == 'scrypt-jane':
|
||||
def calc_acryptjane(self):
|
||||
def calc_scryptjane(self):
|
||||
if self.scryptjane is None:
|
||||
r = []
|
||||
r.append(struct.pack("<i", self.nVersion))
|
||||
|
||||
@ -241,10 +241,10 @@ class TemplateRegistry(object):
|
||||
if settings.COINDAEMON_ALGO == 'scrypt':
|
||||
hash_bin = ltc_scrypt.getPoWHash(''.join([ header_bin[i*4:i*4+4][::-1] for i in range(0, 20) ]))
|
||||
elif settings.COINDAEMON_ALGO == 'scrypt-jane':
|
||||
if settings.SCRYPTJANE_NAME = 'vtc_scrypt:
|
||||
if settings.SCRYPTJANE_NAME == 'vtc_scrypt':
|
||||
hash_bin = scryptjane.getPoWHash(''.join([ header_bin[i*4:i*4+4][::-1] for i in range(0, 20) ]))
|
||||
else:
|
||||
hash_bin = scryptjane.getPoWHash(''.join([ header_bin[i*4:i*4+4][::-1] for i in range(0, 20) ])), int(ntime, 16))
|
||||
hash_bin = scryptjane.getPoWHash(''.join([ header_bin[i*4:i*4+4][::-1] for i in range(0, 20) ]), int(ntime, 16))
|
||||
elif settings.COINDAEMON_ALGO == 'quark':
|
||||
hash_bin = quark_hash.getPoWHash(''.join([ header_bin[i*4:i*4+4][::-1] for i in range(0, 20) ]))
|
||||
elif settings.COINDAEMON_ALGO == 'skeinhash':
|
||||
|
||||
Loading…
Reference in New Issue
Block a user