From bbc53660ae0a13dcd4ac221e96bd6833a3e0b7fb Mon Sep 17 00:00:00 2001 From: Ahmed Bodiwala Date: Tue, 7 Feb 2017 21:32:34 +0000 Subject: [PATCH] Commit Fix For Renamed POW Calc Function --- conf/config_sample.py | 2 +- lib/block_template.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/config_sample.py b/conf/config_sample.py index ed90b263..9fd0f6bd 100644 --- a/conf/config_sample.py +++ b/conf/config_sample.py @@ -18,7 +18,7 @@ ALGO_NAME = 'lyra2re2_hash' # Name of module implementing getPoWHash COINDAEMON_TX = False # For Coins which support TX Messages please enter yes in the TX selection COINDAEMON_HAS_SEGWIT = False -#CUSTOM_HEADER = "000000800000000000000000000000000000000000000000000000000000000000000000000000000000000080020000" +#CUSTOM_HEADER = "000000800000000000000000000000000000000000000000000000000000000000000000000000000000000080020000" #CUSTOM_DIFF1 = 0x0000ffff00000000000000000000000000000000000000000000000000000000 # Scrypt #COINDAEMON_REWARD = 'POW' If it needs to be overridden i believe # ******************** BASIC SETTINGS *************** diff --git a/lib/block_template.py b/lib/block_template.py index f94633e3..2ebb7e66 100644 --- a/lib/block_template.py +++ b/lib/block_template.py @@ -194,7 +194,7 @@ def serialize(self): return ''.join(r) def is_valid(self): - self.calc_sha256() + self.calc_hash() target = util.uint256_from_compact(self.nBits) if self.sha256 > self.target: return False