HOWTO: typo
[electrum-server.git] / backends / abe / __init__.py
index 3b078ed..fe6fb80 100644 (file)
@@ -16,7 +16,7 @@ from processor import Processor, print_log
 from utils import *
 
 
-class AbeStore(Datastore.Datastore):
+class AbeStore(DataStore.DataStore):
 
     def __init__(self, config):
         conf = DataStore.CONFIG_DEFAULTS
@@ -39,7 +39,7 @@ class AbeStore(Datastore.Datastore):
             print_log('  addrtype = 48')
             self.addrtype = 48
 
-        Datastore.Datastore.__init__(self, args)
+        DataStore.DataStore.__init__(self, args)
 
         # Use 1 (Bitcoin) if chain_id is not sent
         self.chain_id = self.datadirs[0]["chain_id"] or 1
@@ -290,7 +290,7 @@ class AbeStore(Datastore.Datastore):
                 "index": int(pos),
                 "value": int(value),
             })
-            known_tx.append(self.hashout_hex(tx_hash))
+            known_tx.append(tx_hash)
 
         # todo: sort them really...
         txpoints = sorted(txpoints, key=operator.itemgetter("timestamp"))
@@ -473,8 +473,8 @@ class AbeStore(Datastore.Datastore):
         print_log("get_chunk", index, len(msg))
         return msg
 
-    def get_raw_tx(self, tx_hash, height):
-        postdata = dumps({"method": 'getrawtransaction', 'params': [tx_hash, 0, height], 'id': 'jsonrpc'})
+    def get_raw_tx(self, tx_hash):
+        postdata = dumps({"method": 'getrawtransaction', 'params': [tx_hash, 0], 'id': 'jsonrpc'})
         respdata = urllib.urlopen(self.bitcoind_url, postdata).read()
         r = loads(respdata)
         if r['error'] is not None:
@@ -717,7 +717,7 @@ class BlockchainProcessor(Processor):
             try:
                 tx_hash = params[0]
                 height = params[1]
-                result = self.store.get_raw_tx(tx_hash, height)
+                result = self.store.get_raw_tx(tx_hash)
             except Exception, e:
                 error = str(e) + ': ' + tx_hash
                 print_log("error:", error)