Merge pull request #4354
7ad720d
Added encryptwallet call to bitrpc.py (dllud)
This commit is contained in:
commit
5a514c35bc
1 changed files with 12 additions and 0 deletions
|
@ -22,6 +22,18 @@ if cmd == "backupwallet":
|
||||||
print access.backupwallet(path)
|
print access.backupwallet(path)
|
||||||
except:
|
except:
|
||||||
print "\n---An error occurred---\n"
|
print "\n---An error occurred---\n"
|
||||||
|
|
||||||
|
elif cmd == "encryptwallet":
|
||||||
|
try:
|
||||||
|
pwd = getpass.getpass(prompt="Enter passphrase: ")
|
||||||
|
pwd2 = getpass.getpass(prompt="Repeat passphrase: ")
|
||||||
|
if pwd == pwd2:
|
||||||
|
access.encryptwallet(pwd)
|
||||||
|
print "\n---Wallet encrypted. Server stopping, restart to run with encrypted wallet---\n"
|
||||||
|
else:
|
||||||
|
print "\n---Passphrases do not match---\n"
|
||||||
|
except:
|
||||||
|
print "\n---An error occurred---\n"
|
||||||
|
|
||||||
elif cmd == "getaccount":
|
elif cmd == "getaccount":
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue