-
Notifications
You must be signed in to change notification settings - Fork 66
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 #178 from Fairblock/finalize-fairyring-testnet-2-g…
…enesis Add finalized genesis & peers
- Loading branch information
Showing
10 changed files
with
1,235 additions
and
8 deletions.
There are no files selected for viewing
1,174 changes: 1,169 additions & 5 deletions
1,174
networks/testnets/fairyring-testnet-2/genesis.json
Large diffs are not rendered by default.
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
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 @@ | ||
[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
5
networks/testnets/fairyring-testnet-2/peers/peers-01node.json
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,5 @@ | ||
{ | ||
"node_id": "8203475d9afdae5a468977434fa0eaa12d65d7e1", | ||
"public_ip": "195.14.6.182", | ||
"port": "26656" | ||
} |
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
networks/testnets/fairyring-testnet-2/peers/peers-SimplyStaking.json
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,5 @@ | ||
{ | ||
"node_id": "593e4ce668b3fd05541b8e2ee88764cba4b26af6", | ||
"public_ip": "80.64.208.224", | ||
"port": "26656" | ||
} |
5 changes: 5 additions & 0 deletions
5
networks/testnets/fairyring-testnet-2/peers/peers-lemniscap.json
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,5 @@ | ||
{ | ||
"node_id": "0af7fa421ecabe54a0e93bc88304d788f06f3870", | ||
"public_ip": "65.21.163.226", | ||
"port": "26656" | ||
} |
5 changes: 5 additions & 0 deletions
5
networks/testnets/fairyring-testnet-2/peers/peers-stakin.json
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,5 @@ | ||
{ | ||
"node_id": "63e7c92348680beb90fdadf1fd90c091781860cb", | ||
"public_ip": "149.50.105.169", | ||
"port": "26556" | ||
} |
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,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" |
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,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%,}" |