-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into ci/add-test
- Loading branch information
Showing
33 changed files
with
1,419 additions
and
425 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
if [ "$DEBUG" = "1" ]; then | ||
set -x | ||
fi | ||
|
||
if [ "$ALGORAND_DATA" != "/algod/data" ]; then | ||
echo "Do not override 'ALGORAND_DATA' environment variable." | ||
exit 1 | ||
fi | ||
|
||
/node/run/start_empty.sh & | ||
/node/run/start_fast_catchup.sh & | ||
/node/run/start_dev.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,49 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
if [ "$DEBUG" = "1" ]; then | ||
set -x | ||
fi | ||
|
||
if [ "$ALGORAND_DATA" != "/algod/data" ]; then | ||
echo "Do not override 'ALGORAND_DATA' environment variable." | ||
exit 1 | ||
fi | ||
|
||
# Configure the participation node | ||
if [ -d "$ALGORAND_DATA" ]; then | ||
if [ -f "$ALGORAND_DATA/genesis.json" ]; then | ||
if [ "$TOKEN" != "" ]; then | ||
echo "$TOKEN" >"$EMPTY_DATA/algod.token" | ||
fi | ||
if [ "$ADMIN_TOKEN" != "" ]; then | ||
echo "$ADMIN_TOKEN" >"$EMPTY_DATA/algod.admin.token" | ||
fi | ||
algod -o -d "$ALGORAND_DATA" -l "0.0.0.0:8080" | ||
else | ||
sed -i "s/NUM_ROUNDS/${NUM_ROUNDS:-30000}/" "/node/run/template.json" | ||
sed -i "s/\"NetworkName\": \"\"/\"NetworkName\": \"hack-tui\"/" "/node/run/template.json" | ||
goal network create --noclean -n tuinet -r "${ALGORAND_DATA}/.." -t "/node/run/template.json" | ||
|
||
# Cycle Network | ||
goal network start -r "${ALGORAND_DATA}/.." | ||
goal node stop | ||
|
||
# Update Tokens | ||
if [ "$TOKEN" != "" ]; then | ||
echo "$TOKEN" >"$ALGORAND_DATA/algod.token" | ||
fi | ||
if [ "$ADMIN_TOKEN" != "" ]; then | ||
echo "$ADMIN_TOKEN" >"$ALGORAND_DATA/algod.admin.token" | ||
fi | ||
# Import wallet | ||
goal account import -m "artefact exist coil life turtle edge edge inside punch glance recycle teach melody diet method pause slam dumb race interest amused side learn able heavy" | ||
|
||
algod -o -d "$ALGORAND_DATA" -l "0.0.0.0:8080" | ||
fi | ||
|
||
else | ||
echo "$ALGORAND_DATA" does not exist | ||
exit 1 | ||
fi |
Oops, something went wrong.