forked from quicksilver-zone/quicksilver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
testnode.sh
40 lines (30 loc) · 1.18 KB
/
testnode.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
KEY="mykey"
CHAINID="test-1"
MONIKER="localtestnet"
KEYALGO="secp256k1"
KEYRING="test"
LOGLEVEL="info"
# to trace evm
#TRACE="--trace"
TRACE=""
# remove existing daemon
rm -rf ~/.quicksilver*
quicksilverd config keyring-backend $KEYRING
quicksilverd config chain-id $CHAINID
# if $KEY exists it should be deleted
quicksilverd keys add $KEY --keyring-backend $KEYRING --algo $KEYALGO
# Set moniker and chain-id for Evmos (Moniker can be anything, chain-id must be an integer)
quicksilverd init $MONIKER --chain-id $CHAINID
# Allocate genesis accounts (cosmos formatted addresses)
quicksilverd add-genesis-account $KEY 100000000000000000000000000stake --keyring-backend $KEYRING
# Sign genesis transaction
quicksilverd gentx $KEY 1000000000000000000000stake --keyring-backend $KEYRING --chain-id $CHAINID
# Collect genesis tx
quicksilverd collect-gentxs
# Run this to ensure everything worked and that the genesis file is setup correctly
quicksilverd validate-genesis
if [[ $1 == "pending" ]]; then
echo "pending mode is on, please wait for the first block committed."
fi
# Start the node (remove the --pruning=nothing flag if historical queries are not needed)
quicksilverd start --pruning=nothing