diff options
author | Andrew Chow <achow101-github@achow101.com> | 2017-06-12 18:53:46 -0700 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2018-02-16 12:09:32 -0500 |
commit | b98bfc5ed0da1efef1eff552a7e1a7ce9caf130f (patch) | |
tree | 6124ecff8ff0e24d707d85e790c591fac92ee2b0 /test/functional/wallet_address_types.py | |
parent | 1598f32304cd55b83ecc623ee0f9e30b4e087b7d (diff) | |
download | bitcoin-b98bfc5ed0da1efef1eff552a7e1a7ce9caf130f.tar.xz |
Create getaddressinfo RPC and deprecate parts of validateaddress
Moves the parts of validateaddress which require the wallet into getaddressinfo
which is part of the wallet RPCs. Mark those parts of validateaddress which
require the wallet as deprecated.
Validateaddress will call getaddressinfo
for the data that both share for right now.
Moves IsMine functions to libbitcoin_common and then links libbitcoin_wallet
before libbitcoin_common in order to prevent linker errors since IsMine is no
longer used in libbitcoin_server.
Diffstat (limited to 'test/functional/wallet_address_types.py')
-rwxr-xr-x | test/functional/wallet_address_types.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/wallet_address_types.py b/test/functional/wallet_address_types.py index 38a3425214..5d2428e6ef 100755 --- a/test/functional/wallet_address_types.py +++ b/test/functional/wallet_address_types.py @@ -93,8 +93,8 @@ class AddressTypeTest(BitcoinTestFramework): def test_address(self, node, address, multisig, typ): """Run sanity checks on an address.""" - info = self.nodes[node].validateaddress(address) - assert(info['isvalid']) + info = self.nodes[node].getaddressinfo(address) + assert(self.nodes[node].validateaddress(address)['isvalid']) if not multisig and typ == 'legacy': # P2PKH assert(not info['isscript']) |