Skip to content

Commit

Permalink
Update integration test holesky node
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmcgary committed Dec 4, 2024
1 parent 28a6943 commit 7d5f8c0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Global Flags:
--ethereum.chunked_batch_call_size int The number of calls to make in parallel when using the chunked batch call method (default 10)
--ethereum.contract_call_batch_size int The number of contract calls to batch together when fetching data from the Ethereum node (default 25)
--ethereum.native_batch_call_size int The number of calls to batch together when using the native eth_call method (default 500)
--ethereum.rpc-url string e.g. "http://34.229.43.36:8545"
--ethereum.rpc-url string e.g. "http://<hostname>:8545"
--ethereum.use_native_batch_call Use the native eth_call method for batch calls (default true)
--prometheus.enabled e.g. "true" or "false"
--prometheus.port int The port to run the prometheus server on (default 2112)
Expand All @@ -152,7 +152,7 @@ _Assumes you have PosgresSQL running locally already_
```bash
make build
./bin/sidecar run \
--ethereum.rpc-url="http://34.229.43.36:8545" \
--ethereum.rpc-url="http://<hostname>:8545" \
--chain="holesky" \
--statsd.url="localhost:8125" \
--database.host="localhost" \
Expand All @@ -163,7 +163,7 @@ make build
# OR with go run
go run main.go run \
--ethereum.rpc-url="http://34.229.43.36:8545" \
--ethereum.rpc-url="http://<hostname>:8545" \
--chain="holesky" \
--statsd.url="localhost:8125" \
--database.host="localhost" \
Expand All @@ -180,7 +180,7 @@ _Assumes you have PosgresSQL running locally already_
```bash
docker run -it --rm \
-e SIDECAR_DEBUG=false \
-e SIDECAR_ETHEREUM_RPC_URL="http://34.229.43.36:8545" \
-e SIDECAR_ETHEREUM_RPC_URL="http://<hostname>:8545" \
-e SIDECAR_CHAIN="holesky" \
-e SIDECAR_STATSD_URL="localhost:8125" \
-e SIDECAR_DATABASE_HOST="localhost" \
Expand All @@ -201,7 +201,7 @@ make docker-buildx-self
docker run \
-e "SIDECAR_DEBUG=false" \
-e "SIDECAR_ETHEREUM_RPC_URL=http://34.229.43.36:8545" \
-e "SIDECAR_ETHEREUM_RPC_URL=http://<hostname>:8545" \
-e "SIDECAR_CHAIN=holesky" \
-e "SIDECAR_STATSD_URL=localhost:8125" \
-e SIDECAR_DATABASE_HOST="localhost" \
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func init() {
rootCmd.PersistentFlags().Bool("debug", false, `"true" or "false"`)
rootCmd.PersistentFlags().StringP("chain", "c", "mainnet", "The chain to use (mainnet, holesky, preprod")

rootCmd.PersistentFlags().String("ethereum.rpc-url", "", `e.g. "http://34.229.43.36:8545"`)
rootCmd.PersistentFlags().String("ethereum.rpc-url", "", `e.g. "http://<hostname>:8545"`)
rootCmd.PersistentFlags().Int(config.EthereumRpcContractCallBatchSize, 25, `The number of contract calls to batch together when fetching data from the Ethereum node`)
rootCmd.PersistentFlags().Bool(config.EthereumRpcUseNativeBatchCall, true, `Use the native eth_call method for batch calls`)
rootCmd.PersistentFlags().Int(config.EthereumRpcNativeBatchCallSize, 500, `The number of calls to batch together when using the native eth_call method`)
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
- "7101:7101"
environment:
- SIDECAR_DEBUG=false
- SIDECAR_ETHEREUM_RPC_URL=http://34.229.43.36:8545
- SIDECAR_ETHEREUM_RPC_URL=http://<hostname>:8545
- SIDECAR_CHAIN=holesky
- SIDECAR_STATSD_URL=localhost:8125
- SIDECAR_DATABASE_HOST=postgres
Expand Down
2 changes: 1 addition & 1 deletion pkg/indexer/restakedStrategies_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func Test_IndexerRestakedStrategies(t *testing.T) {
t.Fatal(err)
}

baseUrl := "http://34.229.43.36:8545"
baseUrl := "http://185.26.8.65:8545"
ethConfig := ethereum.DefaultNativeCallEthereumClientConfig()
ethConfig.BaseUrl = baseUrl

Expand Down
2 changes: 1 addition & 1 deletion scripts/seedSnapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ dropdb $DATABASE || true
createdb $DATABASE

go run main.go database \
--ethereum.rpc-url="http://34.229.43.36:8545" \
--ethereum.rpc-url="https://ethereum-holesky-rpc.publicnode.com" \
--chain=$NETWORK \
--statsd.url="localhost:8125" \
--database.host="localhost" \
Expand Down

0 comments on commit 7d5f8c0

Please sign in to comment.