-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6a1653e
commit 64830cc
Showing
1 changed file
with
24 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
set coins "10000000000stake,100000000000samoleans" | ||
set coinsV "5000000000stake" | ||
set REGEN_KEYRING_BACKEND test | ||
set CHAINID regen-local | ||
set TMCFG ~/.regen/config/config.toml | ||
set APPCFG ~/.regen/config/app.toml | ||
|
||
rm -rf ~/.regen | ||
./build/regen keys add validator --keyring-backend test | ||
|
||
./build/regen init dev-val --chain-id $CHAINID | ||
./build/regen genesis add-genesis-account validator --keyring-backend test $coins | ||
./build/regen genesis gentx validator $coinsV --chain-id $CHAINID --keyring-backend test | ||
./build/regen genesis collect-gentxs | ||
./build/regen genesis validate-genesis | ||
|
||
perl -i -pe 's|timeout_commit = ".*?"|timeout_commit = "2s"|g' $TMCFG | ||
perl -i -pe 's|minimum-gas-prices = ""|minimum-gas-prices = "0stake"|g' $APPCFG | ||
|
||
./build/regen start --api.enable true --grpc.address="0.0.0.0:9090" | ||
|
||
|
||
exit |