From 79053a5f2b26ee3dfd9a0bb3fd01ac4733fc92b5 Mon Sep 17 00:00:00 2001 From: John Newbery Date: Tue, 17 Apr 2018 17:42:31 -0400 Subject: [rpc] [wallet] Add 'hdmasterkeyid' alias return values. Restores the return value in getwalletinfo() and getaddressinfo() RPC methods for backwards compatibility --- test/functional/wallet_keypool.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/functional/wallet_keypool.py') diff --git a/test/functional/wallet_keypool.py b/test/functional/wallet_keypool.py index 66d382e4cd..1285515dfc 100755 --- a/test/functional/wallet_keypool.py +++ b/test/functional/wallet_keypool.py @@ -16,6 +16,7 @@ class KeyPoolTest(BitcoinTestFramework): addr_before_encrypting = nodes[0].getnewaddress() addr_before_encrypting_data = nodes[0].getaddressinfo(addr_before_encrypting) wallet_info_old = nodes[0].getwalletinfo() + assert_equal(wallet_info_old['hdseedid'], wallet_info_old['hdmasterkeyid']) assert(addr_before_encrypting_data['hdseedid'] == wallet_info_old['hdseedid']) # Encrypt wallet and wait to terminate @@ -26,6 +27,7 @@ class KeyPoolTest(BitcoinTestFramework): addr = nodes[0].getnewaddress() addr_data = nodes[0].getaddressinfo(addr) wallet_info = nodes[0].getwalletinfo() + assert_equal(wallet_info['hdseedid'], wallet_info['hdmasterkeyid']) assert(addr_before_encrypting_data['hdseedid'] != wallet_info['hdseedid']) assert(addr_data['hdseedid'] == wallet_info['hdseedid']) assert_raises_rpc_error(-12, "Error: Keypool ran out, please call keypoolrefill first", nodes[0].getnewaddress) -- cgit v1.2.3