fix attempt -> attempts

This commit is contained in:
Alan Penner 2014-01-21 13:07:21 -08:00 committed by Ahmed Bodiwala
parent 1a1866664e
commit 811ab8f5c4

View File

@ -69,7 +69,7 @@ class BitcoinRPC(object):
attempts += 1
if self.has_submitblock == True:
try:
log.debug("Submitting Block with submitblock: attempt #"+str(attempt))
log.debug("Submitting Block with submitblock: attempt #"+str(attempts))
log.debug([block_hex,])
resp = (yield self._call('submitblock', [block_hex,]))
break
@ -82,7 +82,7 @@ class BitcoinRPC(object):
continue
elif self.has_submitblock == False:
try:
log.debug("Submitting Block with getblocktemplate submit: attempt #"+str(attempt))
log.debug("Submitting Block with getblocktemplate submit: attempt #"+str(attempts))
log.debug([block_hex,])
resp = (yield self._call('getblocktemplate', [{'mode': 'submit', 'data': block_hex}]))
break