Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add helpful tips to veriables in my-peer-info, params.sh, and README.md * Update launch_data.json * Update README.md * Create verifyABPs.sh * Create resignAuth.sh * Create 06_SET_ABPs.sh * Update launch_data.json * Update launch_data.json * Update autolaunch.sh * Update returning-user.md * Update generate-config.sh * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update installGhostbusters.sh * Update lxd-setup.md * Update README.md * Update 06_SET_ABPs.sh Needs testing * Update 06_SET_ABPs.sh
- Loading branch information
Ben Sigman
committed
May 28, 2018
1 parent
a389d6f
commit 3e3cbef
Showing
12 changed files
with
167 additions
and
28 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
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,40 @@ | ||
#!/bin/bash | ||
################################################################################ | ||
# | ||
# Script created by Eric Björk, EOS Sw/eden | ||
# Script edited by Jae Chung, HKEOS and Igor Lins e Silva, EOS Rio | ||
# For Ghostbusters testnet | ||
# | ||
################################################################################ | ||
|
||
#!/bin/bash | ||
|
||
SORUCES_FOLDER="$( jq -r '.SOURCES_FOLDER' "00_CONFIG.conf" )" | ||
|
||
EOS_BUILD_DIR=$SOURCES_FOLDER/build | ||
|
||
EOSIO_KEY=EOSIO_PRODUCER_KEY="$( jq -r '.EOSIO_PRODUCER_PUB_KEY' "00_CONFIG.conf" )" | ||
|
||
PRODUCERS_JSON='{"schedule":[' | ||
while read -r line | ||
do | ||
a=(${line//,/ }) | ||
name="${a[0]}" | ||
key="${a[1]}" | ||
|
||
./cleos.sh create account eosio $name $key $key | ||
sleep 1 | ||
if [ "$PRODUCERS_JSON" = '{"schedule":[' ]; then | ||
PRODUCERS_JSON="$PRODUCERS_JSON{\"producer_name\":\"$name\",\"block_signing_key\":\"$key\"}" | ||
else | ||
PRODUCERS_JSON="$PRODUCERS_JSON,{\"producer_name\":\"$name\",\"block_signing_key\":\"$key\"}" | ||
fi | ||
|
||
done < "producers.csv" | ||
|
||
PRODUCERS_JSON="'$PRODUCERS_JSON]}'" #,{\"producer_name\":\"eosio\",\"block_signing_key\":\"$EOSIO_KEY\"}]}'" | ||
|
||
echo $PRODUCERS_JSON | ||
|
||
#echo "./cleos.sh push action eosio setprods \"$PRODUCERS_JSON\" -p eosio" | ||
./cleos.sh push action eosio setprods $PRODUCERS_JSON -p eosio |
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,29 @@ | ||
#!/bin/bash | ||
################################################################################ | ||
# | ||
# Script Created by Jae Chung, HKEOS and Igor Lins e Silva, EOS Rio | ||
# For Ghostbusters testnet | ||
# | ||
################################################################################ | ||
|
||
echo -e "\n changing permissions for bios account \n"; | ||
|
||
abps=(); | ||
for abp in "${abps[@]}" | ||
do | ||
echo -e "\n changing permissions for $abp \n"; | ||
./cleos.sh push action eosio updateauth '{"account": "eosio", "permission": "owner", "parent": "", "auth":{"threshold": 1, "keys": [], "waits": [], "accounts": [{"weight": 1, "permission": {"actor": "abp", "permission": active}}]}} -p eosio@active | ||
./cleos.sh push action eosio updateauth '{"account": "eosio", "permission": "active", "parent": "owner", "auth":{"threshold": 1, "keys": [], "waits": [], "accounts": [{"weight": 1, "permission": {"actor": "abp", "permission": active}}]}} -p eosio@active | ||
sleep 1; | ||
done | ||
|
||
|
||
accounts=( eosio.bpay eosio.msig eosio.names eosio.ram eosio.ramfee eosio.saving eosio.stake eosio.token eosio.vpay ); | ||
|
||
for account in "${accounts[@]}" | ||
do | ||
echo -e "\n changing permissions for $account \n"; | ||
./cleos.sh push action eosio updateauth '{"account": "account", "permission": "owner", "parent": "", "auth":{"threshold": 1, "keys": [], "waits": [], "accounts": [{"weight": 1, "permission": {"actor": "eosio", "permission": active}}]}} -p eosio@owner | ||
./cleos.sh push action eosio updateauth '{"account": "account", "permission": "active", "parent": "owner", "auth":{"threshold": 1, "keys": [], "waits": [], "accounts": [{"weight": 1, "permission": {"actor": "eosio", "permission": active}}]}} -p eosio@active | ||
sleep 1; | ||
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"btc_block":524642, | ||
"btc_block":524661, | ||
"initial_chain_id":"0000000000000000000000000000000000000000000000007472696e6974790d" | ||
} |
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
#Wireguard | ||
[Peer] | ||
PublicKey = <peer-public-key> | ||
AllowedIPs = 192.168.100.Y/32 | ||
Endpoint = <peer-public-endpoint>:<peer-vpn-port> | ||
PublicKey = <from-publickey-file> | ||
AllowedIPs = <wireguard-private-ip>/32 | ||
Endpoint = <node-public-ip>:<ListenPort-from-ghostbusters.conf> | ||
PersistentKeepAlive = 20 | ||
|
||
#EOS | ||
[EOS] | ||
p2p-peer-address = <vpn-ip-address>:<p2p-port> | ||
p2p-peer-address = <wireguard-private-ip>:<p2p-port> | ||
peer-key = "<eos-public-key>" |
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
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,26 @@ | ||
#!/bin/bash | ||
|
||
if [[ -f abp_list ]]; then | ||
rm abp_list; | ||
fi | ||
|
||
for file in ~/kbfs/team/eos_ghostbusters/mesh/*.peer_info.signed; do | ||
[ -e "$file" ] || continue; | ||
kbuser=$(echo "$file" | sed -e 's/.*mesh\/\(.*\).peer_info.signed*/\1/'); | ||
cat "$file" | keybase verify -S "$kbuser" &>output; | ||
out=$(<output); | ||
err=$(echo "$out" | grep "ERR"); | ||
|
||
if [[ "$err" == "" ]]; then | ||
echo "$kbuser"; | ||
peerdata=$(cat ~/kbfs/public/$kbuser/bp_info.json); | ||
acc=$(echo "$peerdata" | jq -r ".producer_account_name"); | ||
pubkey=$(echo "$peerdata" | jq -r ".producer_public_key"); | ||
if [[ $acc != "" ]] && [[ $pubkey != "" ]]; then | ||
echo "$acc,$pubkey" >> abp_list | ||
fi | ||
fi | ||
done | ||
|
||
echo -e "\n >> ABP List is ready!"; | ||
cat abp_list; |