try better handover

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

@ -1228,6 +1228,7 @@ namespace llarp
return ++(itr->second.seqno);
}
/// send on an established convo tag
void
Endpoint::SendContext::EncryptAndSendTo(llarp_buffer_t payload,
ProtocolType t)
@ -1246,6 +1247,14 @@ namespace llarp
f.T = *tags.begin();
f.S = m_Endpoint->GetSeqNoForConvo(f.T);
auto now = llarp_time_now_ms();
if(remoteIntro.ExpiresSoon(now))
{
// shift intro
MarkCurrentIntroBad();
ShiftIntroduction();
}
auto path = m_PathSet->GetNewestPathByRouter(remoteIntro.router);
if(!path)
{

Loading…
Cancel
Save