Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Justin qp test #1

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.idea/
build
*.egg
*.xml
.idea/workspace.xml
19 changes: 9 additions & 10 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -93,22 +93,21 @@ fi
chown $user $logfile


unetd_user=$(read_config "unetd_user")
if ! [ "$unetd_user" ]; then
read -p "rpcuser (from your unet.conf file): " -r
write_config "unetd_user" $REPLY
unetd_user=$(read_config "ulordd_user")
if ! [ "$ulordd_user" ]; then
read -p "rpcuser (from your ulord.conf file): " -r
write_config "ulordd_user" $REPLY
fi

unetd_password=$(read_config "unetd_password")
if ! [ "$unetd_password" ]; then
read -p "rpcpassword (from your unet.conf file): " -r
write_config "unetd_password" $REPLY
unetd_password=$(read_config "ulordd_password")
if ! [ "$ulordd_password" ]; then
read -p "rpcpassword (from your ulord.conf file): " -r
write_config "ulordd_password" $REPLY
fi


# finish
echo "Configuration written to $uwallet_config."
echo "Please edit this file to finish the configuration."
echo "If you have not done so, please run 'python setup.py install'"
>>>>>>> 217104beed8b7501cc1455fe18da345c0f7b25a7
echo "Then, run 'uwallet-server' to start the daemon"
echo "Then, run 'uwallet-server' to start the daemon"
16 changes: 8 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@

import shutil
import platform
current_place = get_python_lib()
#current_place = get_python_lib()

if platform.system().startswith('Win'):
shutil.copyfile(os.path.join('uwalletserver', 'cryptohello_hash.pyd'),
os.path.join(current_place, 'cryptohello_hash.pyd'))
else:
shutil.copyfile(os.path.join('uwalletserver', 'cryptohello_hash.so'),
os.path.join(current_place, 'cryptohello_hash.so'))
#if platform.system().startswith('Win'):
# shutil.copyfile(os.path.join('uwalletserver', 'cryptohello_hash.pyd'),
# os.path.join(current_place, 'cryptohello_hash.pyd'))
#else:
# shutil.copyfile(os.path.join('uwalletserver', 'cryptohello_hash.so'),
# os.path.join(current_place, 'cryptohello_hash.so'))


requires = [
Expand Down Expand Up @@ -43,4 +43,4 @@
license="GNU Affero GPLv3",
long_description="""Server for the Electrum Lightweight UC Wallet"""
)

8 changes: 1 addition & 7 deletions tests/test_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
#-*- coding:utf-8 -*-
from urllib.request import urlretrieve

def firstNonBlank(lines):
for eachLine in lines:
if not eachLine.strip():
continue
else:
return eachLine

def firstLast(webpage):
f=open(webpage,encoding='utf-8')
Expand All @@ -26,4 +20,4 @@ def download(url='http://www.baidu.com',process=firstLast):
process(retval)

if __name__=="__main__":
download()
download()
12 changes: 6 additions & 6 deletions uwallet.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ pruning_limit = 100
#utxo_cache = 134217728
#addr_cache = 16777216

[unetd]
unetd_host = localhost
unetd_port = 9457
# user and password from unet.conf
unetd_user = lqp123456
unetd_password =
[ulordd]
ulordd_host = localhost
ulordd_port =
# user and password from ulord.conf
ulordd_user =
ulordd_password =
Binary file added uwalletserver/__init__.pyc
Binary file not shown.
Loading