From dfaf36ae164b93221645d4c635bd6db14af39ba7 Mon Sep 17 00:00:00 2001 From: TheLazieR Yip Date: Fri, 25 Nov 2016 07:21:19 -0500 Subject: [PATCH] Remove header_hashes --- lib/coins.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lib/coins.py b/lib/coins.py index 44ded03..334299e 100644 --- a/lib/coins.py +++ b/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"