From 46018f1ac5fd1df758cecc8dd12be738d6d3e07b Mon Sep 17 00:00:00 2001 From: Ovidiu Constantin Date: Wed, 23 Nov 2011 11:20:26 +0200 Subject: [PATCH 1/1] * fix bitcoinrpc import library name --- server.py | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server.py b/server.py index da51e73..e3d53a5 100644 --- a/server.py +++ b/server.py @@ -24,7 +24,7 @@ Todo: import time, socket, operator, thread, ast, sys import psycopg2, binascii -import bitcoinrpc +import bitcoin from Abe.abe import hash_to_address, decode_check_address from Abe.DataStore import DataStore as Datastore_class @@ -271,8 +271,8 @@ class MyStore(Datastore_class): def send_tx(tx): - import bitcoinrpc - conn = bitcoinrpc.connect_to_local() + import bitcoin + conn = bitcoin.connect_to_local() try: v = conn.importtransaction(tx) except: @@ -394,7 +394,7 @@ ds = BCDataStream.BCDataStream() def memorypool_update(store): - conn = bitcoinrpc.connect_to_local() + conn = bitcoin.connect_to_local() try: v = conn.getmemorypool() except: -- 1.7.1