We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5694d10 + 7ad720d commit 5a514c3Copy full SHA for 5a514c3
contrib/bitrpc/bitrpc.py
@@ -22,6 +22,18 @@
22
print access.backupwallet(path)
23
except:
24
print "\n---An error occurred---\n"
25
+
26
+elif cmd == "encryptwallet":
27
+ try:
28
+ pwd = getpass.getpass(prompt="Enter passphrase: ")
29
+ pwd2 = getpass.getpass(prompt="Repeat passphrase: ")
30
+ if pwd == pwd2:
31
+ access.encryptwallet(pwd)
32
+ print "\n---Wallet encrypted. Server stopping, restart to run with encrypted wallet---\n"
33
+ else:
34
+ print "\n---Passphrases do not match---\n"
35
+ except:
36
+ print "\n---An error occurred---\n"
37
38
elif cmd == "getaccount":
39
try:
0 commit comments