Try wallet fix here
This commit is contained in:
@@ -867,6 +867,8 @@ static bool IsKeyType(string strType)
|
||||
strType == "mkey" || strType == "ckey");
|
||||
}
|
||||
|
||||
extern uint64_t ASSETCHAINS_STAKED;
|
||||
|
||||
DBErrors CWalletDB::LoadWallet(CWallet* pwallet)
|
||||
{
|
||||
pwallet->vchDefaultKey = CPubKey();
|
||||
@@ -918,8 +920,9 @@ DBErrors CWalletDB::LoadWallet(CWallet* pwallet)
|
||||
{
|
||||
// Leave other errors alone, if we try to fix them we might make things worse.
|
||||
fNoncriticalErrors = true; // ... but do warn the user there is something wrong.
|
||||
if (strType == "tx")
|
||||
// Rescan if there is a bad transaction record:
|
||||
if (strType == "tx" && ASSETCHAINS_STAKED == 0 )
|
||||
// Rescan if there is a bad transaction record..
|
||||
// But dont on staked chains!
|
||||
SoftSetBoolArg("-rescan", true);
|
||||
}
|
||||
}
|
||||
@@ -967,7 +970,7 @@ DBErrors CWalletDB::LoadWallet(CWallet* pwallet)
|
||||
|
||||
if (wss.fAnyUnordered)
|
||||
result = ReorderTransactions(pwallet);
|
||||
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user