mor potatoe

This commit is contained in:
Jeff Becker 2019-05-11 16:47:37 -04:00
parent 6b28b46c78
commit d7fb54c957
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
1 changed files with 11 additions and 2 deletions

View File

@ -1040,7 +1040,7 @@ namespace llarp
}
if(rc.Verify(crypto(), Now()))
{
const auto result = bootstrapRCList.insert(std::move(rc));
const auto result = bootstrapRCList.insert(rc);
if(result.second)
llarp::LogInfo("Added bootstrap node ", RouterID(rc.pubkey));
else
@ -1578,7 +1578,16 @@ namespace llarp
llarp_threadpool_start(disk);
for(const auto &rc : bootstrapRCList)
this->nodedb()->Insert(rc);
{
if(this->nodedb()->Insert(rc))
{
LogInfo("added bootstrap node ", RouterID(rc.pubkey));
}
else
{
LogError("Failed to add bootstrap node ", RouterID(rc.pubkey));
}
}
routerProfiling().Load(routerProfilesFile.c_str());