You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The updated logic for generating the daemon password on macOS uses sed -i ''. Ensure this approach works across all intended macOS versions and configurations.
if [ "$PLATFORM_OS"="macOS" ];then
sed -i '' -e "s/^KEY_PASS=/KEY_PASS=$WALLET_PASSWORD/g" configs/daemon/.env
The updated log parsing for extracting the wallet daemon address relies on a specific log message format ("Enjin Wallet Daemon v2.0.0"). Validate that this format is consistent and will not break with future updates or variations in the log output.
Validate that the WALLET_ADDRESS variable is not empty or malformed after parsing the logs, and handle errors gracefully to avoid potential issues downstream.
Why: Adding validation ensures that the WALLET_ADDRESS variable is not empty or malformed, which is critical for preventing downstream errors. This significantly improves the reliability and error handling of the script.
9
General
Make log parsing resilient to changes
Ensure that the grep pattern "Enjin Wallet Daemon v2.0.0" is robust enough to handle potential version changes or variations in the log output, as hardcoding specific version strings may cause future compatibility issues.
Why: The suggestion improves the robustness of the log parsing by removing the hardcoded version string, which could cause issues if the version changes in the future. This enhances maintainability and reduces the risk of errors.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
PR Type
Bug fix, Enhancement
Description
Fixed wallet daemon address identification logic.
Improved compatibility for generating daemon passwords on macOS.
Updated log parsing for wallet daemon address extraction.
Changes walkthrough 📝
start.sh
Fix and improve wallet daemon address handlingstart.sh