diff --git a/crates/config/src/config.rs b/crates/config/src/config.rs index d4409bcc8..e46756967 100644 --- a/crates/config/src/config.rs +++ b/crates/config/src/config.rs @@ -221,7 +221,7 @@ impl Config { if self.tap.rav_request.timestamp_buffer_secs < Duration::from_secs(10) { tracing::warn!( "Your `tap.rav_request.timestamp_buffer_secs` value it too low. \ - You may discart receipts in case of any synchronization issues, \ + You may discard receipts in case of any synchronization issues, \ a recommended value is about 30 seconds." ); } diff --git a/setup-test-network.sh b/setup-test-network.sh index f5a0f11a5..7f31952c7 100755 --- a/setup-test-network.sh +++ b/setup-test-network.sh @@ -117,7 +117,7 @@ if [ ! -d "local-network" ]; then git clone https://github.com/semiotic-ai/local-network.git cd local-network # Checkout to a branch with no dipper - git checkout suchapalaver/main-no-dipper + git checkout suchapalaver/test/horizon cd .. fi @@ -233,15 +233,21 @@ timeout 30 bash -c 'until docker ps | grep indexer | grep -q healthy; do sleep 5 timeout 30 bash -c 'until docker ps | grep tap-agent | grep -q healthy; do sleep 5; done' echo "Building gateway image..." +source local-network/.env docker build -t local-gateway:latest ./local-network/gateway echo "Running gateway container..." docker run -d --name gateway \ --network local-network_default \ -p 7700:7700 \ - -v $(pwd)/local-network/.env:/opt/.env:ro \ - -v $(pwd)/local-network/contracts.json:/opt/contracts.json:ro \ + -v "$(pwd)/local-network/contracts.json":/opt/contracts.json:ro \ -e RUST_LOG=info,graph_gateway=trace \ + -e ACCOUNT0_SECRET="$ACCOUNT0_SECRET" \ + -e ACCOUNT0_ADDRESS="$ACCOUNT0_ADDRESS" \ + -e GATEWAY_API_KEY="$GATEWAY_API_KEY" \ + -e GRAPH_NODE_GRAPHQL="$GRAPH_NODE_GRAPHQL" \ + -e REDPANDA_KAFKA="$REDPANDA_KAFKA" \ + -e INDEXER_SERVICE="$INDEXER_SERVICE" \ --restart on-failure:3 \ local-gateway:latest