Add warning when can't update whitelist

pull/1659/head
Jason Rhinelander 3 years ago committed by Jeff Becker
parent ef924aea39
commit 4974ce6f98
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -95,11 +95,11 @@ namespace llarp
}
catch (std::exception& ex)
{
LogError("bad block hieght: ", ex.what());
LogError("bad block height: ", ex.what());
return; // bail
}
LogDebug("new block at hieght ", m_BlockHeight);
LogDebug("new block at height ", m_BlockHeight);
// don't upadate on block notification if an update is pending
if (not m_UpdatingList)
UpdateServiceNodeList(std::string{msg.data[1]});
@ -241,6 +241,8 @@ namespace llarp
router->SetRouterWhitelist(activeNodeList, nonActiveNodeList);
});
}
else
LogWarn("Cannot update whitelist: router object has gone away");
}
void

Loading…
Cancel
Save