Skip to content

Commit

Permalink
update default RPC ports to use WS (#643)
Browse files Browse the repository at this point in the history
  • Loading branch information
BedrockSquirrel authored Sep 8, 2022
1 parent 61cc12e commit 8683246
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/manual-deploy-obscuroscan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
name: testnet-obscuroscan
location: 'uksouth'
restart-policy: 'Never'
command-line: ./tools/obscuroscan/main/main --rpcServerAddress testnet.obscu.ro:13000 --address 0.0.0.0:80
command-line: ./tools/obscuroscan/main/main --rpcServerAddress testnet.obscu.ro:13001 --address 0.0.0.0:80
ports: '80'
cpu: 2
memory: 2
Expand Down
2 changes: 1 addition & 1 deletion testnet/testnet-deploy-l2-contracts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ start_path="$(cd "$(dirname "${0}")" && pwd)"
testnet_path="${start_path}"

# Define defaults
l2port=13000
l2port=13001
# todo: get rid of these defaults and require them to be passed in, using github secrets for testnet values (requires bridge.go changes)
hocpkstring="6e384a07a01263518a09a5424c7b6bbfc3604ba7d93f47e3a455cbdd7f9f0682"
pocpkstring="4bfe14725e685901c062ccd4e220c61cf9c189897b6c78bd18d7f51291b2b8f8"
Expand Down
2 changes: 1 addition & 1 deletion tools/azuredeployer/networkdeployer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ network.
* The enclave logs can be viewed using `docker logs <container-id>`
* The Geth network logs are found under `~/go-obscuro/integration/.build/geth/<run-id>/node_logs.txt`

* The first Obscuro host can be connected to remotely on port `13000`
* The first Obscuro host can be connected to remotely via WS on port `13001`
* This repo contains a tool under `tools/obscuroclient/` that can be used to connect remotely to the running
Obscuro host and retrieve the current block head height
2 changes: 1 addition & 1 deletion tools/azuredeployer/networkdeployer/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ sudo docker run -e OE_SIMULATION=0 --privileged -v /dev/sgx:/dev/sgx -p 127.0.0.
go-obscuro/go/host/main/host --id=1 --isGenesis=true --p2pBindAddress=0.0.0.0:10000 --p2pPublicAddress=127.0.0.1:10000 --enclaveRPCAddress=localhost:11000 --clientRPCHost=0.0.0.0 --clientRPCPortHttp=13000 --l1NodePort=12100 --privateKey=$PRIV_KEY_ONE > ./run_logs.txt 2>&1 &
go-obscuro/go/host/main/host --id=2 --isGenesis=false --p2pBindAddress=0.0.0.0:10001 --p2pPublicAddress=127.0.0.1:10001 --enclaveRPCAddress=localhost:11001 --clientRPCHost=localhost --clientRPCPortHttp=13001 --l1NodePort=12101 --privateKey=$PRIV_KEY_TWO > ./run_logs.txt 2>&1 &
cd go-obscuro
sudo ./tools/obscuroscan/main/obscuroscan --rpcServerAddress=127.0.0.1:13000 --address=0.0.0.0:80 > ../run_logs.txt 2>&1 &
sudo ./tools/obscuroscan/main/obscuroscan --rpcServerAddress=127.0.0.1:13001 --address=0.0.0.0:80 > ../run_logs.txt 2>&1 &
2 changes: 1 addition & 1 deletion tools/networkmanager/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func defaultNetworkManagerConfig() Config {
obscuroChainID: integration.ObscuroChainID,
mgmtContractAddress: common.BytesToAddress([]byte("")),
erc20ContractAddress: common.BytesToAddress([]byte("")),
obscuroClientAddress: "127.0.0.1:13000",
obscuroClientAddress: "127.0.0.1:13001",
erc20Token: "TST",
}
}
Expand Down
2 changes: 1 addition & 1 deletion tools/obscuroscan/main/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type obscuroscanConfig struct {
func defaultObscuroClientConfig() obscuroscanConfig {
return obscuroscanConfig{
nodeID: "",
rpcServerAddr: "testnet.obscu.ro:13000",
rpcServerAddr: "testnet.obscu.ro:13001",
address: "127.0.0.1:3000",
}
}
Expand Down

0 comments on commit 8683246

Please sign in to comment.