refactor: Change default RPC and Websocket port (#198)

* fix: update RPC and Ws endpoint

* remove unnecesary flag on test node script
This commit is contained in:
crypto-facs 2021-06-29 03:05:23 -04:00 committed by GitHub
parent 8b562191d9
commit efb90f9922
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 15 deletions

View File

@ -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.

View File

@ -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(&ethNodeWS, "eth-node-ws", "ws://localhost:1317", "WebSocket endpoint for an Ethereum node.")
cmd.PersistentFlags().StringVar(&ethNodeHTTP, "eth-node-http", "http://localhost:1317", "HTTP endpoint for an Ethereum node.")
cmd.PersistentFlags().StringVar(&ethNodeWS, "eth-node-ws", "ws://localhost:8546", "WebSocket endpoint for an Ethereum node.")
cmd.PersistentFlags().StringVar(&ethNodeHTTP, "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.")

View File

@ -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:

View File

@ -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

View File

@ -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"