Update stage2 init script to disallow duplicate IP connections

This commit is contained in:
Prathamesh Musale 2024-10-21 19:12:25 +05:30
parent 8b53e8a649
commit 1820444954

View File

@ -69,9 +69,6 @@ remove_module_accounts
# Set all account sequences to 0
jq '(.app_state.auth.accounts[] | select(has("sequence")) | .sequence) = "0"' "$stage2_genesis_file" > tmp.$$.json && mv tmp.$$.json "$stage2_genesis_file"
# Allow multiple node connections from same IP
sed -i 's/allow_duplicate_ip.*$/allow_duplicate_ip = true/' $HOME/.laconicd/config/config.toml
# Sign genesis transaction
# 10^15 alnt
laconicd genesis gentx $KEY $STAKING_AMOUNT$DENOM --keyring-backend $KEYRING --chain-id $CHAINID