forked from tendermint/tendermint
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestcmd
More file actions
37 lines (29 loc) · 2.59 KB
/
testcmd
File metadata and controls
37 lines (29 loc) · 2.59 KB
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
================================================================================
single node
================================================================================
rm -rf ~/.tendermint/config && rm -rf ~/.tendermint/data
tendermint init
tendermint node --proxy_app=kvstore
# curl -s 'localhost:26657/broadcast_tx_commit?tx="abcd"'
================================================================================
multi node
================================================================================
rm -rf ./mytestnet
tendermint testnet --v 4
sed -i '' 's#proxy_app = "tcp://127.0.0.1:26658"#proxy_app = "tcp://127.0.0.1:36658"#g' ./mytestnet/node1/config/config.toml
sed -i '' 's#laddr = "tcp://127.0.0.1:26657"#laddr = "tcp://127.0.0.1:36657"#g' ./mytestnet/node1/config/config.toml
sed -i '' 's#laddr = "tcp://0.0.0.0:26656"#laddr = "tcp://0.0.0.0:36656"#g' ./mytestnet/node1/config/config.toml
sed -i '' 's#proxy_app = "tcp://127.0.0.1:26658"#proxy_app = "tcp://127.0.0.1:46658"#g' ./mytestnet/node2/config/config.toml
sed -i '' 's#laddr = "tcp://127.0.0.1:26657"#laddr = "tcp://127.0.0.1:46657"#g' ./mytestnet/node2/config/config.toml
sed -i '' 's#laddr = "tcp://0.0.0.0:26656"#laddr = "tcp://0.0.0.0:46656"#g' ./mytestnet/node2/config/config.toml
sed -i '' 's#proxy_app = "tcp://127.0.0.1:26658"#proxy_app = "tcp://127.0.0.1:56658"#g' ./mytestnet/node3/config/config.toml
sed -i '' 's#laddr = "tcp://127.0.0.1:26657"#laddr = "tcp://127.0.0.1:56657"#g' ./mytestnet/node3/config/config.toml
sed -i '' 's#laddr = "tcp://0.0.0.0:26656"#laddr = "tcp://0.0.0.0:56656"#g' ./mytestnet/node3/config/config.toml
sed -i '' 's/@node0:26656/@127.0.0.1:26656/g' ./mytestnet/node0/config/config.toml ./mytestnet/node1/config/config.toml ./mytestnet/node2/config/config.toml ./mytestnet/node3/config/config.toml
sed -i '' 's/@node1:26656/@127.0.0.1:36656/g' ./mytestnet/node0/config/config.toml ./mytestnet/node1/config/config.toml ./mytestnet/node2/config/config.toml ./mytestnet/node3/config/config.toml
sed -i '' 's/@node2:26656/@127.0.0.1:46656/g' ./mytestnet/node0/config/config.toml ./mytestnet/node1/config/config.toml ./mytestnet/node2/config/config.toml ./mytestnet/node3/config/config.toml
sed -i '' 's/@node3:26656/@127.0.0.1:56656/g' ./mytestnet/node0/config/config.toml ./mytestnet/node1/config/config.toml ./mytestnet/node2/config/config.toml ./mytestnet/node3/config/config.toml
tendermint node --proxy_app=kvstore --home ./mytestnet/node0
tendermint node --proxy_app=kvstore --home ./mytestnet/node1
tendermint node --proxy_app=kvstore --home ./mytestnet/node2
tendermint node --proxy_app=kvstore --home ./mytestnet/node3