Skip to content

Commit 4bd4919

Browse files
authored
Merge pull request #245 from Fairblock/config-fix
fixing devnet config
2 parents ace8043 + 574cf64 commit 4bd4919

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

scripts/devnet/.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
NODE_IP_ADDRESS=http://127.0.0.1
2-
NODE_PORT=36657
2+
NODE_PORT=26657
33

44
GRPC_IP_ADDRESS=localhost
5-
GRPC_PORT=9190
5+
GRPC_PORT=9090
66

77
PRIVATE_KEY=601d2573009213b5f6ef70c49a1513355be69c9b95d8b0a5f6a9d63cf383ca2d
88
CHECK_INTERVAL=10

scripts/devnet/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
destinationnode:
2-
grpcport: 9190
2+
grpcport: 9090
33
ip: 127.0.0.1
4-
port: 36657
4+
port: 26657
55
protocol: tcp
66
chainid: fairyring_devnet
77
accountprefix: fairy
88

99
fairyringnode:
10-
grpcport: 9190
10+
grpcport: 9090
1111
ip: 127.0.0.1
12-
port: 36657
12+
port: 26657
1313
protocol: tcp
1414
chainid: fairyring_devnet
1515
accountprefix: fairy

scripts/devnet/fairyringclient_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
fairyringnode:
22
chainid: fairyring_devnet
33
denom: ufairy
4-
grpcport: 9190
4+
grpcport: 9090
55
ip: 127.0.0.1
6-
port: 36657
6+
port: 26657
77
protocol: http
88
invalidsharepausethreshold: 5
99
metricsport: 2222

scripts/devnet/sharegenerationclient_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ checkinterval: 5
22
fairyringnode:
33
chainid: fairyring_devnet
44
denom: ufairy
5-
grpcport: 9190
5+
grpcport: 9090
66
ip: 127.0.0.1
7-
port: 36657
7+
port: 26657
88
protocol: http
99
privatekey: 601d2573009213b5f6ef70c49a1513355be69c9b95d8b0a5f6a9d63cf383ca2d

scripts/devnet/start.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ WALLET_MNEMONIC_5="sleep garage unaware monster slide cruel barely blade sudden
1717

1818
RLY_MNEMONIC_1="alley afraid soup fall idea toss can goose become valve initial strong forward bright dish figure check leopard decide warfare hub unusual join cart"
1919

20-
P2PPORT=36656
21-
RPCPORT=36657
20+
P2PPORT=26656
21+
RPCPORT=26657
2222

23-
RESTPORT=1417
24-
ROSETTA=8180
25-
GRPCPORT=9190
26-
GRPCWEB=9191
23+
RESTPORT=1317
24+
ROSETTA=8080
25+
GRPCPORT=9090
26+
GRPCWEB=9091
2727

2828
BLOCK_TIME=5
2929

@@ -120,7 +120,7 @@ echo "Changing defaults and ports in app.toml and config.toml files..."
120120
sed -i -e 's/cors_allowed_origins = \[\]/cors_allowed_origins = \["*"\]/g' $CHAIN_DIR/$CHAINID/config/config.toml
121121
sed -i -e 's#"tcp://0.0.0.0:26656"#"tcp://0.0.0.0:'"$P2PPORT"'"#g' $CHAIN_DIR/$CHAINID/config/config.toml
122122
sed -i -e 's#"tcp://127.0.0.1:26657"#"tcp://0.0.0.0:'"$RPCPORT"'"#g' $CHAIN_DIR/$CHAINID/config/config.toml
123-
sed -i -e 's/timeout_commit = "1s"/timeout_commit = "5s"/g' $CHAIN_DIR/$CHAINID/config/config.toml
123+
sed -i -e 's/timeout_commit = "5s"/timeout_commit = "5s"/g' $CHAIN_DIR/$CHAINID/config/config.toml
124124
sed -i -e 's/timeout_propose = "3s"/timeout_propose = "5s"/g' $CHAIN_DIR/$CHAINID/config/config.toml
125125
sed -i -e 's/index_all_keys = false/index_all_keys = true/g' $CHAIN_DIR/$CHAINID/config/config.toml
126126

@@ -141,7 +141,7 @@ sed -i -e 's/"trusted_addresses": \[\]/"trusted_addresses": \["'"$VAL1_ADDR"'","
141141
TRUSTED_PARTIES='{"client_id": "07-tendermint-0", "connection_id": "connection-0", "channel_id": "channel-0"}'
142142

143143
sed -i -e 's/"trusted_counter_parties": \[\]/"trusted_counter_parties": \['"$TRUSTED_PARTIES"'\]/g' $CHAIN_DIR/$CHAINID/config/genesis.json
144-
sed -i -e 's/"key_expiry": "100"/"key_expiry": "1000000"/g' $CHAIN_DIR/$CHAINID/config/genesis.json
144+
sed -i -e 's/"key_expiry": "100"/"key_expiry": "50"/g' $CHAIN_DIR/$CHAINID/config/genesis.json
145145
sed -i -e 's/"is_source_chain": false/"is_source_chain": true/g' $CHAIN_DIR/$CHAINID/config/genesis.json
146146

147147
echo "Starting $CHAINID in $CHAIN_DIR..."
@@ -202,4 +202,4 @@ echo "* Node RPC ENDPOINT: http://localhost:$RPCPORT *"
202202
echo "* Node REST ENDPOINT: http://localhost:$RESTPORT *"
203203
echo "* Node GRPC ENDPOINT: http://localhost:$GRPCPORT *"
204204
echo "*******************************************************"
205-
echo "Devnet data directory: $(pwd)/devnet_data/"
205+
echo "Devnet data directory: $(pwd)/devnet_data/"

0 commit comments

Comments
 (0)