fix attempt -> attempts
This commit is contained in:
parent
1a1866664e
commit
811ab8f5c4
@ -69,7 +69,7 @@ class BitcoinRPC(object):
|
|||||||
attempts += 1
|
attempts += 1
|
||||||
if self.has_submitblock == True:
|
if self.has_submitblock == True:
|
||||||
try:
|
try:
|
||||||
log.debug("Submitting Block with submitblock: attempt #"+str(attempt))
|
log.debug("Submitting Block with submitblock: attempt #"+str(attempts))
|
||||||
log.debug([block_hex,])
|
log.debug([block_hex,])
|
||||||
resp = (yield self._call('submitblock', [block_hex,]))
|
resp = (yield self._call('submitblock', [block_hex,]))
|
||||||
break
|
break
|
||||||
@ -82,7 +82,7 @@ class BitcoinRPC(object):
|
|||||||
continue
|
continue
|
||||||
elif self.has_submitblock == False:
|
elif self.has_submitblock == False:
|
||||||
try:
|
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,])
|
log.debug([block_hex,])
|
||||||
resp = (yield self._call('getblocktemplate', [{'mode': 'submit', 'data': block_hex}]))
|
resp = (yield self._call('getblocktemplate', [{'mode': 'submit', 'data': block_hex}]))
|
||||||
break
|
break
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user