Remove header_hashes

This commit is contained in:
TheLazieR Yip 2016-11-25 07:21:19 -05:00
parent e987510432
commit dfaf36ae16

View File

@ -224,11 +224,6 @@ class Coin(object):
'''Given a header return previous hash'''
return header[4:36]
@classmethod
def header_hashes(cls, header):
'''Given a header return the previous and current block hashes.'''
return header[4:36], double_sha256(header)
@classmethod
def read_block(cls, block):
'''Return a tuple (header, tx_hashes, txs) given a raw block.'''
@ -383,12 +378,6 @@ class Dash(Coin):
import x11_hash
return x11_hash.getPoWHash(header)
@classmethod
def header_hashes(cls, header):
'''Given a header return the previous and current block hashes.'''
import x11_hash
return header[4:36], x11_hash.getPoWHash(header)
class DashTestnet(Dash):
NAME = "Dash"
SHORTNAME = "tDASH"