proper shift

pull/15/head
Jeff Becker 6 years ago
parent f110f3f3ad
commit 62bae2075b
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -194,6 +194,8 @@ namespace llarp
ShiftIntroduction(){};
virtual void
UpdateIntroSet(){};
virtual void
MarkCurrentIntroBad(){};
private:
void

@ -1130,6 +1130,12 @@ namespace llarp
auto path = m_PathSet->GetPathByRouter(remoteIntro.router);
if(path)
{
auto now = llarp_time_now_ms();
if(remoteIntro.ExpiresSoon(now))
{
MarkCurrentIntroBad();
ShiftIntroduction();
}
routing::PathTransferMessage transfer(msg, remoteIntro.pathID);
if(!path->SendRoutingMessage(&transfer, m_Endpoint->Router()))
llarp::LogError("Failed to send frame on path");

Loading…
Cancel
Save