Multiple Fixed

This commit is contained in:
Ahmed Bodiwala 2014-01-30 22:40:36 +00:00
parent d1094c3715
commit 41f11d9ac4
2 changed files with 3 additions and 3 deletions

View File

@ -23,6 +23,7 @@ class BitcoinRPC(object):
} }
client.HTTPClientFactory.noisy = False client.HTTPClientFactory.noisy = False
self.has_submitblock = False self.has_submitblock = False
def _call_raw(self, data): def _call_raw(self, data):
client.Headers client.Headers
return client.getPage( return client.getPage(
@ -45,7 +46,7 @@ class BitcoinRPC(object):
try: try:
log.info("Checking for submitblock") log.info("Checking for submitblock")
resp = (yield self._call('submitblock', [])) resp = (yield self._call('submitblock', []))
self.has_submitblock = Trie self.has_submitblock = True
except Exception as e: except Exception as e:
if (str(e) == "404 Not Found"): if (str(e) == "404 Not Found"):
log.debug("No submitblock detected.") log.debug("No submitblock detected.")
@ -116,7 +117,7 @@ class BitcoinRPC(object):
if json.loads(resp)['result'] == None: if json.loads(resp)['result'] == None:
# make sure the block was created. # make sure the block was created.
log.info("CHECKING FOR BLOCK AFTER SUBMITBLOCK") 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: else:
defer.returnValue(False) defer.returnValue(False)

View File

@ -1 +0,0 @@
13930