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

Change Gossip handler to set country_undesirability if exit-location is set #545

Open
czarte opened this issue Oct 27, 2024 · 1 comment
Assignees

Comments

@czarte
Copy link
Collaborator

czarte commented Oct 27, 2024

In the current state, the handling of the exit-location command seems to work fine on the Neighborhood database that exists at the moment it's invoked; but the regime it inaugurates must be imposed on all Nodes that are added to the database afterwards as well. That probably means you'll need to change the way Gossip modifies the database: anytime it puts a new Node in, that Node's country_undesirability to match the Neighborhood.

TODO

  • introduce back the former structure of exit_location_opt: Option<Vec>
  • change Gossip handler to invoke the exit-location handler part set_country_undesirability to set prefered countries undesirability for newly introduced nodes from gossip
@czarte
Copy link
Collaborator Author

czarte commented Oct 29, 2024

this is going to be part of #468

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🏗 Development In Progress
Development

No branches or pull requests

1 participant