aboutsummaryrefslogtreecommitdiff
path: root/test/functional/wallet_keypool.py
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2018-04-17 17:42:31 -0400
committerJohn Newbery <john@johnnewbery.com>2018-05-19 11:21:20 -0400
commit79053a5f2b26ee3dfd9a0bb3fd01ac4733fc92b5 (patch)
tree5b06058f3c0e14480b2ca0a010af0ed66231f8bb /test/functional/wallet_keypool.py
parentc75c351419dac3dfe9578604ea5b2f7599452b4a (diff)
downloadbitcoin-79053a5f2b26ee3dfd9a0bb3fd01ac4733fc92b5.tar.xz
[rpc] [wallet] Add 'hdmasterkeyid' alias return values.
Restores the return value in getwalletinfo() and getaddressinfo() RPC methods for backwards compatibility
Diffstat (limited to 'test/functional/wallet_keypool.py')
-rwxr-xr-xtest/functional/wallet_keypool.py2
1 files changed, 2 insertions, 0 deletions
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)