Browse Source

Fix rebase issue where pwalletMain was used instead of pwallet

Ser./Deser. nInternalChainCounter as last element
0.15
Jonas Schnelli 8 years ago
parent
commit
4115af7ac7
No known key found for this signature in database
GPG Key ID: 1EB776BB03C7922D
  1. 2
      src/wallet/rpcwallet.cpp
  2. 2
      src/wallet/walletdb.h

2
src/wallet/rpcwallet.cpp

@ -2439,7 +2439,7 @@ UniValue getwalletinfo(const JSONRPCRequest& request)
UniValue obj(UniValue::VOBJ); UniValue obj(UniValue::VOBJ);
size_t kpExternalSize = pwalletMain->KeypoolCountExternalKeys(); size_t kpExternalSize = pwallet->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())));

2
src/wallet/walletdb.h

@ -61,9 +61,9 @@ public:
{ {
READWRITE(this->nVersion); READWRITE(this->nVersion);
READWRITE(nExternalChainCounter); READWRITE(nExternalChainCounter);
READWRITE(masterKeyID);
if (this->nVersion >= VERSION_HD_CHAIN_SPLIT) if (this->nVersion >= VERSION_HD_CHAIN_SPLIT)
READWRITE(nInternalChainCounter); READWRITE(nInternalChainCounter);
READWRITE(masterKeyID);
} }
void SetNull() void SetNull()

Loading…
Cancel
Save