Merge pull request #1896 from majestrate/unstuck-obctx-2022-04-17

handle edge case better
pull/1899/head
majestrate 2 years ago committed by GitHub
commit 9fd20c885b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -45,11 +45,10 @@ namespace llarp
if (dst == remoteIntro.pathID && remoteIntro.router == p->Endpoint())
{
LogWarn(Name(), " message ", seq, " dropped by endpoint ", p->Endpoint(), " via ", dst);
markedBad = remoteIntro.IsExpired(Now());
MarkCurrentIntroBad(Now());
ShiftIntroduction(false);
ShiftIntroRouter(p->Endpoint());
UpdateIntroSet();
SwapIntros();
markedBad = remoteIntro.IsExpired(Now());
}
return true;
}

Loading…
Cancel
Save