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