-
Notifications
You must be signed in to change notification settings - Fork 721
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
Refactor fromProtocol
#326
Conversation
4d24fb5
to
a51e43e
Compare
88a6c91
to
5e49791
Compare
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.
The node should not determine its IP address from a topology file, it should use a topology file to determine its peer's IP addresses.
@denisshevchenko is working on issue: #329 which should eliminate the need for a topology file, at least for the tx generator. Could this be reused for the node too? |
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.
this PR touches 32 files! can it be broken in smaller chunkes?
and, there is work underway to remove the topology. It might make sense to push this other PRs first and then rebase.
@@ -95,6 +99,14 @@ parseGenesisPathLast = | |||
<> help "The filepath to the genesis file." | |||
) | |||
|
|||
parseGenesisHash :: Parser Text |
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.
looking forward to have this option on the command line
fromProtocol
I can cut it in half. |
@karknu I've reduced this PR, so in a separate PR I will address this. You wanted to specify the IP via the command line correct? |
5e49791
to
26847a5
Compare
Yeah, an optional command line argument for the IP address will work fine. |
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.
With the topology changes removed I have no objections.
26847a5
to
c53f6fd
Compare
Spoke with Karl, agreed to allow me to dismiss his review.
bors r+ |
326: Refactor `fromProtocol` r=Jimbo4350 a=Jimbo4350 This PR: - Refactors `fromProtocol` to accept exactly what it needs. - Removes extraneous command line arguments as a result of the above refactor. Relevant: #311 Co-authored-by: Jordan Millar <[email protected]>
bors r- |
Canceled |
bors r+ |
326: Refactor `fromProtocol` r=Jimbo4350 a=Jimbo4350 This PR: - Refactors `fromProtocol` to accept exactly what it needs. - Removes extraneous command line arguments as a result of the above refactor. Relevant: #311 Co-authored-by: Jordan Millar <[email protected]>
Build succeeded |
This PR:
fromProtocol
to accept exactly what it needs.RequireNetworkMagic
withRequiresNetworkMagic
Relevant: #311, #312