mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 07:51:27 +00:00
Ok, *really* fix to use the correct bitcoinrpc module.
This commit is contained in:
parent
439bc61a2c
commit
b02b169277
2 changed files with 5 additions and 5 deletions
|
@ -22,7 +22,7 @@ INSTALL
|
||||||
|
|
||||||
2. install bitcoin-abe : https://github.com/jtobey/bitcoin-abe
|
2. install bitcoin-abe : https://github.com/jtobey/bitcoin-abe
|
||||||
|
|
||||||
3. download bitcoin-python: https://github.com/toomanysecrets0/bitcoin-python
|
3. download bitcoin-python: https://github.com/laanwj/bitcoin-python
|
||||||
patch it with bitcoinrpc_connection.py.diff
|
patch it with bitcoinrpc_connection.py.diff
|
||||||
|
|
||||||
4. launch the server: nohup python -u server.py > /var/log/electrum.log &
|
4. launch the server: nohup python -u server.py > /var/log/electrum.log &
|
||||||
|
|
|
@ -24,7 +24,7 @@ Todo:
|
||||||
|
|
||||||
import time, socket, operator, thread, ast, sys,re
|
import time, socket, operator, thread, ast, sys,re
|
||||||
import psycopg2, binascii
|
import psycopg2, binascii
|
||||||
import bitcoin
|
import bitcoinrpc
|
||||||
|
|
||||||
from Abe.abe import hash_to_address, decode_check_address
|
from Abe.abe import hash_to_address, decode_check_address
|
||||||
from Abe.DataStore import DataStore as Datastore_class
|
from Abe.DataStore import DataStore as Datastore_class
|
||||||
|
@ -278,8 +278,8 @@ class MyStore(Datastore_class):
|
||||||
|
|
||||||
|
|
||||||
def send_tx(tx):
|
def send_tx(tx):
|
||||||
import bitcoin
|
import bitcoinrpc
|
||||||
conn = bitcoin.connect_to_local()
|
conn = bitcoinrpc.connect_to_local()
|
||||||
try:
|
try:
|
||||||
v = conn.importtransaction(tx)
|
v = conn.importtransaction(tx)
|
||||||
except:
|
except:
|
||||||
|
@ -401,7 +401,7 @@ ds = BCDataStream.BCDataStream()
|
||||||
|
|
||||||
def memorypool_update(store):
|
def memorypool_update(store):
|
||||||
|
|
||||||
conn = bitcoin.connect_to_local()
|
conn = bitcoinrpc.connect_to_local()
|
||||||
try:
|
try:
|
||||||
v = conn.getmemorypool()
|
v = conn.getmemorypool()
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Add table
Reference in a new issue