Implementation of Connectivity and Configuration Verification Functions #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces new functionalities aimed at verifying network connectivity and configuration settings for systems using DataLayer via SproutCli. These utilities are essential for ensuring proper interaction with the DataLayer, facilitating file propagation checks, and verifying local configuration settings against expected parameters.
Core Functionalities:
Public IP Address Retrieval (getPublicIpv4 Function):
Retrieves the public IPv4 and IPv6 addresses of the system.
This function is crucial for establishing the system's visibility to the Chia DataLayer, ensuring that it can correctly interact with external services.
DataLayer Server Connectivity Check (checkFilePropagationServerReachable Function):
Confirms the system's ability to connect to the Chia DataLayer's API endpoint.
Conducts separate connectivity checks for both IPv4 and IPv6 addresses, enabling a thorough evaluation of network accessibility.
Local Configuration Verification (checkChiaConfigIpHost Function):
Verifies key settings within the local Chia configuration file.
This check ensures that the system's configuration aligns with the requirements for optimal interaction with the Chia DataLayer.
Expected Results:
The CLI should log all results. Errors are no blocking logs.