if options.encrypt: print("""Encrypting wallet. This cannot be undone, but the passphrase can be changed later. You may need to restart the daemon afterwards.""") pphrase = raw_input("Enter passphrase: ") pphrase2 = raw_input("Confirm p-phrase: ") if pphrase == pphrase2: s.encryptwallet(pphrase) else: print("Passphrases do not match, not encrypting.") exit() if options.unlock: t = 60 print("Unlocking an encrypted wallet for %.2f %s" % tuple(timeprint(t))) pphrase = raw_input("Enter passphrase: ") s.walletpassphrase(pphrase, t) exit() if options.peers: # The ip addresses contain occasional dupes peers = s.getpeerinfo() peer_ips = set() for p in peers: addr = p["addr"].split(":")[0] peer_ips.add(addr) for ip in peer_ips: print(ip) exit() info = s.getinfo()