Fix superfluous cast and code style nits in RPC wallet-hd.py test
This commit is contained in:
parent
58e148333e
commit
1090502c3e
2 changed files with 6 additions and 5 deletions
|
@ -2438,7 +2438,8 @@ UniValue getwalletinfo(const JSONRPCRequest& request)
|
||||||
LOCK2(cs_main, pwallet->cs_wallet);
|
LOCK2(cs_main, pwallet->cs_wallet);
|
||||||
|
|
||||||
UniValue obj(UniValue::VOBJ);
|
UniValue obj(UniValue::VOBJ);
|
||||||
size_t kpExternalSize = (int)pwallet->KeypoolCountExternalKeys();
|
|
||||||
|
size_t kpExternalSize = pwalletMain->KeypoolCountExternalKeys();
|
||||||
obj.push_back(Pair("walletversion", pwallet->GetVersion()));
|
obj.push_back(Pair("walletversion", pwallet->GetVersion()));
|
||||||
obj.push_back(Pair("balance", ValueFromAmount(pwallet->GetBalance())));
|
obj.push_back(Pair("balance", ValueFromAmount(pwallet->GetBalance())));
|
||||||
obj.push_back(Pair("unconfirmed_balance", ValueFromAmount(pwallet->GetUnconfirmedBalance())));
|
obj.push_back(Pair("unconfirmed_balance", ValueFromAmount(pwallet->GetUnconfirmedBalance())));
|
||||||
|
|
|
@ -108,7 +108,7 @@ class WalletHDTest(BitcoinTestFramework):
|
||||||
if out['value'] != 1:
|
if out['value'] != 1:
|
||||||
keypath = self.nodes[1].validateaddress(out['scriptPubKey']['addresses'][0])['hdkeypath']
|
keypath = self.nodes[1].validateaddress(out['scriptPubKey']['addresses'][0])['hdkeypath']
|
||||||
|
|
||||||
assert(keypath[0:7] == "m/0'/1'")
|
assert_equal(keypath[0:7], "m/0'/1'")
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
WalletHDTest().main ()
|
WalletHDTest().main ()
|
||||||
|
|
Loading…
Add table
Reference in a new issue