|
|
@ -24,7 +24,7 @@ Todo: |
|
|
|
|
|
|
|
import time, socket, operator, thread, ast, sys,re |
|
|
|
import psycopg2, binascii |
|
|
|
import bitcoin |
|
|
|
import bitcoinrpc |
|
|
|
|
|
|
|
from Abe.abe import hash_to_address, decode_check_address |
|
|
|
from Abe.DataStore import DataStore as Datastore_class |
|
|
@ -278,8 +278,8 @@ class MyStore(Datastore_class): |
|
|
|
|
|
|
|
|
|
|
|
def send_tx(tx): |
|
|
|
import bitcoin |
|
|
|
conn = bitcoin.connect_to_local() |
|
|
|
import bitcoinrpc |
|
|
|
conn = bitcoinrpc.connect_to_local() |
|
|
|
try: |
|
|
|
v = conn.importtransaction(tx) |
|
|
|
except: |
|
|
@ -401,7 +401,7 @@ ds = BCDataStream.BCDataStream() |
|
|
|
|
|
|
|
def memorypool_update(store): |
|
|
|
|
|
|
|
conn = bitcoin.connect_to_local() |
|
|
|
conn = bitcoinrpc.connect_to_local() |
|
|
|
try: |
|
|
|
v = conn.getmemorypool() |
|
|
|
except: |
|
|
|