fix dialog
This commit is contained in:
@@ -113,12 +113,16 @@ if __name__ == '__main__':
|
|||||||
else:
|
else:
|
||||||
password = None
|
password = None
|
||||||
|
|
||||||
host = raw_input("server (default:%s):"%wallet.host)
|
w_host, w_port, w_protocol = wallet.server.split(':')
|
||||||
port = raw_input("port (default:%d):"%wallet.port)
|
host = raw_input("server (default:%s):"%w_host)
|
||||||
|
port = raw_input("port (default:%s):"%w_port)
|
||||||
|
protocol = raw_input("protocol [t=tcp;h=http;n=native] (default:%s):"%w_protocol)
|
||||||
fee = raw_input("fee (default:%s):"%( str(Decimal(wallet.fee)/100000000)) )
|
fee = raw_input("fee (default:%s):"%( str(Decimal(wallet.fee)/100000000)) )
|
||||||
gap = raw_input("gap limit (default 5):")
|
gap = raw_input("gap limit (default 5):")
|
||||||
if host: wallet.host = host
|
if host: w_host = host
|
||||||
if port: wallet.port = int(port)
|
if port: w_port = port
|
||||||
|
if protocol: w_protocol = protocol
|
||||||
|
wallet.server = w_host + ':' + w_port + ':' +w_protocol
|
||||||
if fee: wallet.fee = float(fee)
|
if fee: wallet.fee = float(fee)
|
||||||
if gap: wallet.gap_limit = int(gap)
|
if gap: wallet.gap_limit = int(gap)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user