This commit is contained in:
ahmedbodi 2013-12-19 13:27:18 +00:00
parent 4f5388f715
commit 5cd31517f8

View File

@ -48,7 +48,7 @@ class BitcoinRPC(object):
resp = (yield self._call('submitblock', [block_hex,]))
except Exception:
try:
log.exception "Submit Block call failed, trying GetBlockTemplate")
log.exception("Submit Block call failed, trying GetBlockTemplate")
resp = (yield self._call('getblocktemplate', [{'mode': 'submit', 'data': block_hex}]))
except Exception as e:
log.exception("Both SubmitBlock and GetBlockTemplate failed. Problem Submitting block %s" % str(e))