-
Notifications
You must be signed in to change notification settings - Fork 701
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
tmpnet
: Break config.go up into coherent parts
#2462
Conversation
99909be
to
e446b6a
Compare
3e42f16
to
184b8d8
Compare
e446b6a
to
0a2ab0a
Compare
tmpnet
: Break config.go up into coherent parts
ae08b7e
to
19dca4a
Compare
0a2ab0a
to
2597b74
Compare
e20e8f7
to
93dc814
Compare
5c35f62
to
dab364e
Compare
4b22d47
to
cb968e8
Compare
dab364e
to
e338c6e
Compare
e338c6e
to
fe08729
Compare
- Move NetworkConfig functionality to Network - Move NodeConfig functionality to Node - Move FlagsMap to flags.go - Move genesis helpers to genesis.go - Move NodeURI and key generation to utils.go - Remove redundant node_test.go
fe08729
to
205f6e8
Compare
@@ -19,6 +19,15 @@ const ( | |||
DefaultNetworkStartTimeout = 2 * time.Minute | |||
DefaultNodeInitTimeout = 10 * time.Second | |||
DefaultNodeStopTimeout = 5 * time.Second | |||
|
|||
// Minimum required to ensure connectivity-based health checks will pass | |||
DefaultNodeCount = 2 |
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.
probably out of scope here but should this be MinNodeCount? And should we assert that we never have a single node network? Not sure if the latter is too restrictive for our testing.
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.
Funny, I had the same thought. I figured default made a bit more sense even if 2 happens to be the minimum.
I don't think anyone should be starting a single node network with the tmpnet fixture - easier to just run the binary yourself. Attempting to do so would fail by default, would require disabling sybil protection. I'm inclined to ignore that possibility until such time as it becomes a requirement.
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.
just nits and questions
Largely mechanical reorganization to improve maintainability: