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

Code inspection AtomSpaceNode #99

Open
4 tasks
andre-senna opened this issue Sep 5, 2024 · 2 comments
Open
4 tasks

Code inspection AtomSpaceNode #99

andre-senna opened this issue Sep 5, 2024 · 2 comments

Comments

@andre-senna
Copy link
Contributor

andre-senna commented Sep 5, 2024

  • Improve documentation of join_network() to explain that the definition of joining a network from the perspective of a node is to recognize an elected leader
  • Check node ID against expected syntax to the concrete network and to prevent id clash.
  • Enforce "localhost" as prefix in the implemented concrete network
  • Translate "localhost" to actual IP when sending messages

Code inspection of classes in https://github.com/singnet/das-attention-broker/tree/e2317078084e3f26591878b68382d33b2ddef3ba/src/atom_space_node

September, 5 2024

  • AtomSpaceNode.{h,cc}
  • LeadershipBroker.{h,cc}
  • MessageBroker.{h,cc}
  • Message.{h,cc}

Inspectors: @levisingularity @marcocapozzoli @Pedrobc89 @angeloprobst @eddiebrissow

@Pedrobc89
Copy link
Collaborator

I believe we are missing a timeout on the join_network method as well.

@andre-senna
Copy link
Contributor Author

Regarding join_network:

As the node considers itself joined once the network has an elected leader, I think this doxygen should emphasize that and highlight that there is no validation or approval from a master node (or similar concept) or from the other nodes in the network.

Maybe this details should be in the implementation file (.cc) instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants