fix attempt -> attempts
This commit is contained in:
parent
1a1866664e
commit
811ab8f5c4
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user