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_basic.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_basic.py')
| -rwxr-xr-x | test/functional/wallet_basic.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/wallet_basic.py b/test/functional/wallet_basic.py index d041b4c19..b644f3495 100755 --- a/test/functional/wallet_basic.py +++ b/test/functional/wallet_basic.py @@ -317,7 +317,7 @@ class WalletTest(BitcoinTestFramework): self.nodes[1].importaddress(address_to_import) # 3. Validate that the imported address is watch-only on node1 - assert(self.nodes[1].validateaddress(address_to_import)["iswatchonly"]) + assert(self.nodes[1].getaddressinfo(address_to_import)["iswatchonly"]) # 4. Check that the unspents after import are not spendable assert_array_result(self.nodes[1].listunspent(), |