tfix dialog - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 96eaf00af855fe59b81bdd5fcce1e818ad31dc10 DIR parent 6458031a682d66a05eee7a6fe4a4e14b9c661aaa HTML Author: ThomasV <thomasv@gitorious> Date: Sat, 31 Mar 2012 06:39:23 +0200 fix dialog Diffstat: M client/electrum | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) --- DIR diff --git a/client/electrum b/client/electrum t@@ -113,12 +113,16 @@ if __name__ == '__main__': else: password = None - host = raw_input("server (default:%s):"%wallet.host) - port = raw_input("port (default:%d):"%wallet.port) + w_host, w_port, w_protocol = wallet.server.split(':') + 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)) ) gap = raw_input("gap limit (default 5):") - if host: wallet.host = host - if port: wallet.port = int(port) + if host: w_host = host + 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 gap: wallet.gap_limit = int(gap)