1
0

Clean up pick_random_server() and filter_protocol() and their

call sites.

Remove unused imports and redundant random pick of server
This commit is contained in:
Neil Booth
2015-05-24 11:14:39 +09:00
parent 48ad7c36a8
commit 01d8f79a75
5 changed files with 19 additions and 38 deletions

View File

@@ -309,11 +309,7 @@ if __name__ == '__main__':
else:
password = prompt_password("Password (hit return if you do not wish to encrypt your wallet):")
# if config.server is set, the user either passed the server on command line
# or chose it previously already. if he didn't pass a server on the command line,
# we just pick up a random one.
if not config.get('server'):
config.set_key('server', pick_random_server())
# If config doesn't have a server, network.py will pick a random one
#fee = options.tx_fee if options.tx_fee else raw_input("fee (default:%s):" % (str(Decimal(wallet.fee)/100000000)))
#gap = options.gap_limit if options.gap_limit else raw_input("gap limit (default 5):")