exit() if options.newaddress: print(s.getnewaddress(args[0])) exit() if options.sendto: send(options.sendto, float(args[0]), options.txfee) exit() if options.transactions: listtransactions(args) exit() if options.backupwallet: s.backupwallet(options.backupwallet) exit() 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