Rm hardcoded username pw
This commit is contained in:
parent
a8540b8cbe
commit
b7f108e15a
|
@ -20,7 +20,8 @@ from xcat.zcashRPC import parse_script
|
||||||
# SelectParams('testnet')
|
# SelectParams('testnet')
|
||||||
SelectParams('regtest')
|
SelectParams('regtest')
|
||||||
# TODO: Accurately read user and pw info
|
# TODO: Accurately read user and pw info
|
||||||
bitcoind = bitcoin.rpc.Proxy(service_url="http://user:password@127.0.0.1:18332")
|
# bitcoind = bitcoin.rpc.Proxy(service_url="http://user:password@127.0.0.1:18332")
|
||||||
|
bitcoind = bitcoin.rpc.Proxy()
|
||||||
FEE = 0.001*COIN
|
FEE = 0.001*COIN
|
||||||
|
|
||||||
def validateaddress(addr):
|
def validateaddress(addr):
|
||||||
|
|
|
@ -139,6 +139,7 @@ def checktrade(tradeid):
|
||||||
trade = db.get(tradeid)
|
trade = db.get(tradeid)
|
||||||
if find_role(trade.sell) == 'test':
|
if find_role(trade.sell) == 'test':
|
||||||
input("Is this a test? Both buyer and seller addresses are yours, press 'enter' to test.")
|
input("Is this a test? Both buyer and seller addresses are yours, press 'enter' to test.")
|
||||||
|
checkSellStatus(tradeid)
|
||||||
checkBuyStatus(tradeid)
|
checkBuyStatus(tradeid)
|
||||||
checkSellStatus(tradeid)
|
checkSellStatus(tradeid)
|
||||||
checkBuyStatus(tradeid)
|
checkBuyStatus(tradeid)
|
||||||
|
|
|
@ -21,7 +21,8 @@ from xcat.utils import *
|
||||||
# SelectParams('testnet')
|
# SelectParams('testnet')
|
||||||
SelectParams('regtest')
|
SelectParams('regtest')
|
||||||
# TODO: accurately read user and pw info
|
# TODO: accurately read user and pw info
|
||||||
zcashd = zcash.rpc.Proxy(service_url="http://user:password@127.0.0.1:18232")
|
# zcashd = zcash.rpc.Proxy(service_url="http://user:password@127.0.0.1:18232")
|
||||||
|
zcashd = zcash.rpc.Proxy()
|
||||||
FEE = 0.001*COIN
|
FEE = 0.001*COIN
|
||||||
|
|
||||||
def x2s(hexstring):
|
def x2s(hexstring):
|
||||||
|
|
Loading…
Reference in New Issue