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'''
|
'''Given a header return previous hash'''
|
||||||
return header[4:36]
|
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
|
@classmethod
|
||||||
def read_block(cls, block):
|
def read_block(cls, block):
|
||||||
'''Return a tuple (header, tx_hashes, txs) given a raw block.'''
|
'''Return a tuple (header, tx_hashes, txs) given a raw block.'''
|
||||||
@ -383,12 +378,6 @@ class Dash(Coin):
|
|||||||
import x11_hash
|
import x11_hash
|
||||||
return x11_hash.getPoWHash(header)
|
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):
|
class DashTestnet(Dash):
|
||||||
NAME = "Dash"
|
NAME = "Dash"
|
||||||
SHORTNAME = "tDASH"
|
SHORTNAME = "tDASH"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user