|
|
@ -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" |
|
|
|