X-Git-Url: https://git.novaco.in/?p=electrum-server.git;a=blobdiff_plain;f=server.py;h=4d347e7896909fe5991c2b5d01021ccc8152a38d;hp=927e62de7b4febe551610010dd4b27818612a98a;hb=1189cf8382d936a035e399f9afdd95080b7d087e;hpb=c9c337a89a3f04d7a985a521ca552d421fd94fda diff --git a/server.py b/server.py index 927e62d..4d347e7 100755 --- a/server.py +++ b/server.py @@ -48,22 +48,25 @@ def create_config(): config.set('server', 'report_host', '') config.set('server', 'stratum_tcp_port', '50001') config.set('server', 'stratum_http_port', '8081') - config.set('server', 'stratum_tcp_ssl_port', '50002') - config.set('server', 'stratum_http_ssl_port', '8082') + config.set('server', 'stratum_tcp_ssl_port', '') + config.set('server', 'stratum_http_ssl_port', '') config.set('server', 'report_stratum_tcp_port', '') config.set('server', 'report_stratum_http_port', '') config.set('server', 'report_stratum_tcp_ssl_port', '') config.set('server', 'report_stratum_http_ssl_port', '') + config.set('server', 'ssl_certfile', '') + config.set('server', 'ssl_keyfile', '') config.set('server', 'password', '') config.set('server', 'irc', 'yes') config.set('server', 'irc_nick', '') config.set('server', 'coin', '') config.set('server', 'datadir', '') - config.add_section('database') - config.set('database', 'type', 'psycopg2') - config.set('database', 'database', 'abe') - config.set('database', 'limit', '1000') - config.set('server', 'backend', 'abe') + + # use leveldb as default + config.set('server', 'backend', 'leveldb') + config.add_section('leveldb') + config.set('leveldb', 'path', '/dev/shm/electrum_db') + config.set('leveldb', 'pruning_limit', '100') for path in ('/etc/', ''): filename = path + 'electrum.conf' @@ -92,6 +95,7 @@ def run_rpc_command(command, stratum_tcp_port): msg = '' while True: o = s.recv(1024) + if not o: break msg += o if msg.find('\n') != -1: break