Removed wallet upgrade code inherited from Bitcoin/Litecoin, as it does not apply to Dogecoin
wallets (too new at base.
This commit is contained in:
parent
a7ba819a5c
commit
3aa3865f11
|
@ -357,26 +357,6 @@ ReadKeyValue(CWallet* pwallet, CDataStream& ssKey, CDataStream& ssValue,
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Undo serialize changes in 31600
|
|
||||||
if (31404 <= wtx.fTimeReceivedIsTxTime && wtx.fTimeReceivedIsTxTime <= 31703)
|
|
||||||
{
|
|
||||||
if (!ssValue.empty())
|
|
||||||
{
|
|
||||||
char fTmp;
|
|
||||||
char fUnused;
|
|
||||||
ssValue >> fTmp >> fUnused >> wtx.strFromAccount;
|
|
||||||
strErr = strprintf("LoadWallet() upgrading tx ver=%d %d '%s' %s",
|
|
||||||
wtx.fTimeReceivedIsTxTime, fTmp, wtx.strFromAccount, hash.ToString());
|
|
||||||
wtx.fTimeReceivedIsTxTime = fTmp;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
strErr = strprintf("LoadWallet() repairing tx ver=%d %s", wtx.fTimeReceivedIsTxTime, hash.ToString());
|
|
||||||
wtx.fTimeReceivedIsTxTime = 0;
|
|
||||||
}
|
|
||||||
wss.vWalletUpgrade.push_back(hash);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (wtx.nOrderPos == -1)
|
if (wtx.nOrderPos == -1)
|
||||||
wss.fAnyUnordered = true;
|
wss.fAnyUnordered = true;
|
||||||
|
|
||||||
|
@ -669,10 +649,6 @@ DBErrors CWalletDB::LoadWallet(CWallet* pwallet)
|
||||||
BOOST_FOREACH(uint256 hash, wss.vWalletUpgrade)
|
BOOST_FOREACH(uint256 hash, wss.vWalletUpgrade)
|
||||||
WriteTx(hash, pwallet->mapWallet[hash]);
|
WriteTx(hash, pwallet->mapWallet[hash]);
|
||||||
|
|
||||||
// Rewrite encrypted wallets of versions 0.4.0 and 0.5.0rc:
|
|
||||||
if (wss.fIsEncrypted && (wss.nFileVersion == 40000 || wss.nFileVersion == 50000))
|
|
||||||
return DB_NEED_REWRITE;
|
|
||||||
|
|
||||||
if (wss.nFileVersion < CLIENT_VERSION) // Update
|
if (wss.nFileVersion < CLIENT_VERSION) // Update
|
||||||
WriteVersion(CLIENT_VERSION);
|
WriteVersion(CLIENT_VERSION);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue