Skip to content
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

Installer added ask #3579

Open
wants to merge 2 commits into
base: v6/develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion installer/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ install_node() {

# Function to configure a blockchain
configure_blockchain() {

local blockchain=$1
local blockchain_id=$2

Expand All @@ -437,6 +438,16 @@ install_node() {

validate_operator_fees $blockchain

# ASK part
read -p "Enter the fee your node requires for the transaction or service: " NODE_FEE
if (( $(echo "$NODE_FEE > 0" | bc -l) )); then
text_color $GREEN "The fee your node requires is: $NODE_FEE"
break
else
text_color $RED "The fee must be greater than 0. Please enter a valid fee."
fi
done

local RPC_ENDPOINT=""
if [ "$blockchain" == "gnosis" ] || [ "$blockchain" == "base" ]; then
read -p "Enter your $blockchain RPC endpoint: " RPC_ENDPOINT
Expand All @@ -451,7 +462,8 @@ install_node() {
"evmManagementWalletPublicKey": "$EVM_MANAGEMENT_WALLET",
"sharesTokenName": "$SHARES_TOKEN_NAME",
"sharesTokenSymbol": "$SHARES_TOKEN_SYMBOL",
"operatorFee": $OPERATOR_FEE
"operatorFee": $OPERATOR_FEE,
"nodeFee": $NODE_FEE
}
}
EOF
Expand All @@ -465,6 +477,8 @@ EOF
mv $CONFIG_DIR/origintrail_noderc_tmp $CONFIG_DIR/.origintrail_noderc
}



# Configure selected blockchains
for blockchain in "${selected_blockchains[@]}"; do
case "$blockchain" in
Expand Down