-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2267 from barton2526/python
refactor: small python cleanup
- Loading branch information
Showing
3 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
from jsonrpc import ServiceProxy | ||
import getpass | ||
access = ServiceProxy("http://127.0.0.1:8332") | ||
pwd = raw_input("Enter old wallet passphrase: ") | ||
pwd2 = raw_input("Enter new wallet passphrase: ") | ||
access.walletpassphrasechange(pwd, pwd2) | ||
pwd = getpass.getpass(prompt="Enter old wallet passphrase: ") | ||
pwd2 = getpass.getpass(prompt="Enter new wallet passphrase: ") | ||
access.walletpassphrasechange(pwd, pwd2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
from jsonrpc import ServiceProxy | ||
import getpass | ||
access = ServiceProxy("http://127.0.0.1:8332") | ||
pwd = raw_input("Enter wallet passphrase: ") | ||
access.walletpassphrase(pwd, 60) | ||
pwd = getpass.getpass(prompt="Enter wallet passphrase: ") | ||
access.walletpassphrase(pwd, 60) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters