diff --git a/cmd/ethermintd/config/config.go b/cmd/ethermintd/config/config.go index f5c1d2fa..13ba21a5 100644 --- a/cmd/ethermintd/config/config.go +++ b/cmd/ethermintd/config/config.go @@ -17,10 +17,10 @@ const ( DefaultGRPCAddress = "0.0.0.0:9900" // DefaultEVMAddress is the default address the EVM JSON-RPC server binds to. - DefaultEVMAddress = "0.0.0.0:1317" + DefaultEVMAddress = "0.0.0.0:8545" // DefaultEVMWSAddress is the default address the EVM WebSocket server binds to. - DefaultEVMWSAddress = "0.0.0.0:1318" + DefaultEVMWSAddress = "0.0.0.0:8546" ) // EVMRPCConfig defines configuration for the EVM RPC server. diff --git a/cmd/ethermintd/flags.go b/cmd/ethermintd/flags.go index 678bdc07..ef228e29 100644 --- a/cmd/ethermintd/flags.go +++ b/cmd/ethermintd/flags.go @@ -48,8 +48,8 @@ func addTxFlags(cmd *cobra.Command) *cobra.Command { cmd.PersistentFlags().String(flags.FlagChainID, "testnet", "Specify Chain ID for sending Tx") cmd.PersistentFlags().String(flags.FlagFrom, "", "Name or address of private key with which to sign") cmd.PersistentFlags().StringVar(&fromPassphrase, "from-passphrase", "12345678", "Passphrase for private key specified with 'from'") - cmd.PersistentFlags().StringVar(ðNodeWS, "eth-node-ws", "ws://localhost:1317", "WebSocket endpoint for an Ethereum node.") - cmd.PersistentFlags().StringVar(ðNodeHTTP, "eth-node-http", "http://localhost:1317", "HTTP endpoint for an Ethereum node.") + cmd.PersistentFlags().StringVar(ðNodeWS, "eth-node-ws", "ws://localhost:8546", "WebSocket endpoint for an Ethereum node.") + cmd.PersistentFlags().StringVar(ðNodeHTTP, "eth-node-http", "http://localhost:8545", "HTTP endpoint for an Ethereum node.") cmd.PersistentFlags().BoolVar(&statsdEnabled, "statsd-enabled", false, "Enabled StatsD reporting.") cmd.PersistentFlags().StringVar(&statsdPrefix, "statsd-prefix", "ethermintd", "Specify StatsD compatible metrics prefix.") cmd.PersistentFlags().StringVar(&statsdAddress, "statsd-address", "localhost:8125", "UDP address of a StatsD compatible metrics aggregator.") diff --git a/config.yml b/config.yml index 491a76be..191fbece 100644 --- a/config.yml +++ b/config.yml @@ -15,8 +15,8 @@ init: home: "$HOME/.ethermintd" app: evm-rpc: - address: "0.0.0.0:1317" # change the JSON-RPC address and port - ws-address: "0.0.0.0:1318" # change the JSON-RPC websocket address and port + address: "0.0.0.0:8545" # change the JSON-RPC address and port + ws-address: "0.0.0.0:8546" # change the JSON-RPC websocket address and port genesis: chain_id: "ethermint-2" app_state: diff --git a/docker-compose.yml b/docker-compose.yml index bd0d629f..8622de39 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,8 +6,8 @@ services: image: "ethermintd/node" ports: - "26657:26657" - - "1317:1317" - - "1318:1318" + - "8545:8545" + - "8546:8546" - "8125:8125" environment: - ID=0 @@ -24,8 +24,8 @@ services: image: "ethermintd/node" ports: - "26658:26657" - - "1327:1317" - - "1328:1318" + - "8555:8545" + - "8556:8546" - "8126:8125" environment: - ID=1 @@ -45,8 +45,8 @@ services: - LOG=${LOG:-ethermintd.log} ports: - "26659:26657" - - "1337:1317" - - "1338:1318" + - "8565:8545" + - "8566:8546" - "8127:8125" volumes: - ./build:/ethermint:Z @@ -63,8 +63,8 @@ services: - LOG=${LOG:-ethermintd.log} ports: - "26660:26657" - - "1347:1317" - - "1348:1318" + - "8575:8545" + - "8576:8546" - "8128:8125" volumes: - ./build:/ethermint:Z diff --git a/tests/solidity/init-test-node.sh b/tests/solidity/init-test-node.sh index b28fbb90..3d426f57 100755 --- a/tests/solidity/init-test-node.sh +++ b/tests/solidity/init-test-node.sh @@ -40,4 +40,4 @@ ethermintd collect-gentxs ethermintd validate-genesis # Start the node (remove the --pruning=nothing flag if historical queries are not needed) -ethermintd start --pruning=nothing --rpc.unsafe --evm-rpc.address "0.0.0.0:8545" --keyring-backend test --trace --log_level "info" +ethermintd start --pruning=nothing --rpc.unsafe --keyring-backend test --trace --log_level "info"