diff --git a/lib/bitcoin_rpc.py b/lib/bitcoin_rpc.py index df60466..b651446 100644 --- a/lib/bitcoin_rpc.py +++ b/lib/bitcoin_rpc.py @@ -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