Skip to content

Commit 21d4f5f

Browse files
committed
fixed evm ports
1 parent bb70e69 commit 21d4f5f

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

deploy/make_first_node.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@ sed -i -e 's/laddr = "tcp:\/\/0.0.0.0:26656"/laddr = "tcp:\/\/0.0.0.0:'$P2P'"/g'
172172
sed -i -e 's/address = "localhost:9090"/address = "0.0.0.0:'$GRPC'"/g' $HOME_DIR/config/app.toml
173173
sed -i -e 's/address = "localhost:9091"/address = "0.0.0.0:'$GRPC_WEB'"/g' $HOME_DIR/config/app.toml
174174

175+
# EVM
176+
python3 "$HOME/app/toml_edit.py" "$HOME_DIR/config/app.toml" "json-rpc.address" "0.0.0.0:8545"
177+
python3 "$HOME/app/toml_edit.py" "$HOME_DIR/config/app.toml" "json-rpc.ws-address" "0.0.0.0:8546"
178+
175179
# Rosetta Api
176180
sed -i -e 's/address = ":8080"/address = "0.0.0.0:'$ROSETTA'"/g' $HOME_DIR/config/app.toml
177181

deploy/readme.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
# Local test net (1 node)
33

44
```shell
5-
cd ../scripts
5+
cd push-chain
6+
make install
7+
cd push-chain/scripts
68
CHAIN_ID="push_501-1" MONIKER=pn1 HOME_DIR="~/.pchain" BLOCK_TIME="1000ms" CLEAN=true ./test_node.sh
79
```
810

deploy/test-push-chain/config/app.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,10 @@ max-tx-gas-wanted = 0
271271
enable = true
272272

273273
# Address defines the EVM RPC HTTP server address to bind to.
274-
address = "127.0.0.1:8545"
274+
address = "0.0.0.0:8545"
275275

276276
# Address defines the EVM WebSocket server address to bind to.
277-
ws-address = "127.0.0.1:8546"
277+
ws-address = "0.0.0.0:8546"
278278

279279
# API defines a list of JSON-RPC namespaces that should be enabled
280280
# Example: "eth,txpool,personal,net,debug,web3"

deploy/test-push-chain/scripts/resetConfigs.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ python3 "$HOME/app/toml_edit.py" "$CHAIN_HOME/config/app.toml" "grpc.address" "0
6666
# Set the gRPC-web address (in [grpc-web]) – if your file uses an address key here
6767
python3 "$HOME/app/toml_edit.py" "$CHAIN_HOME/config/app.toml" "grpc-web.address" "0.0.0.0:$GRPC_WEB"
6868

69+
# EVM endpoings
70+
python3 "$HOME/app/toml_edit.py" "$CHAIN_HOME/config/app.toml" "json-rpc.address" "0.0.0.0:8545"
71+
python3 "$HOME/app/toml_edit.py" "$CHAIN_HOME/config/app.toml" "json-rpc.ws-address" "0.0.0.0:8546"
72+
6973
# Rosetta API endpoint (in app.toml)
7074
python3 "$HOME/app/toml_edit.py" "$CHAIN_HOME/config/app.toml" "rosetta.address" "0.0.0.0:$ROSETTA"
7175

0 commit comments

Comments
 (0)