From 41f11d9ac4606fb0a2ed3cbdc76a49b2027bf870 Mon Sep 17 00:00:00 2001 From: Ahmed Bodiwala Date: Thu, 30 Jan 2014 22:40:36 +0000 Subject: [PATCH] Multiple Fixed --- lib/bitcoin_rpc.py | 5 +++-- twistd.pid | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 twistd.pid diff --git a/lib/bitcoin_rpc.py b/lib/bitcoin_rpc.py index e26418a..7f23839 100644 --- a/lib/bitcoin_rpc.py +++ b/lib/bitcoin_rpc.py @@ -23,6 +23,7 @@ class BitcoinRPC(object): } client.HTTPClientFactory.noisy = False self.has_submitblock = False + def _call_raw(self, data): client.Headers return client.getPage( @@ -45,7 +46,7 @@ class BitcoinRPC(object): try: log.info("Checking for submitblock") resp = (yield self._call('submitblock', [])) - self.has_submitblock = Trie + self.has_submitblock = True except Exception as e: if (str(e) == "404 Not Found"): log.debug("No submitblock detected.") @@ -116,7 +117,7 @@ class BitcoinRPC(object): if json.loads(resp)['result'] == None: # make sure the block was created. log.info("CHECKING FOR BLOCK AFTER SUBMITBLOCK") - defer.returnValue((yield self.blockexists(hash_hex, block_hex))) + defer.returnValue((yield self.blockexists(hash_hex, scrypt_hex))) else: defer.returnValue(False) diff --git a/twistd.pid b/twistd.pid deleted file mode 100644 index 8673aeb..0000000 --- a/twistd.pid +++ /dev/null @@ -1 +0,0 @@ -13930 \ No newline at end of file