Merge pull request #1973 from majestrate/nodedb-logic-fix-2022-08-07

do not clear out entries that are valid from nodedb when we are a service node
pull/1978/head
majestrate 2 years ago committed by GitHub
commit c81e950d13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -974,7 +974,7 @@ namespace llarp
// the whitelist enabled and we got the whitelist
// check against the whitelist and remove if it's not
// in the whitelist OR if there is no whitelist don't remove
if (_rcLookupHandler.SessionIsAllowed(rc.pubkey))
if (gotWhitelist and not _rcLookupHandler.SessionIsAllowed(rc.pubkey))
{
log::debug(logcat, "Removing {}: not a valid router", rc.pubkey);
return true;

Loading…
Cancel
Save