Disable all experminetal/LABS features that are not required.

This commit is contained in:
blackjok3r
2019-02-26 12:49:17 +08:00
parent 9d36bc5ad9
commit 096d25df97
8 changed files with 18 additions and 27 deletions

View File

@@ -950,24 +950,6 @@ DBErrors CWalletDB::LoadWallet(CWallet* pwallet)
catch (...) {
result = DB_CORRUPT;
}
if (!deadTxns.empty())
{
int32_t reAdded = 0;
BOOST_FOREACH (uint256& hash, deadTxns) {
if (!EraseTx(hash))
fprintf(stderr, "could not delete tx.%s\n",hash.ToString().c_str());
uint256 blockhash; CTransaction tx;
if (GetTransaction(hash,tx,blockhash,true))
{
CWalletTx wtx(pwallet,tx);
pwallet->AddToWallet(wtx, true, NULL);
reAdded++;
}
}
fprintf(stderr, "Cleared %lu corrupted transactions from wallet. Readded %i known transactions.\n",deadTxns.size(),reAdded);
deadTxns.clear();
}
if (!deadTxns.empty())
{