cardano-testnet enableP2P in config file#6439
cardano-testnet enableP2P in config file#6439CarlosLopezDeLara wants to merge 1 commit intomasterfrom
Conversation
c2b74cc to
152730f
Compare
Enhances the `cardano-testnet` user experience by refining startup output. Improve messages when running the testnet The HTTP call fetching mainnet protocol parameters from https://github.com/input-output-hk/cardano-parameters/blob/main/mainnet/parameters.json had no retry logic, so a transient network or TLS error would kill the testnet setup with an opaque exception. Retry up to 3 times with a 2-second delay, logging each attempt to stderr, and wrap the final failure in a descriptive error. Update node_default_config.json
152730f to
b9e77bc
Compare
| -- Turn logging on or off | ||
| , ("EnableLogging", Aeson.Bool True) | ||
|
|
||
| -- Configuration for the node's P2P network topology |
There was a problem hiding this comment.
This parameter is not in use for node versions >= 10.6. Can you add a comment about that?
c.f. 833a5f7#diff-d4a6c1d885d0454ec160da57fbe77f888d95b0c069a3e7f91449f49e2b84a237L196
| makeSocketDir (TmpAbsolutePath fp) = | ||
| let relPath = makeRelative (takeDirectory fp) fp | ||
| in if relPath == "." | ||
| then "socket" |
There was a problem hiding this comment.
Is anything wrong with ./socket here?
| logInfo "Node sockets:" | ||
| forM_ nodes $ \node -> | ||
| logInfo $ " " <> display (Text.pack (nodeName node)) <> " " <> display (Text.pack (H.sprocketSystemName (nodeSprocket node))) | ||
| logInfo "" |
There was a problem hiding this comment.
Good idea with dumping cli connection details.
carbolymer
left a comment
There was a problem hiding this comment.
LGTM, just add a comment about EnableP2P.
| , ("EnableLogging", Aeson.Bool True) | ||
|
|
||
| -- Configuration for the node's P2P network topology | ||
| , ("EnableP2P", Aeson.Bool True) |
There was a problem hiding this comment.
I think we need more nuance here. Technically this configuration field has been deprecated so it's not relevant to node master. If we are going to support multiple versions, hard coding a deprecated field is not the way to start that process.
| makeSocketDir (TmpAbsolutePath fp) = | ||
| let relPath = makeRelative (takeDirectory fp) fp | ||
| in if relPath == "." | ||
| then "socket" |
|
This PR is stale because it has been open 45 days with no activity. |
Description
EnableP2P: truenetworking in the default testnet node configuration.--params-mainnetHTTP request: retries up to 3 times with a 2-second delay, logging each failure to stderr, and wraps the final failure in a descriptiveMainnetParamsFetchErrorinstead of an opaque exception
Checklist
See Runnings tests for more details
CHANGELOG.mdfor affected package.cabalfiles are updatedhlint. See.github/workflows/check-hlint.ymlto get thehlintversionstylish-haskell. See.github/workflows/stylish-haskell.ymlto get thestylish-haskellversionghc-9.6andghc-9.12Note on CI
If your PR is from a fork, the necessary CI jobs won't trigger automatically for security reasons.
You will need to get someone with write privileges. Please contact IOG node developers to do this
for you.