From 3749900d6505e28b0a072a3c9694ccbc0066b6d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=84=87=E5=B1=B1P?= Date: Wed, 18 Apr 2018 20:29:24 +0900 Subject: [PATCH] Fix bitzeny params and header (#453) --- lib/coins.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/coins.py b/lib/coins.py index eaf8cc8..132e703 100644 --- a/lib/coins.py +++ b/lib/coins.py @@ -1292,12 +1292,18 @@ class Bitzeny(Coin): ESTIMATE_FEE = 0.001 RELAY_FEE = 0.001 DAEMON = daemon.FakeEstimateFeeDaemon - TX_COUNT = 1000 - TX_COUNT_HEIGHT = 10000 + TX_COUNT = 1408733 + TX_COUNT_HEIGHT = 1015115 TX_PER_BLOCK = 1 RPC_PORT = 9252 REORG_LIMIT = 1000 + @classmethod + def header_hash(cls, header): + '''Given a header return the hash.''' + import zny_yescrypt + return zny_yescrypt.getPoWHash(header) + class CanadaeCoin(AuxPowMixin, Coin): NAME = "CanadaeCoin"