Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

better nodedb pruning logic #1171

Merged
merged 6 commits into from
Mar 10, 2020

Conversation

majestrate
Copy link
Contributor

this also prunes client nodedbs so we don't have rcs from old 0.6.x net that are invalid.

return false;
return not rc.IsPublicRouter();
});
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This logic will run if we haven't received the whitelist yet. Will that cause everything to be removed in this case? That would essentially mean we wipe our nodedb at startup.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point, adding check.

@majestrate majestrate force-pushed the prune-nodedb-as-client-2020-03-08 branch from 404dd91 to 5191af1 Compare March 9, 2020 21:06
@majestrate majestrate requested a review from notlesh March 9, 2020 21:48
@majestrate
Copy link
Contributor Author

this is pretty important we should get this merged before rc3

@majestrate majestrate merged commit bc85082 into oxen-io:dev Mar 10, 2020
@majestrate majestrate deleted the prune-nodedb-as-client-2020-03-08 branch February 24, 2021 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants