Skip to content

Commit 323b2cb

Browse files
committed
fix: made the single node script OS agnostic
1 parent f42c99e commit 323b2cb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

_build/single-node.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ akash genesis gentx validator 10000000000uakt --keyring-backend="test" --chain-i
2626
akash genesis collect
2727

2828
# Set proper defaults and change ports
29-
sed -i '' 's#"tcp://127.0.0.1:26657"#"tcp://0.0.0.0:26657"#g' ~/.akash/config/config.toml
30-
sed -i '' 's/timeout_commit = "5s"/timeout_commit = "1s"/g' ~/.akash/config/config.toml
31-
sed -i '' 's/timeout_propose = "3s"/timeout_propose = "1s"/g' ~/.akash/config/config.toml
32-
sed -i '' 's/index_all_keys = false/index_all_keys = true/g' ~/.akash/config/config.toml
29+
sed -i.bak 's#"tcp://127.0.0.1:26657"#"tcp://0.0.0.0:26657"#g' ~/.akash/config/config.toml
30+
sed -i.bak 's/timeout_commit = "5s"/timeout_commit = "1s"/g' ~/.akash/config/config.toml
31+
sed -i.bak 's/timeout_propose = "3s"/timeout_propose = "1s"/g' ~/.akash/config/config.toml
32+
sed -i.bak 's/index_all_keys = false/index_all_keys = true/g' ~/.akash/config/config.toml
33+
rm -f ~/.akash/config/config.toml.bak
3334

3435
# Start the akash
3536
akash start --pruning=nothing

0 commit comments

Comments
 (0)