Skip to content

Commit 3d76e47

Browse files
committed
increase max_num_inbound_peers, max_num_outbound_peers
1 parent fc07e22 commit 3d76e47

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

rpc/quicksync.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,11 @@ then
217217
fi
218218
fi
219219

220-
# set minimum gas prices & rpc port
221-
sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"$minimum_gas_prices\"/" $node_home/config/app.toml
222-
sed -i.bak '/^\[rpc]/,/^\[/{s/^laddr[[:space:]]*=.*/laddr = "tcp:\/\/0.0.0.0:26657"/}' $node_home/config/config.toml
220+
# set minimum gas prices & rpc port...
221+
sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"$minimum_gas_prices\"/" $node_home/config/app.toml
222+
sed -i '/^\[rpc]/,/^\[/{s/^laddr[[:space:]]*=.*/laddr = "tcp:\/\/0.0.0.0:26657"/}' $node_home/config/config.toml
223+
sed -i -e "s/^max_num_inbound_peers *=.*/max_num_inbound_peers = 400/" $node_home/config/config.toml
224+
sed -i -e "s/^max_num_outbound_peers *=.*/max_num_outbound_peers = 100/" $node_home/config/config.toml
223225

224226
echo "download genesis file..."
225227
if [[ $addrbook_url == *.json.gz ]]

0 commit comments

Comments
 (0)