Skip to content

Commit 345bff6

Browse files
committed
Remove hdmasterkeyid
1 parent bac8c67 commit 345bff6

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

src/wallet/rpcwallet.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2419,7 +2419,6 @@ static UniValue getwalletinfo(const JSONRPCRequest& request)
24192419
" \"unlocked_until\": ttt, (numeric) the timestamp in seconds since epoch (midnight Jan 1 1970 GMT) that the wallet is unlocked for transfers, or 0 if the wallet is locked\n"
24202420
" \"paytxfee\": x.xxxx, (numeric) the transaction fee configuration, set in " + CURRENCY_UNIT + "/kB\n"
24212421
" \"hdseedid\": \"<hash160>\" (string, optional) the Hash160 of the HD seed (only present when HD is enabled)\n"
2422-
" \"hdmasterkeyid\": \"<hash160>\" (string, optional) alias for hdseedid retained for backwards-compatibility. Will be removed in V0.18.\n"
24232422
" \"private_keys_enabled\": true|false (boolean) false if privatekeys are disabled for this wallet (enforced watch-only wallet)\n"
24242423
"}\n"
24252424
},
@@ -2457,7 +2456,6 @@ static UniValue getwalletinfo(const JSONRPCRequest& request)
24572456
obj.pushKV("paytxfee", ValueFromAmount(pwallet->m_pay_tx_fee.GetFeePerK()));
24582457
if (!seed_id.IsNull()) {
24592458
obj.pushKV("hdseedid", seed_id.GetHex());
2460-
obj.pushKV("hdmasterkeyid", seed_id.GetHex());
24612459
}
24622460
obj.pushKV("private_keys_enabled", !pwallet->IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS));
24632461
return obj;
@@ -3661,7 +3659,6 @@ UniValue getaddressinfo(const JSONRPCRequest& request)
36613659
" \"timestamp\" : timestamp, (number, optional) The creation time of the key if available in seconds since epoch (Jan 1 1970 GMT)\n"
36623660
" \"hdkeypath\" : \"keypath\" (string, optional) The HD keypath if the key is HD and available\n"
36633661
" \"hdseedid\" : \"<hash160>\" (string, optional) The Hash160 of the HD seed\n"
3664-
" \"hdmasterkeyid\" : \"<hash160>\" (string, optional) alias for hdseedid maintained for backwards compatibility. Will be removed in V0.18.\n"
36653662
" \"labels\" (object) Array of labels associated with the address.\n"
36663663
" [\n"
36673664
" { (json object of label data)\n"
@@ -3727,7 +3724,6 @@ UniValue getaddressinfo(const JSONRPCRequest& request)
37273724
if (!meta->hdKeypath.empty()) {
37283725
ret.pushKV("hdkeypath", meta->hdKeypath);
37293726
ret.pushKV("hdseedid", meta->hd_seed_id.GetHex());
3730-
ret.pushKV("hdmasterkeyid", meta->hd_seed_id.GetHex());
37313727
}
37323728
}
37333729

test/functional/wallet_hd.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ def skip_test_if_missing_module(self):
2727
def run_test(self):
2828
# Make sure we use hd, keep masterkeyid
2929
masterkeyid = self.nodes[1].getwalletinfo()['hdseedid']
30-
assert_equal(masterkeyid, self.nodes[1].getwalletinfo()['hdmasterkeyid'])
3130
assert_equal(len(masterkeyid), 40)
3231

3332
# create an internal key
@@ -53,7 +52,6 @@ def run_test(self):
5352
hd_info = self.nodes[1].getaddressinfo(hd_add)
5453
assert_equal(hd_info["hdkeypath"], "m/0'/0'/"+str(i)+"'")
5554
assert_equal(hd_info["hdseedid"], masterkeyid)
56-
assert_equal(hd_info["hdmasterkeyid"], masterkeyid)
5755
self.nodes[0].sendtoaddress(hd_add, 1)
5856
self.nodes[0].generate(1)
5957
self.nodes[0].sendtoaddress(non_hd_add, 1)
@@ -83,7 +81,6 @@ def run_test(self):
8381
hd_info_2 = self.nodes[1].getaddressinfo(hd_add_2)
8482
assert_equal(hd_info_2["hdkeypath"], "m/0'/0'/"+str(i)+"'")
8583
assert_equal(hd_info_2["hdseedid"], masterkeyid)
86-
assert_equal(hd_info_2["hdmasterkeyid"], masterkeyid)
8784
assert_equal(hd_add, hd_add_2)
8885
connect_nodes_bi(self.nodes, 0, 1)
8986
self.sync_all()

test/functional/wallet_keypool.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ def run_test(self):
2121
addr_before_encrypting = nodes[0].getnewaddress()
2222
addr_before_encrypting_data = nodes[0].getaddressinfo(addr_before_encrypting)
2323
wallet_info_old = nodes[0].getwalletinfo()
24-
assert_equal(wallet_info_old['hdseedid'], wallet_info_old['hdmasterkeyid'])
2524
assert(addr_before_encrypting_data['hdseedid'] == wallet_info_old['hdseedid'])
2625

2726
# Encrypt wallet and wait to terminate
@@ -30,7 +29,6 @@ def run_test(self):
3029
addr = nodes[0].getnewaddress()
3130
addr_data = nodes[0].getaddressinfo(addr)
3231
wallet_info = nodes[0].getwalletinfo()
33-
assert_equal(wallet_info['hdseedid'], wallet_info['hdmasterkeyid'])
3432
assert(addr_before_encrypting_data['hdseedid'] != wallet_info['hdseedid'])
3533
assert(addr_data['hdseedid'] == wallet_info['hdseedid'])
3634
assert_raises_rpc_error(-12, "Error: Keypool ran out, please call keypoolrefill first", nodes[0].getnewaddress)

0 commit comments

Comments
 (0)