Added More Info on Submit

This commit is contained in:
ahmedbodi 2013-12-27 14:55:14 +01:00
parent e26e74bf0a
commit 50162a715d

View File

@ -48,7 +48,8 @@ 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 Failed, does the coind have submitblock?")
log.exception("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))