Remove header_hashes
This commit is contained in:
parent
e987510432
commit
dfaf36ae16
11
lib/coins.py
11
lib/coins.py
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user