diff options
| author | Andrew Chow <[email protected]> | 2018-02-09 11:12:27 -0500 |
|---|---|---|
| committer | Andrew Chow <[email protected]> | 2018-02-16 12:09:36 -0500 |
| commit | b22cce014852b082d80f1cc35f902b375cba0318 (patch) | |
| tree | d0b165fa758a6b55077d1ff1ddca771efe11e4ad /test/functional/wallet_keypool.py | |
| parent | Create getaddressinfo RPC and deprecate parts of validateaddress (diff) | |
| download | discoin-b22cce014852b082d80f1cc35f902b375cba0318.tar.xz discoin-b22cce014852b082d80f1cc35f902b375cba0318.zip | |
scripted-diff: validateaddress to getaddressinfo in tests
Change all instances of validateaddress to getaddressinfo since it seems that
no test actually uses validateaddress for actually validating addresses.
-BEGIN VERIFY SCRIPT-
find ./test/functional -path '*py' -not -path ./test/functional/wallet_disable.py -not -path ./test/functional/rpc_deprecated.py -not -path ./test/functional/wallet_address_types.py -exec sed -i'' -e 's/validateaddress/getaddressinfo/g' {} \;
-END VERIFY SCRIPT-
Diffstat (limited to 'test/functional/wallet_keypool.py')
| -rwxr-xr-x | test/functional/wallet_keypool.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/wallet_keypool.py b/test/functional/wallet_keypool.py index 45a5eed8e..9825e4d89 100755 --- a/test/functional/wallet_keypool.py +++ b/test/functional/wallet_keypool.py @@ -14,7 +14,7 @@ class KeyPoolTest(BitcoinTestFramework): def run_test(self): nodes = self.nodes addr_before_encrypting = nodes[0].getnewaddress() - addr_before_encrypting_data = nodes[0].validateaddress(addr_before_encrypting) + addr_before_encrypting_data = nodes[0].getaddressinfo(addr_before_encrypting) wallet_info_old = nodes[0].getwalletinfo() assert(addr_before_encrypting_data['hdmasterkeyid'] == wallet_info_old['hdmasterkeyid']) @@ -24,7 +24,7 @@ class KeyPoolTest(BitcoinTestFramework): self.start_node(0) # Keep creating keys addr = nodes[0].getnewaddress() - addr_data = nodes[0].validateaddress(addr) + addr_data = nodes[0].getaddressinfo(addr) wallet_info = nodes[0].getwalletinfo() assert(addr_before_encrypting_data['hdmasterkeyid'] != wallet_info['hdmasterkeyid']) assert(addr_data['hdmasterkeyid'] == wallet_info['hdmasterkeyid']) |