-
Notifications
You must be signed in to change notification settings - Fork 2
/
run.sh
executable file
·35 lines (23 loc) · 1004 Bytes
/
run.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
#!/usr/bin/env bash
rm -rf ~/.hh*
mkdir -p ~/.hhd/config && cp ./config.toml ~/.hhd/config
make install
hhd init node_name --chain-id hhchain
hhcli keys add validator1 --recover <<< "12345678
base figure planet hazard sail easily honey advance tuition grab across unveil random kiss fence connect disagree evil recall latin cause brisk soft lunch
"
hhcli keys add alice --recover <<< "12345678
actor barely wait patrol moral amateur hole clerk misery truly salad wonder artefact orchard grit check abandon drip avoid shaft dirt thought melody drip
"
hhd add-genesis-account $(hhcli keys show validator1 -a) 1000token,100000000stake
hhd add-genesis-account $(hhcli keys show alice -a) 1000token
cp ./config.toml $HOME/.hhd/config/config.toml
cp ./config.toml $HOME/.hhcli/config/config.toml
hhcli config chain-id hhchain
hhcli config output json
hhcli config indent true
hhcli config trust-node true
hhd gentx --name validator1 <<< "12345678"
hhd collect-gentxs
hhd validate-genesis
hhd start