Bugfix: Initialize CWallet::nOrderPosNext on an empty wallet, and save it in db

This commit is contained in:
Luke Dashjr
2012-09-08 04:55:36 +00:00
parent ddb709e9de
commit da7b8c1260
6 changed files with 28 additions and 4 deletions

View File

@@ -115,6 +115,12 @@ public:
return Read(std::string("bestblock"), locator);
}
bool WriteOrderPosNext(int64 nOrderPosNext)
{
nWalletDBUpdated++;
return Write(std::string("orderposnext"), nOrderPosNext);
}
bool ReadDefaultKey(std::vector<unsigned char>& vchPubKey)
{
vchPubKey.clear();