-
Notifications
You must be signed in to change notification settings - Fork 20.4k
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
p2p: Add network simulation framework #14982
Conversation
This PR is a work of the last 8 months and went through several phases of evolution. The version can be considered pretty extensively tested and carefully reviewed. But I dont want to put me as a reviewer. |
p2p/simulations/cmd/p2psim/main.go
Outdated
// $ p2psim node connect node01 node02 | ||
// Connected node01 to node02 | ||
// | ||
package main |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move this to the top level cmd directory.
p2p/message.go
Outdated
|
||
// MsgEventer wraps a MsgReadWriter and sends events whenever a message is sent | ||
// or received | ||
type MsgEventer struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please unexport this.
Signed-off-by: Lewis Marshall <[email protected]>
Signed-off-by: Lewis Marshall <[email protected]>
Signed-off-by: Lewis Marshall <[email protected]>
Signed-off-by: Lewis Marshall <[email protected]>
Signed-off-by: Lewis Marshall <[email protected]>
Signed-off-by: Lewis Marshall <[email protected]>
Signed-off-by: Lewis Marshall <[email protected]>
Signed-off-by: Lewis Marshall <[email protected]>
Signed-off-by: Lewis Marshall <[email protected]>
8270a2b
to
30810aa
Compare
@lmars please fix tests |
Signed-off-by: Lewis Marshall <[email protected]>
This commit introduces a network simulation framework which can be used to run simulated networks of devp2p nodes. The intention is to use this for testing protocols, performing benchmarks and visualising emergent network behaviour.
This PR introduces a network simulation framework which can be used to run simulated networks of devp2p nodes.
The intention is to use this for testing protocols, performing benchmarks and visualising emergent network behaviour.
See p2p/simulations/README.md for a detailed description.
This replaces #3102.