From 604e22749c69936ba9c02ae61eed50a426facb91 Mon Sep 17 00:00:00 2001 From: Alan Penner Date: Wed, 22 Jan 2014 14:02:32 -0800 Subject: [PATCH] change submitblock to try both (correct) hashes on block creation --- lib/template_registry.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/template_registry.py b/lib/template_registry.py index e7ddce8..a2a5763 100644 --- a/lib/template_registry.py +++ b/lib/template_registry.py @@ -287,10 +287,7 @@ class TemplateRegistry(object): # 7. Submit block to the network serialized = binascii.hexlify(job.serialize()) - if settings.BLOCK_CHECK_SCRYPT_HASH: - on_submit = self.bitcoin_rpc.submitblock(serialized, scrypt_hash_hex) - else: - on_submit = self.bitcoin_rpc.submitblock(serialized, block_hash_hex) + on_submit = self.bitcoin_rpc.submitblock(serialized, block_hash_hex, scrypt_hash_hex) if on_submit: self.update_block()