Skip to content

Commit 0df9ea4

Browse files
committed
Merge #8390: [Wallet] Correct hdmasterkeyid/masterkeyid name confusion
b50e1ac [Wallet] Correct hdmasterkeyid/masterkeyid name confusion (Jonas Schnelli)
2 parents 381917f + b50e1ac commit 0df9ea4

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

qa/rpc-tests/wallet-hd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def run_test (self):
3131
tmpdir = self.options.tmpdir
3232

3333
# Make sure we use hd, keep masterkeyid
34-
masterkeyid = self.nodes[1].getwalletinfo()['masterkeyid']
34+
masterkeyid = self.nodes[1].getwalletinfo()['hdmasterkeyid']
3535
assert_equal(len(masterkeyid), 40)
3636

3737
# Import a non-HD private key in the HD wallet

src/wallet/rpcwallet.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2260,16 +2260,16 @@ UniValue getwalletinfo(const UniValue& params, bool fHelp)
22602260
"Returns an object containing various wallet state info.\n"
22612261
"\nResult:\n"
22622262
"{\n"
2263-
" \"walletversion\": xxxxx, (numeric) the wallet version\n"
2264-
" \"balance\": xxxxxxx, (numeric) the total confirmed balance of the wallet in " + CURRENCY_UNIT + "\n"
2265-
" \"unconfirmed_balance\": xxx, (numeric) the total unconfirmed balance of the wallet in " + CURRENCY_UNIT + "\n"
2266-
" \"immature_balance\": xxxxxx, (numeric) the total immature balance of the wallet in " + CURRENCY_UNIT + "\n"
2267-
" \"txcount\": xxxxxxx, (numeric) the total number of transactions in the wallet\n"
2268-
" \"keypoololdest\": xxxxxx, (numeric) the timestamp (seconds since GMT epoch) of the oldest pre-generated key in the key pool\n"
2269-
" \"keypoolsize\": xxxx, (numeric) how many new keys are pre-generated\n"
2270-
" \"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"
2271-
" \"paytxfee\": x.xxxx, (numeric) the transaction fee configuration, set in " + CURRENCY_UNIT + "/kB\n"
2272-
" \"masterkeyid\": \"<hash160>\", (string) the Hash160 of the HD master pubkey\n"
2263+
" \"walletversion\": xxxxx, (numeric) the wallet version\n"
2264+
" \"balance\": xxxxxxx, (numeric) the total confirmed balance of the wallet in " + CURRENCY_UNIT + "\n"
2265+
" \"unconfirmed_balance\": xxx, (numeric) the total unconfirmed balance of the wallet in " + CURRENCY_UNIT + "\n"
2266+
" \"immature_balance\": xxxxxx, (numeric) the total immature balance of the wallet in " + CURRENCY_UNIT + "\n"
2267+
" \"txcount\": xxxxxxx, (numeric) the total number of transactions in the wallet\n"
2268+
" \"keypoololdest\": xxxxxx, (numeric) the timestamp (seconds since GMT epoch) of the oldest pre-generated key in the key pool\n"
2269+
" \"keypoolsize\": xxxx, (numeric) how many new keys are pre-generated\n"
2270+
" \"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"
2271+
" \"paytxfee\": x.xxxx, (numeric) the transaction fee configuration, set in " + CURRENCY_UNIT + "/kB\n"
2272+
" \"hdmasterkeyid\": \"<hash160>\", (string) the Hash160 of the HD master pubkey\n"
22732273
"}\n"
22742274
"\nExamples:\n"
22752275
+ HelpExampleCli("getwalletinfo", "")
@@ -2291,7 +2291,7 @@ UniValue getwalletinfo(const UniValue& params, bool fHelp)
22912291
obj.push_back(Pair("paytxfee", ValueFromAmount(payTxFee.GetFeePerK())));
22922292
CKeyID masterKeyID = pwalletMain->GetHDChain().masterKeyID;
22932293
if (!masterKeyID.IsNull())
2294-
obj.push_back(Pair("masterkeyid", masterKeyID.GetHex()));
2294+
obj.push_back(Pair("hdmasterkeyid", masterKeyID.GetHex()));
22952295
return obj;
22962296
}
22972297

0 commit comments

Comments
 (0)