fixes to complete mainline_bitcoind merge
authorEmery Hemingway <emery@fuzzlabs.org>
Thu, 7 Nov 2013 21:02:17 +0000 (16:02 -0500)
committerEmery Hemingway <emery@fuzzlabs.org>
Thu, 7 Nov 2013 21:02:17 +0000 (16:02 -0500)
backends/bitcoind/blockchain_processor.py

index cd169af..10b81c8 100644 (file)
@@ -782,7 +782,7 @@ class BlockchainProcessor(Processor):
         if addr not in self.watched_addresses:
             self.watched_addresses.append(addr)
 
-    def getfullblock(block_hash):
+    def getfullblock(self, block_hash):
         block = self.bitcoind('getblock', [block_hash])
 
         rawtxreq = []
@@ -805,9 +805,9 @@ class BlockchainProcessor(Processor):
         r = loads(respdata)
         rawtxdata = []
         for ir in r:
-            if r['error'] is not None:
+            if ir['error'] is not None:
                 raise BaseException(r['error'])
-            rawtxdata.append(r['result'])
+            rawtxdata.append(ir['result'])
         block['tx'] = rawtxdata
         return block