From 7c2e02ea0bdb01b4a188a14dbb5b27cf40d3b584 Mon Sep 17 00:00:00 2001 From: Jayant Krishnamurthy Date: Wed, 11 Jan 2023 09:58:33 -0800 Subject: [PATCH] [price-service] Document the spy filters in .env.sample (#472) * document the filters * better doc Co-authored-by: Jayant Krishnamurthy --- third_party/pyth/price-service/.env.sample | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/third_party/pyth/price-service/.env.sample b/third_party/pyth/price-service/.env.sample index b7526873..beaee791 100644 --- a/third_party/pyth/price-service/.env.sample +++ b/third_party/pyth/price-service/.env.sample @@ -1,7 +1,10 @@ # Local DevNet: SPY_SERVICE_HOST=0.0.0.0:7072 -## Filters (if provided) should be valid JSON like below: +# Filters (if provided) should be valid JSON like below: +# These filters tell the spy to only retrieve messages sent from certain chains/contracts. +# See the docker-compose..yaml files in the price-service directory for the appropriate +# configuration for a testnet/mainnet pyth price-service deployment. SPY_SERVICE_FILTERS=[{"chain_id":1,"emitter_address":"71f8dcb863d176e2c420ad6610cf687359612b6fb392e0642b0ca6b1f186aa3b"}] # Number of seconds to sync with spy to be sure to have latest messages