Skip to content

Commit

Permalink
Output node 2 status after startup phase
Browse files Browse the repository at this point in the history
  • Loading branch information
sbellem committed Dec 7, 2023
1 parent 8d123c2 commit d4a1fb1
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
22 changes: 22 additions & 0 deletions POPETS-ARTIFACTS-README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,27 @@ Setup and start the local network with:
./scripts/start_node.sh
```

At the end of its execution the script should end with an output similar to:
```shell
...

*********************************************************************************
* *
* Secret Network Test Nodes are now setup, and ready for experiments. *
* *
*********************************************************************************

Node 2 status info:
{
"Address": "A80B0E25EEA4665348F071A41B8122AF079BB2AF",
"PubKey": {
"type": "tendermint/PubKeyEd25519",
"value": "Ew9FY1+mRmXWTnAklkyjcPMiJfbz23b06UtsC04xTQw="
},
"VotingPower": "0"
}
```

<details>
<summary>What does the above command do?</summary>

Expand All @@ -180,6 +201,7 @@ The victim account has a balance of 12343. Two attacker accounts have balance of
any transactions to the network.
</details>


### Testing the Environment
<!--
Describe the basic functionality tests to check if the environment is set up correctly.
Expand Down
6 changes: 5 additions & 1 deletion hacking/scripts/start_node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,14 @@ docker compose exec localsecret-2 ./scripts/setup_snip20.sh

docker compose stop localsecret-1

docker compose logs localsecret-2 --tail 10
docker compose logs localsecret-2 --tail 5

echo "*************************************************************************"
echo "* *"
echo "* Secret Network Test Nodes are now setup, and ready for experiments. *"
echo "* *"
echo "*************************************************************************"

printf "\nNode 2 status info:\n"

docker compose exec localsecret-2 secretd status | jq .ValidatorInfo

0 comments on commit d4a1fb1

Please sign in to comment.