File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -68,13 +68,13 @@ export default async function attachSDK(): Promise<ICreditAccountsService> {
6868 redstone : {
6969 historicTimestamp : optimisticTimestamp ,
7070 gateways : config . redstoneGateways ,
71- ignoreMissingFeeds : config . optimistic ,
71+ ignoreMissingFeeds : config . optimistic || config . ignoreMissingFeeds ,
7272 } ,
7373 pyth : {
7474 historicTimestamp : optimisticTimestamp
7575 ? Math . floor ( optimisticTimestamp / 1000 )
7676 : undefined ,
77- ignoreMissingFeeds : config . optimistic ,
77+ ignoreMissingFeeds : config . optimistic || config . ignoreMissingFeeds ,
7878 } ,
7979 logger,
8080 } ) ;
Original file line number Diff line number Diff line change @@ -257,6 +257,14 @@ export const CommonSchema = z.object({
257257 description : "Optimistic timestamp to pass from external runner, in ms" ,
258258 env : "OPTIMISTIC_TIMESTAMP" ,
259259 } ) ,
260+ /**
261+ * Ignore missing feeds (redstone/pyth)
262+ */
263+ ignoreMissingFeeds : boolLike ( ) . optional ( ) . register ( zommandRegistry , {
264+ flags : "--ignore-missing-feeds" ,
265+ description : "Ignore missing feeds (redstone/pyth)" ,
266+ env : "IGNORE_MISSING_FEEDS" ,
267+ } ) ,
260268 /**
261269 * Do not send transactions in non-optimistic mode, just log them
262270 */
You can’t perform that action at this time.
0 commit comments