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

Network that can handle peer connectivity #155

Open
djrtwo opened this issue Dec 8, 2017 · 0 comments
Open

Network that can handle peer connectivity #155

djrtwo opened this issue Dec 8, 2017 · 0 comments

Comments

@djrtwo
Copy link
Collaborator

djrtwo commented Dec 8, 2017

Issue

Want to build out a network in which each peer --> peer relationship can be modeled by a fixed "connectivity" that will then be taken into account in the delay function.

For example:

  • Validator A might have a 0.9 connectivity rating against Validator B, but just a 0.5 connectivity rating against Validator C.
  • When A sends a new message to the network, delay(A, B) will take into account the high connectivity between A and B and take a relatively short time (can still be random on some distribution based off that 0.9). While delay(A, C) will see the lower connectivity (0.5) and will more likely take longer to propagate to C

Proposed Implementation

  • Create new network delay function called peer_delay
  • function maintains a closure with a connectivity matric. connectivity[sender][receiver] can then be used by delay to figure out how long a message should take to send from sender to receiver
  • connectivity can be static or can be a 3d array also indexed by round (to allow connectivity to evolve over time).
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