From 811ab8f5c44edb45c7804c8dec88724ca8620f73 Mon Sep 17 00:00:00 2001 From: Alan Penner Date: Tue, 21 Jan 2014 13:07:21 -0800 Subject: [PATCH] fix attempt -> attempts --- lib/bitcoin_rpc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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