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