fixed messages

This commit is contained in:
Evan Duffield 2016-03-03 07:00:34 -07:00
parent e0021f08af
commit 9a52925d5c
3 changed files with 9 additions and 1 deletions

1
.gitignore vendored
View File

@ -122,3 +122,4 @@ share/BitcoindComparisonTool.jar
/doc/doxygen/
libbitcoinconsensus.pc
src/qt/dash-qt.bash

View File

@ -1812,9 +1812,12 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
uiInterface.InitMessage(_("Loading budget cache..."));
printf("1\n");
CBudgetDB budgetdb;
CBudgetDB::ReadResult readResult2 = budgetdb.Read(budget);
printf("2\n");
if (readResult2 == CBudgetDB::FileError)
LogPrintf("Missing budget cache - budget.dat, will try to recreate\n");
else if (readResult2 != CBudgetDB::Ok)
@ -1826,8 +1829,12 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
LogPrintf("file format is unknown or invalid, please fix it manually\n");
}
printf("3\n");
//flag our cached items so we send them to our peers
budget.ResetSync();
printf("4 \n");
budget.ClearSeen();

View File

@ -235,7 +235,7 @@ bool CBudgetDB::Write(const CBudgetManager& objToSave)
CBudgetDB::ReadResult CBudgetDB::Read(CBudgetManager& objToLoad, bool fDryRun)
{
LOCK(objToLoad.cs);
//LOCK(objToLoad.cs);
int64_t nStart = GetTimeMillis();
// open input file, and associate with CAutoFile