-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5827 from multiversx/MX-14982-sovereign-scripting…
…-files scripting files updates for sovereign
- Loading branch information
Showing
4 changed files
with
110 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
41 changes: 41 additions & 0 deletions
41
scripts/testnet/deployFullStackSovereignChainWithScreen.sh
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/usr/bin/env bash | ||
|
||
GREEN='\x1B[0;32m' | ||
NC='\x1B[0m' | ||
|
||
echo -e "${GREEN}Making sure any previous deployment is stopped...${NC}" | ||
./stop.sh | ||
|
||
echo -e "${GREEN}Cleaning the previous deployment (if any)...${NC}" | ||
./clean.sh | ||
|
||
echo -e "${GREEN}Adjusting some variables.sh parameters...${NC}" | ||
sed -i 's/export USE_TXGEN=[01]/export USE_TXGEN=1/' variables.sh | ||
sed -i 's/export USE_PROXY=[01]/export USE_PROXY=1/' variables.sh | ||
sed -i 's/export USE_ELASTICSEARCH=[01]/export USE_ELASTICSEARCH=1/' variables.sh | ||
sed -i 's/export SOVEREIGN_DEPLOY=[01]/export SOVEREIGN_DEPLOY=1/' variables.sh | ||
|
||
source variables.sh | ||
if [ "$SHARD_VALIDATORCOUNT" -lt 3 ]; then | ||
sed -i 's/export SHARD_VALIDATORCOUNT=.*/export SHARD_VALIDATORCOUNT=3/' variables.sh | ||
fi | ||
|
||
echo -e "${GREEN}Generating the configuration files...${NC}" | ||
./config.sh | ||
|
||
echo -e "${GREEN}Starting the sovereign chain (in a screen)...${NC}" | ||
screen -L -Logfile sovereignStartLog.txt -d -m -S sovereignStartScreen ./sovereignStart.sh debug | ||
|
||
echo -e "${GREEN}Sleeping few minutes so the sovereign chain will begin...${NC}" | ||
sleep 120 | ||
|
||
echo -e "${GREEN}Starting sending the basic scenario transactions...${NC}" | ||
screen -L -Logfile txgenBasicLog.txt -d -m -S txgenBasicScreen ./sovereign-txgen-basic.sh | ||
|
||
echo -e "${GREEN}Starting sending the erc20 scenario transactions...${NC}" | ||
screen -L -Logfile txgenErc20Log.txt -d -m -S txgenErc20Screen ./sovereign-txgen-erc20.sh | ||
|
||
echo -e "${GREEN}Starting sending the esdt scenario transactions...${NC}" | ||
screen -L -Logfile txgenEsdtLog.txt -d -m -S txgenEsdtScreen ./sovereign-txgen-esdt.sh | ||
|
||
echo -e "${GREEN}Finished the sovereign chain deployment. Don't forget to stop it with ./stop.sh at the end.${NC}" |
This file contains 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
This file contains 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