gossip RC when we are not deregistered so we can come back when we are decommissioned

pull/1659/head
Jeff Becker 3 years ago
parent 95537804cd
commit ef924aea39
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -797,8 +797,10 @@ namespace llarp
if (!UpdateOurRC(false))
LogError("Failed to update our RC");
}
else if (not looksDeregistered)
else if (whitelistEnabled and gotWhitelist and _rcLookupHandler.SessionIsAllowed(pubkey()))
{
// if we have the whitelist enabled, we have fetched the list and we are in either
// the white or grey list, we want to gossip our RC
GossipRCIfNeeded(_rc);
}
// remove RCs for nodes that are no longer allowed by network policy

Loading…
Cancel
Save