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

Peering Logic - linear #7

Open
araskachoi opened this issue Sep 25, 2019 · 4 comments
Open

Peering Logic - linear #7

araskachoi opened this issue Sep 25, 2019 · 4 comments

Comments

@araskachoi
Copy link
Contributor

Will need to have nodes peered in a manner that will chain them. This will simulate the "hop nodes". This is the simplest case that we can create, we can move on to more complicated logic after this one is implemented

@adam-hanna
Copy link

@araskachoi I added support for whiteblocks, linear and full peering topologies, here:
https://github.com/agencyenterprise/gossip-host/tree/develop/pkg/subnet/peertopology

Can you double check my whiteblocks implementation? I simply went off your description from our first meeting, not the math formula.

I'll probably add some commands to the rpc to switch between different topologies for live hosts, and to be able to call the Connect method on any host it for live, custom peering.

@araskachoi
Copy link
Contributor Author

https://github.com/agencyenterprise/gossip-host/blob/develop/pkg/subnet/peertopology/whiteblocks/whiteblocks.go#L9

  • how does this work if subnet will not be responsible for creating these clients?
  • we will have to chain link the peering through the command line, passing the correct IP/multiaddr to the node to peer to

@adam-hanna
Copy link

cmd/subnet was built for my own benefit. I don't expect it to be used by whiteblocks. I was just hoping for a quick review of my peering logic. Sorry for any miscommunication.

@araskachoi
Copy link
Contributor Author

Thanks for clarifying Adam

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

No branches or pull requests

2 participants