whiteblock / gossipsub-testing

Gossipsub tests
MIT License
17 stars 4 forks source link

Peering Logic - linear #7

Open araskachoi opened 5 years ago

araskachoi commented 5 years ago

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 commented 5 years ago

@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 commented 5 years ago

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

adam-hanna commented 5 years ago

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 commented 5 years ago

Thanks for clarifying Adam