Skip to content

Commit

Permalink
Merge pull request #178 from Fairblock/finalize-fairyring-testnet-2-g…
Browse files Browse the repository at this point in the history
…enesis

Add finalized genesis & peers
  • Loading branch information
p0p3yee authored Aug 1, 2024
2 parents 99f8b52 + d3b2072 commit 96abc9d
Show file tree
Hide file tree
Showing 10 changed files with 1,235 additions and 8 deletions.
1,174 changes: 1,169 additions & 5 deletions networks/testnets/fairyring-testnet-2/genesis.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"details": "The modular ecosystem of privacy-enabled infrastructure and dapps."
},
"commission": {
"rate": "0.100000000000000000",
"rate": "0.050000000000000000",
"max_rate": "0.200000000000000000",
"max_change_rate": "0.010000000000000000"
},
Expand All @@ -28,7 +28,7 @@
}
}
],
"memo": "cd1cbf64a3e85d511c2a40b9e3e7b2e9b40d5905@18.183.243.242:26656",
"memo": "cd1cbf64a3e85d511c2a40b9e3e7b2e9b40d5905@172.31.18.9:26656",
"timeout_height": "0",
"extension_options": [],
"non_critical_extension_options": []
Expand Down Expand Up @@ -57,6 +57,6 @@
"tip": null
},
"signatures": [
"G55bLAtTtLxbJcgZbjP8aO1G8JlPnVhiISjKsOweXl5H/kweOkSmugiaL47CynbsCFMzoBtwLeKCHbwngeA1ew=="
"Ol6tW87khw2TFyICALACuLArnF4tmdPl0FSxJw4YYqQCIl75ZQAZ7UbRHHdNrnZkhOEvUjxdP3qUBjckPHfXFQ=="
]
}
1 change: 1 addition & 0 deletions networks/testnets/fairyring-testnet-2/peers-node.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[email protected]:26656,[email protected]:26656,[email protected]:3440,[email protected]:2030,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:56196,[email protected]:26656,[email protected]:26556
5 changes: 5 additions & 0 deletions networks/testnets/fairyring-testnet-2/peers/peers-01node.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"node_id": "8203475d9afdae5a468977434fa0eaa12d65d7e1",
"public_ip": "195.14.6.182",
"port": "26656"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"node_id": "593e4ce668b3fd05541b8e2ee88764cba4b26af6",
"public_ip": "80.64.208.224",
"port": "26656"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"node_id": "0af7fa421ecabe54a0e93bc88304d788f06f3870",
"public_ip": "65.21.163.226",
"port": "26656"
}
5 changes: 5 additions & 0 deletions networks/testnets/fairyring-testnet-2/peers/peers-stakin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"node_id": "63e7c92348680beb90fdadf1fd90c091781860cb",
"public_ip": "149.50.105.169",
"port": "26556"
}
17 changes: 17 additions & 0 deletions scripts/collect_all_gentxs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

FROM_PR_NO=164
TO_PR_NO=177

git checkout main

for i in $(seq $FROM_PR_NO $TO_PR_NO); do
echo "fetching PR #$i"
git fetch origin pull/$i/head:$i-pr-gentx
git checkout $i-pr-gentx
echo "copying PR #$i gentxs & peers info"
cp -a networks/testnets/fairyring-testnet-2/gentxs/. ~/.fairyring/config/gentx/
cp -a networks/testnets/fairyring-testnet-2/peers/. ~/.fairyring/config/peers/
done

echo "Done"
25 changes: 25 additions & 0 deletions scripts/combine_peers_node.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

# Define the target directory
directory="networks/testnets/fairyring-testnet-2/peers/"

# Check if the target is not a directory
if [ ! -d "$directory" ]; then
exit 1
fi

OUT_ARR=()
# Loop through files in the target directory
for file in "$directory"/*; do
if [ -f "$file" ]; then
NODE_ID=$(cat "$file" | jq -r '.node_id')
PUBLIC_IP=$(cat "$file" | jq -r '.public_ip')
PORT=$(cat "$file" | jq -r '.port')
OUT_ARR+=("$NODE_ID@$PUBLIC_IP:$PORT")
fi
done

echo "Got Total: ${#OUT_ARR[@]} peers info"
echo ""
printf -v JOINED_ARR '%s,' "${OUT_ARR[@]}"
echo "${JOINED_ARR%,}"

0 comments on commit 96abc9d

Please sign in to comment.