Skip to content

Commit

Permalink
update plan (regen-network#667)
Browse files Browse the repository at this point in the history
  • Loading branch information
anilcse authored Feb 10, 2021
1 parent 031198e commit d301f2a
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 43 deletions.
13 changes: 9 additions & 4 deletions aplikigo-1/PLAN.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
- Gentx submission : 5th-7th Feb, 2021 1500 UTC. Up to 125 Gentx will be accepted.
- Genesis file release: 7th Feb, 2021 1600 UTC
- Network start time: 8th Feb, 2021 1500 UTC - 50 points for everyone who brings up their nodes in first 10 blocks (votes).
- Celebrate Stargate: - 100 points
### Celebrate Stargate: - 100 points
- Send 1TREE to others - 10 points
- Delegate some TREEs to others - 10 points
- Tweet url linked in a memo - 30 points
Expand All @@ -34,12 +34,17 @@
- Add/Update the details
- Push to the repo and create a PR

- Network security and performance testing - upto 100 points:
- Make transactions for continuous 3 hours from 1500UTC to 1800UTC 11 Feb, 2021
### Network security and performance testing - upto 100 points:
- Make transactions for continuous 3 hours from 1500UTC to 1800UTC 11 Feb, 2021.
- Validators can use multiple addresses to send the transactions. It can be any transaction, even failed transactions would count. Make a PR with addresses you use for this testing. All addresses you use should have a delegation to your validator to verify it.
- PR Time: 1800 UTC 11 Feb, 2021 - 1800 UTC 12 Feb, 2021.
- Top 10 teams will get 100 points each
- Next 10 (11 to 20) will get 60 points each
- 21 to 50 teams will get 50 points each
- Upgrade-1 Proposal: 15th Feb, 2021 ~1500 UTC
**NOTE:** Please check bonus section below for appropriate bonuses.

### Upgrade-1
- Proposal: 15th Feb, 2021 ~1500 UTC
- Voting Period: 15th Feb-17th Feb, ~1500 UTC
- Upgrade Time: 18th UTC
- First 10 teams to sign the upgrade block will get 100points each (upgrade height + 1's consensus state dump + prevotes will be used).
Expand Down
75 changes: 36 additions & 39 deletions scripts/verify_gentx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,62 +23,59 @@ now=$(date +"%d/%m/%Y %H:%M:%S")
if [ $LEN_GENTX -eq 0 ]; then
echo "No new gentx file found."
else
set -e
# set -e

echo "GentxFile::::"
echo $GENTX_FILE
# echo "GentxFile::::"
# echo $GENTX_FILE

./scripts/check-gentx-amount.sh "$GENTX_FILE" || exit 1
# ./scripts/check-gentx-amount.sh "$GENTX_FILE" || exit 1

echo "...........Init Regen.............."
# wget https://github.com/regen-network/regen-ledger/releases/download/v0.6.0-alpha6/regen_0.6.0_linux_arm64.tar.gz && tar -xzvf regen_0.6.0_linux_arm64.tar.gz
# rm regen_0.6.0_linux_arm64.tar.gz
#cd regen_0.6.0_linux_amd64
# echo "...........Init Regen.............."

git clone https://github.com/regen-network/regen-ledger
cd regen-ledger
git checkout v0.6.0
make build
chmod +x ./build/regen
# git clone https://github.com/regen-network/regen-ledger
# cd regen-ledger
# git checkout v0.6.0
# make build
# chmod +x ./build/regen

./build/regen keys add $RANDOM_KEY --keyring-backend test --home $REGEN_HOME
# ./build/regen keys add $RANDOM_KEY --keyring-backend test --home $REGEN_HOME

./build/regen init --chain-id $CHAIN_ID validator --home $REGEN_HOME
# ./build/regen init --chain-id $CHAIN_ID validator --home $REGEN_HOME

echo "..........Fetching genesis......."
rm -rf $REGEN_HOME/config/genesis.json
curl -s https://raw.githubusercontent.com/regen-network/testnets/master/$CHAIN_ID/genesis.json > $REGEN_HOME/config/genesis.json
# echo "..........Fetching genesis......."
# rm -rf $REGEN_HOME/config/genesis.json
# curl -s https://raw.githubusercontent.com/regen-network/testnets/master/$CHAIN_ID/genesis.json > $REGEN_HOME/config/genesis.json

sed -i '/genesis_time/c\ \"genesis_time\" : \"2021-01-01T00:00:00Z\",' $REGEN_HOME/config/genesis.json
# sed -i '/genesis_time/c\ \"genesis_time\" : \"2021-01-01T00:00:00Z\",' $REGEN_HOME/config/genesis.json

GENACC=$(cat ../$GENTX_FILE | sed -n 's|.*"delegator_address":"\([^"]*\)".*|\1|p')
# GENACC=$(cat ../$GENTX_FILE | sed -n 's|.*"delegator_address":"\([^"]*\)".*|\1|p')

echo $GENACC
# echo $GENACC

./build/regen add-genesis-account $RANDOM_KEY 1000000000000utree --home $REGEN_HOME \
--keyring-backend test
./build/regen add-genesis-account $GENACC 100000000000utree --home $REGEN_HOME
# ./build/regen add-genesis-account $RANDOM_KEY 1000000000000utree --home $REGEN_HOME \
# --keyring-backend test
# ./build/regen add-genesis-account $GENACC 100000000000utree --home $REGEN_HOME

./build/regen gentx $RANDOM_KEY 900000000000utree --home $REGEN_HOME \
--keyring-backend test --chain-id $CHAIN_ID
cp ../$GENTX_FILE $REGEN_HOME/config/gentx/
# ./build/regen gentx $RANDOM_KEY 900000000000utree --home $REGEN_HOME \
# --keyring-backend test --chain-id $CHAIN_ID
# cp ../$GENTX_FILE $REGEN_HOME/config/gentx/

echo "..........Collecting gentxs......."
./build/regen collect-gentxs --home $REGEN_HOME
sed -i '/persistent_peers =/c\persistent_peers = ""' $REGEN_HOME/config/config.toml
# echo "..........Collecting gentxs......."
# ./build/regen collect-gentxs --home $REGEN_HOME
# sed -i '/persistent_peers =/c\persistent_peers = ""' $REGEN_HOME/config/config.toml

./build/regen validate-genesis --home $REGEN_HOME
# ./build/regen validate-genesis --home $REGEN_HOME

echo "..........Starting node......."
./build/regen start --home $REGEN_HOME &
# echo "..........Starting node......."
# ./build/regen start --home $REGEN_HOME &

sleep 5s
# sleep 5s

echo "...checking network status.."
# echo "...checking network status.."

./build/regen status --node http://localhost:26657
# ./build/regen status --node http://localhost:26657

echo "...Cleaning the stuff..."
killall regen >/dev/null 2>&1
rm -rf $REGEN_HOME >/dev/null 2>&1
# echo "...Cleaning the stuff..."
# killall regen >/dev/null 2>&1
# rm -rf $REGEN_HOME >/dev/null 2>&1
fi

0 comments on commit d301f2a

Please sign in to comment.