Get rid of db dependencies on main

This commit is contained in:
Eric Lombrozo
2013-01-06 04:30:00 -08:00
parent c94bd68547
commit 336fe971e6
5 changed files with 22 additions and 8 deletions

View File

@ -928,6 +928,7 @@ bool AppInit2(boost::thread_group& threadGroup)
nStart = GetTimeMillis();
{
CAddrDB::SetMessageStart(pchMessageStart);
CAddrDB adb;
if (!adb.Read(addrman))
printf("Invalid or missing peers.dat; recreating\n");