X-Git-Url: https://git.novaco.in/?p=electrum-server.git;a=blobdiff_plain;f=backends%2Fabe%2F__init__.py;h=9fd53cbfbb67fc7d4dcd2e20c84fe51cb1184273;hp=48dd27e38161062ca59b8a0c55237b16c9ef7764;hb=9ef61e849b689da9c90ddfcee796a370fd1d12eb;hpb=f6a717ca7b2ea5281436d2a21e9a19e120eafb60 diff --git a/backends/abe/__init__.py b/backends/abe/__init__.py index 48dd27e..9fd53cb 100644 --- a/backends/abe/__init__.py +++ b/backends/abe/__init__.py @@ -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)