Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion injective-chain/stream/server/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ func handleSetProviderPriceEvent(inBuffer *v2.StreamResponseMap, ev *oracletypes

func handleSetPriceFeedPriceEvent(inBuffer *v2.StreamResponseMap, ev *oracletypes.SetPriceFeedPriceEvent) {
price := &v2.OraclePrice{
Symbol: ev.Base,
Symbol: fmt.Sprintf("%s/%s", ev.Base, ev.Quote),
Price: ev.Price,
Type: "pricefeed",
}
Expand Down
7 changes: 7 additions & 0 deletions injectived.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ if [ -z "$INJHOME" ]; then
echo "INJHOME not set, defaulting to HOME directory: $INJHOME"
fi

CHAINSTREAM_ADDR=${CHAINSTREAM_ADDR:-0.0.0.0:9999}
CHAINSTREAM_BUFFER_CAP=${CHAINSTREAM_BUFFER_CAP:-1000}
CHAINSTREAM_PUBLISHER_BUFFER_CAP=${CHAINSTREAM_PUBLISHER_BUFFER_CAP:-1000}

yes 12345678 | injectived \
--log-level "info" \
--rpc.laddr "tcp://0.0.0.0:26657" \
Expand All @@ -18,5 +22,8 @@ yes 12345678 | injectived \
--json-rpc.allow-unprotected-txs=true \
--json-rpc.txfee-cap=50 \
--optimistic-execution-enabled true \
--chainstream-server "$CHAINSTREAM_ADDR" \
--chainstream-buffer-cap "$CHAINSTREAM_BUFFER_CAP" \
--chainstream-publisher-buffer-cap "$CHAINSTREAM_PUBLISHER_BUFFER_CAP" \
--home "$INJHOME" \
start